Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vue.js/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vue.js 现在启动ssr get调用时,从\u LAMBDA错误获取无\u状态\u代码\u_Vue.js_Aws Lambda_Nuxt.js_Vercel_Cockpit Cms - Fatal编程技术网

Vue.js 现在启动ssr get调用时,从\u LAMBDA错误获取无\u状态\u代码\u

Vue.js 现在启动ssr get调用时,从\u LAMBDA错误获取无\u状态\u代码\u,vue.js,aws-lambda,nuxt.js,vercel,cockpit-cms,Vue.js,Aws Lambda,Nuxt.js,Vercel,Cockpit Cms,我正在now.sh上运行一个nuxt universal应用程序,它向其他地方的服务器发出ssr get调用。当我打开应用程序时,我收到一个502错误,代码为“NO_STATUS_code_FROM_LAMBDA” 在本地运行它或将其部署为spa而不是通用应用程序都很好,因为这样的话,呼叫不是从lambda发出的,而是从我的机器发出的。根据日志,我的运行GetCaptack cms的Web服务器从现在起不会收到任何呼叫,所以问题似乎不在这一边 now.sh日志对我来说真的没什么意义。我发现的唯一

我正在now.sh上运行一个nuxt universal应用程序,它向其他地方的服务器发出ssr get调用。当我打开应用程序时,我收到一个502错误,代码为“NO_STATUS_code_FROM_LAMBDA”

在本地运行它或将其部署为spa而不是通用应用程序都很好,因为这样的话,呼叫不是从lambda发出的,而是从我的机器发出的。根据日志,我的运行GetCaptack cms的Web服务器从现在起不会收到任何呼叫,所以问题似乎不在这一边

now.sh日志对我来说真的没什么意义。我发现的唯一一件事是“在完成请求之前先处理”,但这对我也没有帮助

'XSRF-TOKEN',
     xsrfHeaderName: 'X-XSRF-TOKEN',
     maxContentLength: -1,
     validateStatus: [Function: validateStatus],
     data: undefined },
  request: 
   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,
        bufferedRequest: null,
        lastBufferedRequest: null,
        pendingcb: 0,
        prefinished: false,
        errorEmitted: false,
        bufferedRequestCount: 0,
        corkedRequestsFree: [Object] },
     writable: true,
     domain: null,
     _events: { response: [Function], error: [Function] },
     _eventsCount: 2,
     _maxListeners: undefined,
     _options: 
      { protocol: 'http:',
        maxRedirects: 21,
        maxBodyLength: 10485760,
        path: '/api/singletons/get/intro',
        method: 'GET',
        headers: [Object],
        agent: undefined,
        auth: undefined,
        hostname: 'localhost',
        port: '3000',
        nativeProtocols: [Object],
        pathname: '/api/singletons/get/intro' },
     _redirectCount: 0,
     _redirects: [],
     _requestBodyLength: 0,
     _requestBodyBuffers: [],
     _onNativeResponse: [Function],
     _currentRequest: 
      ClientRequest {
        domain: null,
        _events: [Object],
        _eventsCount: 6,
        _maxListeners: undefined,
        output: [],
        outputEncodings: [],
        outputCallbacks: [],
        outputSize: 0,
        writable: true,
        _last: true,
        upgrading: false,
        chunkedEncoding: false,
        shouldKeepAlive: false,
        useChunkedEncodingByDefault: false,
        sendDate: false,
        _removedConnection: false,
        _removedContLen: false,
        _removedTE: false,
        _contentLength: 0,
        _hasBody: true,
        _trailer: '',
        finished: true,
        _headerSent: true,
        socket: [Object],
        connection: [Object],
        _header: 'GET /api/singletons/get/intro HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nx-real-ip: 5.149.20.127\r\nsec-fetch-user: ?1\r\nsec-fetch-site: none\r\nupgrade-insecure-requests: 1\r\ncache-control: no-cache\r\nx-now-trace: zrh1\r\nx-now-deployment-url: BLURRED-NOW-DEPLOYMENT-URL\r\nx-zeit-co-forwarded-for: 5.149.20.127\r\naccept-language: en-GB,en-US;q=0.9,en;q=0.8,de;q=0.7\r\nx-forwarded-proto: https\r\nsec-fetch-mode: navigate\r\nx-forwarded-for: 5.149.20.127\r\nuser-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36\r\naccept-encoding: gzip, deflate\r\nx-now-id: clckl-1566116017296-db7c5240b52c\r\npragma: no-cache\r\nx-forwarded-host: BLURRED-NOW-DEPLOYMENT-URL\r\nconnection: close\r\nAuthorization: Bearer BLURRED-API-KEY\r\nHost: localhost:3000\r\n\r\n',
        _onPendingData: [Function: noopPendingOutput],
        agent: [Object],
        socketPath: undefined,
        timeout: undefined,
        method: 'GET',
        path: '/api/singletons/get/intro',
        _ended: false,
        res: null,
        aborted: undefined,
        timeoutCb: null,
        upgradeOrConnect: false,
        parser: null,
        maxHeadersCount: null,
        _redirectable: [Circular],
        [Symbol(outHeadersKey)]: [Object] },
     _currentUrl: 'http://localhost:3000/api/singletons/get/intro' },
  response: undefined,
  isAxiosError: true,
  toJSON: [Function] }
END RequestId: 5153a263-0ac9-4bf5-9c7d-4422783386ba
REPORT RequestId: 5153a263-0ac9-4bf5-9c7d-4422783386ba  Duration: 234.13 ms Billed Duration: 300 ms     Memory Size: 3008 MB    Max Memory Used: 97 MB  
RequestId: 5153a263-0ac9-4bf5-9c7d-4422783386ba Process exited before completing request


START RequestId: f32bcba9-aea6-46d0-9269-c0544a211fff Version: $LATEST
2019-08-18T08:13:39.117Z    f32bcba9-aea6-46d0-9269-c0544a211fff    λ Cold start took: 339.379719ms
END RequestId: f32bcba9-aea6-46d0-9269-c0544a211fff
REPORT RequestId: f32bcba9-aea6-46d0-9269-c0544a211fff  Duration: 115.83 ms Billed Duration: 200 ms     Memory Size: 3008 MB    Max Memory Used: 53 MB  

我希望now.sh或者更确切地说lambda会打电话并对我的应用程序进行ssr。

有完全相同的问题,尽管我现在使用的是Zeit lambda,但收到的错误消息相同。如果我发现更多,我会告诉你的。令人沮丧的是,这种错误有时会发生,通常是在站点长时间不活动之后。不确定这是否有帮助,但有时我发现我的应用程序(通过现在运行dev)内存不足/我偶尔会收到错误消息“池正在耗尽,无法接受工作”,因此这些可能与我有关。那么也许Zeit现在没有内存了?它似乎没有报告任何高内存量或时间使用情况。有完全相同的问题,虽然我现在使用Zeit lambdas,但我收到了相同的错误消息。如果我发现更多,我会告诉你的。令人沮丧的是,这种错误有时会发生,通常是在站点长时间不活动之后。不确定这是否有帮助,但有时我发现我的应用程序(通过现在运行dev)内存不足/我偶尔会收到错误消息“池正在耗尽,无法接受工作”,因此这些可能与我有关。那么也许Zeit现在没有内存了?不过,它似乎没有报告内存或时间使用量过高。