Tencent/cloudbase-framework

低代码应用: 内网代理环境,发布预览时下载错误

wgf4242 opened this issue · 1 comments

Bug 描述
Describe the bug
发布预览时下载错误

内网环境,需要配置代理上网 已设置
set HTTP_PROXY=http://xx
set HTTPS_PROXY=http://xx

错误日志
Debug LOG

CloudBase CLI 1.2.4
CloudBase Framework 1.5.9
- 数据加载中...
   ______ __                   __ ____
  / ____// /____   __  __ ____/ // __ ) ____ _ _____ ___
 / /    / // __ \ / / / // __  // __  |/ __ `// ___// _ \
/ /___ / // /_/ // /_/ // /_/ // /_/ // /_/ /(__  )/  __/
\_________\____/ \__,_/ \__,_//_____/ \__,_//____/ \___/       __
   / ____/_____ ____ _ ____ ___   ___  _      __ ____   _____ / /__
  / /_   / ___// __ `// __ `__ \ / _ \| | /| / // __ \ / ___// //_/
 / __/  / /   / /_/ // / / / / //  __/| |/ |/ // /_/ // /   / ,<
/_/    /_/    \__,_//_/ /_/ /_/ \___/ |__/|__/ \____//_/   /_/|_|


 CloudBase Framework  info     Version v1.5.9
 CloudBase Framework  info     Github: https://github.com/Tencent/cloudbase-framework

 CloudBase Framework  info     EnvId lowcode-4gq1dkdtba61fe26
 CloudBase Framework  info     Validate config file success.
 CloudBase Framework  info     AppName lcap-localbuild-app-xvw2vmx1
 CloudBase Framework  info     ◆ install plugins
 CloudBase Framework  info     callHooks 'preDeploy'
+ @cloudbase/framework-plugin-low-code@0.0.6
updated 1 package in 8.162s
 CloudBase Framework  info     ◆ init: lowcode...
 CloudBase Framework  info     ◆ build: lowcode...
应用名 app-xvw2vmx1
生成模式 app
runPrepare: 7.972ms
Copying files:
C:\Users\wgfab\.weapps-build\app-xvw2vmx1\h5\src\index.less
C:\Users\wgfab\.weapps-build\app-xvw2vmx1\h5\src\handlers
C:\Users\wgfab\.weapps-build\app-xvw2vmx1\h5\src\utils
C:\Users\wgfab\.weapps-build\app-xvw2vmx1\h5\html
C:\Users\wgfab\.weapps-build\app-xvw2vmx1\h5\webpack
C:\Users\wgfab\.weapps-build\app-xvw2vmx1\h5\src\libraries
-------------------- runCopy : 42.004ms
Fail to download weapps material package https://user-source-1303824488.cos.ap-shanghai.myqcloud.com/materials/gsd-h5-react@0.0.61/source.zip Error: connect ETIMEDOUT 153.3.227.122:443
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1145:16) {
  errno: -4039,
  code: 'ETIMEDOUT',
  syscall: 'connect',
  address: '153.3.227.122',
  port: 443,
  config: {
    url: 'https://user-source-1303824488.cos.ap-shanghai.myqcloud.com/materials/gsd-h5-react@0.0.61/source.zip',
    headers: {
      Accept: 'application/json, text/plain, */*',
      'User-Agent': 'axios/0.21.1'
    },
    transformRequest: [ [Function: transformRequest] ],
    transformResponse: [ [Function: transformResponse] ],
    timeout: 0,
    adapter: [Function: httpAdapter],
    responseType: 'stream',
    xsrfCookieName: 'XSRF-TOKEN',
    xsrfHeaderName: 'X-XSRF-TOKEN',
    maxContentLength: -1,
    maxBodyLength: -1,
    validateStatus: [Function: validateStatus],
    method: 'get',
    data: undefined
  },
  request: <ref *1> Writable {
    _writableState: WritableState {
      objectMode: false,
      highWaterMark: 16384,
      finalCalled: false,
      needDrain: false,
      ending: false,
      ended: false,
      finished: false,
      destroyed: false,
      decodeStrings: true,
      defaultEncoding: 'utf8',
      length: 0,
      writing: false,
      corked: 0,
      sync: true,
      bufferProcessing: false,
      onwrite: [Function: bound onwrite],
      writecb: null,
      writelen: 0,
      afterWriteTickInfo: null,
      buffered: [],
      bufferedIndex: 0,
      allBuffers: true,
      allNoop: true,
      pendingcb: 0,
      prefinished: false,
      errorEmitted: false,
      emitClose: true,
      autoDestroy: true,
      errored: null,
      closed: false
    },
    _events: [Object: null prototype] {
      response: [Function: handleResponse],
      error: [Function: handleRequestError]
    },
    _eventsCount: 2,
    _maxListeners: undefined,
    _options: {
      maxRedirects: 21,
      maxBodyLength: 10485760,
      protocol: 'https:',
      path: '/materials/gsd-h5-react@0.0.61/source.zip',
      method: 'GET',
      headers: [Object],
      agent: undefined,
      agents: [Object],
      auth: undefined,
      hostname: 'user-source-1303824488.cos.ap-shanghai.myqcloud.com',
      port: null,
      nativeProtocols: [Object],
      pathname: '/materials/gsd-h5-react@0.0.61/source.zip'
    },
    _ended: true,
    _ending: true,
    _redirectCount: 0,
    _redirects: [],
    _requestBodyLength: 0,
    _requestBodyBuffers: [],
    _onNativeResponse: [Function (anonymous)],
    _currentRequest: ClientRequest {
      _events: [Object: null prototype],
      _eventsCount: 7,
      _maxListeners: undefined,
      outputData: [],
      outputSize: 0,
      writable: true,
      destroyed: false,
      _last: true,
      chunkedEncoding: false,
      shouldKeepAlive: false,
      _defaultKeepAlive: true,
      useChunkedEncodingByDefault: false,
      sendDate: false,
      _removedConnection: false,
      _removedContLen: false,
      _removedTE: false,
      _contentLength: 0,
      _hasBody: true,
      _trailer: '',
      finished: true,
      _headerSent: true,
      socket: [TLSSocket],
      _header: 'GET /materials/gsd-h5-react@0.0.61/source.zip HTTP/1.1\r\n' +
        'Accept: application/json, text/plain, */*\r\n' +
        'User-Agent: axios/0.21.1\r\n' +
        'Host: user-source-1303824488.cos.ap-shanghai.myqcloud.com\r\n' +
        'Connection: close\r\n' +
        '\r\n',
      _keepAliveTimeout: 0,
      _onPendingData: [Function: noopPendingOutput],
      agent: [Agent],
      socketPath: undefined,
      method: 'GET',
      maxHeaderSize: undefined,
      insecureHTTPParser: undefined,
      path: '/materials/gsd-h5-react@0.0.61/source.zip',
      _ended: false,
      res: null,
      aborted: false,
      timeoutCb: null,
      upgradeOrConnect: false,
      parser: null,
      maxHeadersCount: null,
      reusedSocket: false,
      host: 'user-source-1303824488.cos.ap-shanghai.myqcloud.com',
      protocol: 'https:',
      _redirectable: [Circular *1],
      [Symbol(kCapture)]: false,
      [Symbol(kNeedDrain)]: false,
      [Symbol(corked)]: 0,
      [Symbol(kOutHeaders)]: [Object: null prototype]
    },
    _currentUrl: 'https://user-source-1303824488.cos.ap-shanghai.myqcloud.com/materials/gsd-h5-react@0.0.61/source.zip',
    [Symbol(kCapture)]: false
  },
  response: undefined,
  isAxiosError: true,
  toJSON: [Function: toJSON]
}
 CloudBase Framework  info     low-code build fail: Error: connect ETIMEDOUT 153.3.227.122:443
 CloudBase Framework  error     connect ETIMEDOUT 153.3.227.122:443
 CloudBase Framework  info     部署日志: 'C:\\Users\\wgfab\\cloudbase-framework\\logs\\Fri Jan 15 2021 14:15:55 GMT+0800 (**标准时间).log'

[云开发低码] 低码应用构建失败 [ appId:app-xvw2vmx1, buildId:1610691354265 ]
lt5c commented

网络不好,可以重试下。

也可以ping一下 user-source-1303824488.cos.ap-shanghai.myqcloud.com 看看通不通。