Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- message: 'Request failed with status code 404',
- name: 'AxiosError',
- code: 'ERR_BAD_REQUEST',
- config: {
- transitional: {
- silentJSONParsing: true,
- forcedJSONParsing: true,
- clarifyTimeoutError: false
- },
- adapter: [ 'xhr', 'http' ],
- transformRequest: [ [Function: transformRequest] ],
- transformResponse: [ [Function: transformResponse] ],
- timeout: 0,
- xsrfCookieName: 'XSRF-TOKEN',
- xsrfHeaderName: 'X-XSRF-TOKEN',
- maxContentLength: -1,
- maxBodyLength: -1,
- env: { FormData: [Function], Blob: null },
- validateStatus: [Function: validateStatus],
- headers: AxiosHeaders {
- Accept: 'application/json, text/plain, */*',
- 'User-Agent': 'axios/1.3.3',
- 'Accept-Encoding': 'gzip, compress, deflate, br'
- },
- baseURL: 'http://0.0.0.0:1337/api',
- method: 'get',
- url: '/menus/1?nested&populate[0]=%2A&publicationState=live&locale[0]=en',
- data: undefined
- },
- request: <ref *1> ClientRequest {
- _events: [Object: null prototype] {
- abort: [Function (anonymous)],
- aborted: [Function (anonymous)],
- connect: [Function (anonymous)],
- error: [Function (anonymous)],
- socket: [Function (anonymous)],
- timeout: [Function (anonymous)],
- finish: [Function: requestOnFinish]
- },
- _eventsCount: 7,
- _maxListeners: undefined,
- outputData: [],
- outputSize: 0,
- writable: true,
- destroyed: false,
- _last: true,
- chunkedEncoding: false,
- shouldKeepAlive: false,
- maxRequestsOnConnectionReached: false,
- _defaultKeepAlive: true,
- useChunkedEncodingByDefault: false,
- sendDate: false,
- _removedConnection: false,
- _removedContLen: false,
- _removedTE: false,
- strictContentLength: false,
- _contentLength: 0,
- _hasBody: true,
- _trailer: '',
- finished: true,
- _headerSent: true,
- _closed: false,
- socket: Socket {
- connecting: false,
- _hadError: false,
- _parent: null,
- _host: null,
- _closeAfterHandlingError: false,
- _readableState: [ReadableState],
- _events: [Object: null prototype],
- _eventsCount: 7,
- _maxListeners: undefined,
- _writableState: [WritableState],
- allowHalfOpen: false,
- _sockname: null,
- _pendingData: null,
- _pendingEncoding: '',
- server: null,
- _server: null,
- parser: null,
- _httpMessage: [Circular *1],
- [Symbol(async_id_symbol)]: 7400,
- [Symbol(kHandle)]: [TCP],
- [Symbol(lastWriteQueueSize)]: 0,
- [Symbol(timeout)]: null,
- [Symbol(kBuffer)]: null,
- [Symbol(kBufferCb)]: null,
- [Symbol(kBufferGen)]: null,
- [Symbol(kCapture)]: false,
- [Symbol(kSetNoDelay)]: false,
- [Symbol(kSetKeepAlive)]: true,
- [Symbol(kSetKeepAliveInitialDelay)]: 60,
- [Symbol(kBytesRead)]: 0,
- [Symbol(kBytesWritten)]: 0,
- [Symbol(RequestTimeout)]: undefined
- },
- _header: 'GET /api/menus/1?nested&populate[0]=%2A&publicationState=live&locale[0]=en HTTP/1.1\r\n' +
- 'Accept: application/json, text/plain, */*\r\n' +
- 'User-Agent: axios/1.3.3\r\n' +
- 'Accept-Encoding: gzip, compress, deflate, br\r\n' +
- 'Host: 0.0.0.0:1337\r\n' +
- 'Connection: close\r\n' +
- '\r\n',
- _keepAliveTimeout: 0,
- _onPendingData: [Function: nop],
- agent: Agent {
- _events: [Object: null prototype],
- _eventsCount: 2,
- _maxListeners: undefined,
- defaultPort: 80,
- protocol: 'http:',
- options: [Object: null prototype],
- requests: [Object: null prototype] {},
- sockets: [Object: null prototype],
- freeSockets: [Object: null prototype] {},
- keepAliveMsecs: 1000,
- keepAlive: false,
- maxSockets: Infinity,
- maxFreeSockets: 256,
- scheduling: 'lifo',
- maxTotalSockets: Infinity,
- totalSocketCount: 1,
- [Symbol(kCapture)]: false
- },
- socketPath: undefined,
- method: 'GET',
- maxHeaderSize: undefined,
- insecureHTTPParser: undefined,
- path: '/api/menus/1?nested&populate[0]=%2A&publicationState=live&locale[0]=en',
- _ended: true,
- res: IncomingMessage {
- _readableState: [ReadableState],
- _events: [Object: null prototype],
- _eventsCount: 4,
- _maxListeners: undefined,
- socket: [Socket],
- httpVersionMajor: 1,
- httpVersionMinor: 1,
- httpVersion: '1.1',
- complete: true,
- rawHeaders: [Array],
- rawTrailers: [],
- aborted: false,
- upgrade: false,
- url: '',
- method: null,
- statusCode: 404,
- statusMessage: 'Not Found',
- client: [Socket],
- _consuming: false,
- _dumped: false,
- req: [Circular *1],
- responseUrl: 'http://0.0.0.0:1337/api/menus/1?nested&populate[0]=%2A&publicationState=live&locale[0]=en',
- redirects: [],
- [Symbol(kCapture)]: false,
- [Symbol(kHeaders)]: [Object],
- [Symbol(kHeadersCount)]: 30,
- [Symbol(kTrailers)]: null,
- [Symbol(kTrailersCount)]: 0,
- [Symbol(RequestTimeout)]: undefined
- },
- aborted: false,
- timeoutCb: null,
- upgradeOrConnect: false,
- parser: null,
- maxHeadersCount: null,
- reusedSocket: false,
- host: '0.0.0.0',
- protocol: 'http:',
- _redirectable: Writable {
- _writableState: [WritableState],
- _events: [Object: null prototype],
- _eventsCount: 3,
- _maxListeners: undefined,
- _options: [Object],
- _ended: true,
- _ending: true,
- _redirectCount: 0,
- _redirects: [],
- _requestBodyLength: 0,
- _requestBodyBuffers: [],
- _onNativeResponse: [Function (anonymous)],
- _currentRequest: [Circular *1],
- _currentUrl: 'http://0.0.0.0:1337/api/menus/1?nested&populate[0]=%2A&publicationState=live&locale[0]=en',
- [Symbol(kCapture)]: false
- },
- [Symbol(kCapture)]: false,
- [Symbol(kBytesWritten)]: 0,
- [Symbol(kEndCalled)]: true,
- [Symbol(kNeedDrain)]: false,
- [Symbol(corked)]: 0,
- [Symbol(kOutHeaders)]: [Object: null prototype] {
- accept: [Array],
- 'user-agent': [Array],
- 'accept-encoding': [Array],
- host: [Array]
- },
- [Symbol(kUniqueHeaders)]: null
- },
- response: {
- status: 404,
- statusText: 'Not Found',
- headers: AxiosHeaders {
- vary: 'Origin',
- 'content-security-policy': "connect-src 'self' https:;img-src 'self' data: blob: dl.airtable.com undefined.s3.undefined.amazonaws.com;media-src 'self' data: blob: dl.airtable.com undefined.s3.undefined.amazonaws.com;default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline'",
- 'x-dns-prefetch-control': 'off',
- 'expect-ct': 'max-age=0',
- 'x-frame-options': 'SAMEORIGIN',
- 'strict-transport-security': 'max-age=31536000; includeSubDomains',
- 'x-download-options': 'noopen',
- 'x-content-type-options': 'nosniff',
- 'x-permitted-cross-domain-policies': 'none',
- 'referrer-policy': 'no-referrer',
- 'x-powered-by': 'Strapi <strapi.io>',
- 'content-type': 'application/json; charset=utf-8',
- 'content-length': '94',
- date: 'Fri, 17 Feb 2023 18:42:50 GMT',
- connection: 'close'
- },
- config: {
- transitional: [Object],
- adapter: [Array],
- transformRequest: [Array],
- transformResponse: [Array],
- timeout: 0,
- xsrfCookieName: 'XSRF-TOKEN',
- xsrfHeaderName: 'X-XSRF-TOKEN',
- maxContentLength: -1,
- maxBodyLength: -1,
- env: [Object],
- validateStatus: [Function: validateStatus],
- headers: [AxiosHeaders],
- baseURL: 'http://0.0.0.0:1337/api',
- method: 'get',
- url: '/menus/1?nested&populate[0]=%2A&publicationState=live&locale[0]=en',
- data: undefined
- },
- request: <ref *1> ClientRequest {
- _events: [Object: null prototype],
- _eventsCount: 7,
- _maxListeners: undefined,
- outputData: [],
- outputSize: 0,
- writable: true,
- destroyed: false,
- _last: true,
- chunkedEncoding: false,
- shouldKeepAlive: false,
- maxRequestsOnConnectionReached: false,
- _defaultKeepAlive: true,
- useChunkedEncodingByDefault: false,
- sendDate: false,
- _removedConnection: false,
- _removedContLen: false,
- _removedTE: false,
- strictContentLength: false,
- _contentLength: 0,
- _hasBody: true,
- _trailer: '',
- finished: true,
- _headerSent: true,
- _closed: false,
- socket: [Socket],
- _header: 'GET /api/menus/1?nested&populate[0]=%2A&publicationState=live&locale[0]=en HTTP/1.1\r\n' +
- 'Accept: application/json, text/plain, */*\r\n' +
- 'User-Agent: axios/1.3.3\r\n' +
- 'Accept-Encoding: gzip, compress, deflate, br\r\n' +
- 'Host: 0.0.0.0:1337\r\n' +
- 'Connection: close\r\n' +
- '\r\n',
- _keepAliveTimeout: 0,
- _onPendingData: [Function: nop],
- agent: [Agent],
- socketPath: undefined,
- method: 'GET',
- maxHeaderSize: undefined,
- insecureHTTPParser: undefined,
- path: '/api/menus/1?nested&populate[0]=%2A&publicationState=live&locale[0]=en',
- _ended: true,
- res: [IncomingMessage],
- aborted: false,
- timeoutCb: null,
- upgradeOrConnect: false,
- parser: null,
- maxHeadersCount: null,
- reusedSocket: false,
- host: '0.0.0.0',
- protocol: 'http:',
- _redirectable: [Writable],
- [Symbol(kCapture)]: false,
- [Symbol(kBytesWritten)]: 0,
- [Symbol(kEndCalled)]: true,
- [Symbol(kNeedDrain)]: false,
- [Symbol(corked)]: 0,
- [Symbol(kOutHeaders)]: [Object: null prototype],
- [Symbol(kUniqueHeaders)]: null
- },
- data: { data: null, error: [Object] }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment