Skip to content
New issue

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

Internal error in error handling logic #101

Open
aharin opened this issue Jul 5, 2021 · 3 comments
Open

Internal error in error handling logic #101

aharin opened this issue Jul 5, 2021 · 3 comments

Comments

@aharin
Copy link

aharin commented Jul 5, 2021

Got a TypeError inside internal error handling code of the library today.

webpack://handler/node_modules/gocardless-nodejs/errors.js:29
const { statusCode, body: { error: { type, errors }, }, } = response;
^
TypeError: Cannot read property 'type' of undefined
at Function.buildFromResponse (/var/task/dist/lambda.js:11700:46)
-> webpack://handler/node_modules/gocardless-nodejs/errors.js:29:45
at Api.request (/var/task/dist/lambda.js:3748:55)
-> webpack://handler/node_modules/gocardless-nodejs/api/api.js:79:1
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async PaymentService.create (/var/task/dist/lambda.js:13225:26)
-> webpack://handler/node_modules/gocardless-nodejs/services/paymentService.js:21:1

@sambegin
Copy link

Same here, got an error this morning in production. This is bad

TypeError: Cannot read property 'type' of undefined
    at Function.buildFromResponse (/var/task/node_modules/src/errors.ts:63:18)
    at Api.request (/var/task/node_modules/src/api/api.ts:121:47)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at RedirectFlowService.create (/var/task/node_modules/src/services/redirectFlowService.ts:92:22)

@HatemSat
Copy link

This is happening a lot recently on our production code, any idea where this is coming from or how to handle it ?

@michaelkay-wrisk
Copy link

Hi. Is there any update to this issue as we've put up with production errors for a very long time which could possibly hide real errors?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants