Skip to content

Instantly share code, notes, and snippets.

@heymichaelp
Created October 10, 2018 13:00
Show Gist options
  • Save heymichaelp/f923af2fcb28c955b0d69bbf4d3646eb to your computer and use it in GitHub Desktop.
Save heymichaelp/f923af2fcb28c955b0d69bbf4d3646eb to your computer and use it in GitHub Desktop.
query error
[warning] Connection error occurred. Waiting for 1975 ms before retrying...
Error: Request failed with status code 504
at createError (/Users/mphillips/Projects/to-taste/node_modules/contentful/dist/contentful.node.js:703:15)
at settle (/Users/mphillips/Projects/to-taste/node_modules/contentful/dist/contentful.node.js:788:12)
at IncomingMessage.handleStreamEnd (/Users/mphillips/Projects/to-taste/node_modules/contentful/dist/contentful.node.js:3025:11)
at emitNone (events.js:120:20)
at IncomingMessage.emit (events.js:218:7)
at endReadableNT (_stream_readable.js:1054:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
2018-10-10T12:58:27.950540+00:00 app[web.1]: { Error: timeout of 30000ms exceeded
2018-10-10T12:58:27.950552+00:00 app[web.1]: at createError (/app/node_modules/contentful/dist/contentful.node.js:703:15)
2018-10-10T12:58:27.950554+00:00 app[web.1]: at Timeout.handleRequestTimeout [as _onTimeout] (/app/node_modules/contentful/dist/contentful.node.js:3040:16)
2018-10-10T12:58:27.950555+00:00 app[web.1]: at ontimeout (timers.js:498:11)
2018-10-10T12:58:27.950557+00:00 app[web.1]: at tryOnTimeout (timers.js:323:5)
2018-10-10T12:58:27.950559+00:00 app[web.1]: at Timer.listOnTimeout (timers.js:290:5)
2018-10-10T12:58:27.950561+00:00 app[web.1]: config:
2018-10-10T12:58:27.950562+00:00 app[web.1]: { adapter: [Function: httpAdapter],
2018-10-10T12:58:27.950564+00:00 app[web.1]: transformRequest: { '0': [Function: transformRequest] },
2018-10-10T12:58:27.950566+00:00 app[web.1]: transformResponse: { '0': [Function: transformResponse] },
2018-10-10T12:58:27.950568+00:00 app[web.1]: timeout: 30000,
2018-10-10T12:58:27.950570+00:00 app[web.1]: xsrfCookieName: 'XSRF-TOKEN',
2018-10-10T12:58:27.950571+00:00 app[web.1]: xsrfHeaderName: 'X-XSRF-TOKEN',
2018-10-10T12:58:27.950573+00:00 app[web.1]: maxContentLength: -1,
2018-10-10T12:58:27.950575+00:00 app[web.1]: validateStatus: [Function: validateStatus],
2018-10-10T12:58:27.950576+00:00 app[web.1]: headers:
2018-10-10T12:58:27.950578+00:00 app[web.1]: { Accept: 'application/json, text/plain, */*',
2018-10-10T12:58:27.950580+00:00 app[web.1]: 'Content-Type': 'application/vnd.contentful.delivery.v1+json',
2018-10-10T12:58:27.950582+00:00 app[web.1]: 'X-Contentful-User-Agent': 'sdk contentful.js/5.1.3; platform node.js/v8.12.0; os Linux/4.4.0-1027-aws;',
2018-10-10T12:58:27.950584+00:00 app[web.1]: Authorization: 'Bearer d3f6bfc0bf470ccbfff65d9274469752aad3de0c517c4f660846666d738939b5',
2018-10-10T12:58:27.950585+00:00 app[web.1]: 'user-agent': 'node.js/v8.12.0',
2018-10-10T12:58:27.950587+00:00 app[web.1]: 'Accept-Encoding': 'gzip' },
2018-10-10T12:58:27.950589+00:00 app[web.1]: baseURL: 'https://cdn.contentful.com:443/spaces/3gxybr5ur7hf/',
2018-10-10T12:58:27.950590+00:00 app[web.1]: httpAgent: false,
2018-10-10T12:58:27.950592+00:00 app[web.1]: httpsAgent: false,
2018-10-10T12:58:27.950594+00:00 app[web.1]: paramsSerializer: [Function],
2018-10-10T12:58:27.950595+00:00 app[web.1]: proxy: false,
2018-10-10T12:58:27.950597+00:00 app[web.1]: logHandler: [Function: logHandler],
2018-10-10T12:58:27.950598+00:00 app[web.1]: retryOnError: true,
2018-10-10T12:58:27.950600+00:00 app[web.1]: method: 'get',
2018-10-10T12:58:27.950601+00:00 app[web.1]: params:
2018-10-10T12:58:27.950603+00:00 app[web.1]: { content_type: 'recipe',
2018-10-10T12:58:27.950604+00:00 app[web.1]: 'fields.isPublic': true,
2018-10-10T12:58:27.950606+00:00 app[web.1]: 'fields.originalRecipe[exists]': false,
2018-10-10T12:58:27.950607+00:00 app[web.1]: 'fields.environment[ne]': 'staging',
2018-10-10T12:58:27.950609+00:00 app[web.1]: 'fields.savesCount[gte]': 1,
2018-10-10T12:58:27.950610+00:00 app[web.1]: order: '-fields.savesCount',
2018-10-10T12:58:27.950612+00:00 app[web.1]: limit: 3 },
2018-10-10T12:58:27.950614+00:00 app[web.1]: url: 'https://cdn.contentful.com:443/spaces/3gxybr5ur7hf/entries',
2018-10-10T12:58:27.950615+00:00 app[web.1]: data: undefined },
2018-10-10T12:58:27.950616+00:00 app[web.1]: code: 'ECONNABORTED',
2018-10-10T12:58:27.950618+00:00 app[web.1]: request:
2018-10-10T12:58:27.950619+00:00 app[web.1]: Writable {
2018-10-10T12:58:27.950621+00:00 app[web.1]: _writableState:
2018-10-10T12:58:27.950622+00:00 app[web.1]: WritableState {
2018-10-10T12:58:27.950624+00:00 app[web.1]: objectMode: false,
2018-10-10T12:58:27.950625+00:00 app[web.1]: highWaterMark: 16384,
2018-10-10T12:58:27.950626+00:00 app[web.1]: finalCalled: false,
2018-10-10T12:58:27.950628+00:00 app[web.1]: needDrain: false,
2018-10-10T12:58:27.950629+00:00 app[web.1]: ending: false,
2018-10-10T12:58:27.950631+00:00 app[web.1]: ended: false,
2018-10-10T12:58:27.950632+00:00 app[web.1]: finished: false,
2018-10-10T12:58:27.950645+00:00 app[web.1]: destroyed: false,
2018-10-10T12:58:27.950646+00:00 app[web.1]: decodeStrings: true,
2018-10-10T12:58:27.950648+00:00 app[web.1]: defaultEncoding: 'utf8',
2018-10-10T12:58:27.950649+00:00 app[web.1]: length: 0,
2018-10-10T12:58:27.950651+00:00 app[web.1]: writing: false,
2018-10-10T12:58:27.950652+00:00 app[web.1]: corked: 0,
2018-10-10T12:58:27.950653+00:00 app[web.1]: sync: true,
2018-10-10T12:58:27.950655+00:00 app[web.1]: bufferProcessing: false,
2018-10-10T12:58:27.950657+00:00 app[web.1]: onwrite: [Function: bound onwrite],
2018-10-10T12:58:27.950658+00:00 app[web.1]: writecb: null,
2018-10-10T12:58:27.950659+00:00 app[web.1]: writelen: 0,
2018-10-10T12:58:27.950661+00:00 app[web.1]: bufferedRequest: null,
2018-10-10T12:58:27.950662+00:00 app[web.1]: lastBufferedRequest: null,
2018-10-10T12:58:27.950664+00:00 app[web.1]: pendingcb: 0,
2018-10-10T12:58:27.950665+00:00 app[web.1]: prefinished: false,
2018-10-10T12:58:27.950667+00:00 app[web.1]: errorEmitted: false,
2018-10-10T12:58:27.950668+00:00 app[web.1]: bufferedRequestCount: 0,
2018-10-10T12:58:27.950670+00:00 app[web.1]: corkedRequestsFree: [Object] },
2018-10-10T12:58:27.950671+00:00 app[web.1]: writable: true,
2018-10-10T12:58:27.950673+00:00 app[web.1]: domain: null,
2018-10-10T12:58:27.950674+00:00 app[web.1]: _events:
2018-10-10T12:58:27.950676+00:00 app[web.1]: { response: [Function: handleResponse],
2018-10-10T12:58:27.950678+00:00 app[web.1]: error: [Function: handleRequestError] },
2018-10-10T12:58:27.950679+00:00 app[web.1]: _eventsCount: 2,
2018-10-10T12:58:27.950681+00:00 app[web.1]: _maxListeners: undefined,
2018-10-10T12:58:27.950684+00:00 app[web.1]: _options:
2018-10-10T12:58:27.950686+00:00 app[web.1]: { protocol: 'https:',
2018-10-10T12:58:27.950687+00:00 app[web.1]: maxRedirects: 21,
2018-10-10T12:58:27.950689+00:00 app[web.1]: maxBodyLength: 10485760,
2018-10-10T12:58:27.950690+00:00 app[web.1]: hostname: 'cdn.contentful.com',
2018-10-10T12:58:27.950692+00:00 app[web.1]: port: '443',
2018-10-10T12:58:27.950694+00:00 app[web.1]: path: '/spaces/3gxybr5ur7hf/entries?content_type=recipe&fields.isPublic=true&fields.originalRecipe%5Bexists%5D=false&fields.environment%5Bne%5D=staging&fields.savesCount%5Bgte%5D=1&order=-fields.savesCount&limit=3',
2018-10-10T12:58:27.950695+00:00 app[web.1]: method: 'get',
2018-10-10T12:58:27.950697+00:00 app[web.1]: headers: [Object],
2018-10-10T12:58:27.950698+00:00 app[web.1]: agent: false,
2018-10-10T12:58:27.950700+00:00 app[web.1]: auth: undefined,
2018-10-10T12:58:27.950701+00:00 app[web.1]: nativeProtocols: [Object],
2018-10-10T12:58:27.950703+00:00 app[web.1]: pathname: '/spaces/3gxybr5ur7hf/entries',
2018-10-10T12:58:27.950720+00:00 app[web.1]: search: '?content_type=recipe&fields.isPublic=true&fields.originalRecipe%5Bexists%5D=false&fields.environment%5Bne%5D=staging&fields.savesCount%5Bgte%5D=1&order=-fields.savesCount&limit=3' },
2018-10-10T12:58:27.950722+00:00 app[web.1]: _redirectCount: 0,
2018-10-10T12:58:27.950723+00:00 app[web.1]: _requestBodyLength: 0,
2018-10-10T12:58:27.950725+00:00 app[web.1]: _requestBodyBuffers: [],
2018-10-10T12:58:27.950727+00:00 app[web.1]: _onNativeResponse: [Function],
2018-10-10T12:58:27.950728+00:00 app[web.1]: _currentRequest:
2018-10-10T12:58:27.950730+00:00 app[web.1]: ClientRequest {
2018-10-10T12:58:27.950731+00:00 app[web.1]: domain: null,
2018-10-10T12:58:27.950733+00:00 app[web.1]: _events: [Object],
2018-10-10T12:58:27.950734+00:00 app[web.1]: _eventsCount: 6,
2018-10-10T12:58:27.950736+00:00 app[web.1]: _maxListeners: undefined,
2018-10-10T12:58:27.950738+00:00 app[web.1]: output: [],
2018-10-10T12:58:27.950739+00:00 app[web.1]: outputEncodings: [],
2018-10-10T12:58:27.950741+00:00 app[web.1]: outputCallbacks: [],
2018-10-10T12:58:27.950742+00:00 app[web.1]: outputSize: 0,
2018-10-10T12:58:27.950744+00:00 app[web.1]: writable: true,
2018-10-10T12:58:27.950745+00:00 app[web.1]: _last: true,
2018-10-10T12:58:27.950747+00:00 app[web.1]: upgrading: false,
2018-10-10T12:58:27.950748+00:00 app[web.1]: chunkedEncoding: false,
2018-10-10T12:58:27.950750+00:00 app[web.1]: shouldKeepAlive: false,
2018-10-10T12:58:27.950751+00:00 app[web.1]: useChunkedEncodingByDefault: false,
2018-10-10T12:58:27.950752+00:00 app[web.1]: sendDate: false,
2018-10-10T12:58:27.950760+00:00 app[web.1]: _removedConnection: false,
2018-10-10T12:58:27.950763+00:00 app[web.1]: _removedContLen: false,
2018-10-10T12:58:27.950765+00:00 app[web.1]: _removedTE: false,
2018-10-10T12:58:27.950766+00:00 app[web.1]: _contentLength: 0,
2018-10-10T12:58:27.950768+00:00 app[web.1]: _hasBody: true,
2018-10-10T12:58:27.950769+00:00 app[web.1]: _trailer: '',
2018-10-10T12:58:27.950771+00:00 app[web.1]: finished: true,
2018-10-10T12:58:27.950772+00:00 app[web.1]: _headerSent: true,
2018-10-10T12:58:27.950774+00:00 app[web.1]: socket: [Object],
2018-10-10T12:58:27.950775+00:00 app[web.1]: connection: [Object],
2018-10-10T12:58:27.950778+00:00 app[web.1]: _header: 'GET /spaces/3gxybr5ur7hf/entries?content_type=recipe&fields.isPublic=true&fields.originalRecipe%5Bexists%5D=false&fields.environment%5Bne%5D=staging&fields.savesCount%5Bgte%5D=1&order=-fields.savesCount&limit=3 HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/vnd.contentful.delivery.v1+json\r\nX-Contentful-User-Agent: sdk contentful.js/5.1.3; platform node.js/v8.12.0; os Linux/4.4.0-1027-aws;\r\nAuthorization: Bearer d3f6bfc0bf470ccbfff65d9274469752aad3de0c517c4f660846666d738939b5\r\nuser-agent: node.js/v8.12.0\r\nAccept-Encoding: gzip\r\nHost: cdn.contentful.com\r\nConnection: close\r\n\r\n',
2018-10-10T12:58:27.950780+00:00 app[web.1]: _onPendingData: [Function: noopPendingOutput],
2018-10-10T12:58:27.950781+00:00 app[web.1]: agent: [Object],
2018-10-10T12:58:27.950783+00:00 app[web.1]: socketPath: undefined,
2018-10-10T12:58:27.950784+00:00 app[web.1]: timeout: undefined,
2018-10-10T12:58:27.950786+00:00 app[web.1]: method: 'GET',
2018-10-10T12:58:27.950787+00:00 app[web.1]: path: '/spaces/3gxybr5ur7hf/entries?content_type=recipe&fields.isPublic=true&fields.originalRecipe%5Bexists%5D=false&fields.environment%5Bne%5D=staging&fields.savesCount%5Bgte%5D=1&order=-fields.savesCount&limit=3',
2018-10-10T12:58:27.950789+00:00 app[web.1]: _ended: false,
2018-10-10T12:58:27.950790+00:00 app[web.1]: res: null,
2018-10-10T12:58:27.950792+00:00 app[web.1]: aborted: 1539176307946,
2018-10-10T12:58:27.950793+00:00 app[web.1]: timeoutCb: null,
2018-10-10T12:58:27.950795+00:00 app[web.1]: upgradeOrConnect: false,
2018-10-10T12:58:27.950797+00:00 app[web.1]: parser: [Object],
2018-10-10T12:58:27.950798+00:00 app[web.1]: maxHeadersCount: null,
2018-10-10T12:58:27.950799+00:00 app[web.1]: _redirectable: [Circular],
2018-10-10T12:58:27.950801+00:00 app[web.1]: [Symbol(outHeadersKey)]: [Object] },
2018-10-10T12:58:27.950803+00:00 app[web.1]: _currentUrl: 'https://cdn.contentful.com:443/spaces/3gxybr5ur7hf/entries?content_type=recipe&fields.isPublic=true&fields.originalRecipe%5Bexists%5D=false&fields.environment%5Bne%5D=staging&fields.savesCount%5Bgte%5D=1&order=-fields.savesCount&limit=3' },
2018-10-10T12:58:27.950804+00:00 app[web.1]: response: undefined,
2018-10-10T12:58:27.950806+00:00 app[web.1]: attempts: 12 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment