We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We appear to be logging the entire request when certain errors occur, as opposed to just the error message. We should log just the error message
statusCode: 500, error: { microserviceUrl: 'http://treetracker-field-data.field-data-api/session', data: '{"wallet":"+838686868+","session_id":"0547b559-6a91-4cce-98d5-7b73d71cc423","organization":"Ufucj","target_wallet":"+838686868+","device_configuration_id":"444c7259-bca6-4c7e-ac54-264dc1e28775"}', code: 422, message: '"id" is required;"originating_wallet_registration_id" is required;"wallet" is not allowed;"session_id" is not allowed' }, options: { method: 'POST', uri: 'http://bulk-pack-transformer-v2.bulk-pack-services/sessions', body: { wallet: '+838686868+', session_id: '0547b559-6a91-4cce-98d5-7b73d71cc423', organization: 'Ufucj', target_wallet: '+838686868+', device_configuration_id: '444c7259-bca6-4c7e-ac54-264dc1e28775' }, json: true, callback: [Function: RP$callback], transform: undefined, simple: true, resolveWithFullResponse: false, transform2xxOnly: false }, response: <ref *1> IncomingMessage { _readableState: ReadableState { objectMode: false, highWaterMark: 16384, buffer: BufferList { head: null, tail: null, length: 0 }, length: 0, pipes: [], flowing: true, ended: true, endEmitted: true, reading: false, constructed: true, sync: true, needReadable: false, emittedReadable: false, readableListening: false, resumeScheduled: false, errorEmitted: false, emitClose: true, autoDestroy: true, destroyed: true, errored: null, closed: true, closeEmitted: true, defaultEncoding: 'utf8', awaitDrainWriters: null, multiAwaitDrain: false, readingMore: true, dataEmitted: true, decoder: null, encoding: null, [Symbol(kPaused)]: false }, _events: [Object: null prototype] { end: [Array], close: [Array], data: [Function (anonymous)], error: [Function (anonymous)] }, _eventsCount: 4, _maxListeners: undefined, socket: Socket { connecting: false, _hadError: false, _parent: null, _host: 'bulk-pack-transformer-v2.bulk-pack-services', _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: [ClientRequest], [Symbol(async_id_symbol)]: 26, [Symbol(kHandle)]: [TCP], [Symbol(kSetNoDelay)]: false, [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: null, [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(kCapture)]: false, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0, [Symbol(RequestTimeout)]: undefined }, httpVersionMajor: 1, httpVersionMinor: 1, httpVersion: '1.1', complete: true, rawHeaders: [ 'X-Powered-By', 'Express', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '447', 'ETag', 'W/"1bf-AcTuOCukL10DU0uof/Z0cm1ElEA"', 'Date', 'Sat, 26 Feb 2022 20:45:03 GMT', 'Connection', 'close' ], rawTrailers: [], aborted: false, upgrade: false, url: '', method: null, statusCode: 500, statusMessage: 'Internal Server Error', client: Socket { connecting: false, _hadError: false, _parent: null, _host: 'bulk-pack-transformer-v2.bulk-pack-services', _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: [ClientRequest], [Symbol(async_id_symbol)]: 26, [Symbol(kHandle)]: [TCP], [Symbol(kSetNoDelay)]: false, [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: null, [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(kCapture)]: false, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0, [Symbol(RequestTimeout)]: undefined }, _consuming: false, _dumped: false, req: ClientRequest { _events: [Object: null prototype], _eventsCount: 5, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: false, _last: true, chunkedEncoding: false, shouldKeepAlive: false, maxRequestsOnConnectionReached: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, _contentLength: null, _hasBody: true, _trailer: '', finished: true, _headerSent: true, _closed: false, socket: [Socket], _header: 'POST /sessions HTTP/1.1\r\n' + 'host: bulk-pack-transformer-v2.bulk-pack-services\r\n' + 'accept: application/json\r\n' + 'content-type: application/json\r\n' + 'content-length: 194\r\n' + 'Connection: close\r\n' + '\r\n', _keepAliveTimeout: 0, _onPendingData: [Function: nop], agent: [Agent], socketPath: undefined, method: 'POST', maxHeaderSize: undefined, insecureHTTPParser: undefined, path: '/sessions', _ended: true, res: [Circular *1], aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, reusedSocket: false, host: 'bulk-pack-transformer-v2.bulk-pack-services', protocol: 'http:', [Symbol(kCapture)]: false, [Symbol(kNeedDrain)]: false, [Symbol(corked)]: 0, [Symbol(kOutHeaders)]: [Object: null prototype] }, request: Request { _events: [Object: null prototype], _eventsCount: 5, _maxListeners: undefined, method: 'POST', uri: [Url], body: '{"wallet":"+838686868+","session_id":"0547b559-6a91-4cce-98d5-7b73d71cc423","organization":"Ufucj","target_wallet":"+838686868+","device_configuration_id":"444c7259-bca6-4c7e-ac54-264dc1e28775"}', readable: true, writable: true, explicitMethod: true, _qs: [Querystring], _auth: [Auth], _oauth: [OAuth], _multipart: [Multipart], _redirect: [Redirect], _tunnel: [Tunnel], _rp_resolve: [Function (anonymous)], _rp_reject: [Function (anonymous)], _rp_promise: [Promise], _rp_callbackOrig: undefined, callback: [Function (anonymous)], _rp_options: [Object], headers: [Object], setHeader: [Function (anonymous)], hasHeader: [Function (anonymous)], getHeader: [Function (anonymous)],
The text was updated successfully, but these errors were encountered:
Kpoke
No branches or pull requests
We appear to be logging the entire request when certain errors occur, as opposed to just the error message. We should log just the error message
The text was updated successfully, but these errors were encountered: