Skip to content
This repository has been archived by the owner on Aug 6, 2021. It is now read-only.

UnhandledPromiseRejectionWarning: Error: Request failed with status code 400 #62

Open
McSloverd opened this issue Apr 6, 2020 · 0 comments

Comments

@McSloverd
Copy link

McSloverd commented Apr 6, 2020

Bug report

Call to registerDevice(DEVICE_NAME)
&
Call to registerSession()
Throw
'UnhandledPromiseRejectionWarning: Error: Request failed with status code 400'

I think maybe bunq changed api or something.

await bunqJSClientCustom.registerDevice(DEVICE_NAME);

await bunqJSClientCustom.registerSession();

Error:
(node:4795) UnhandledPromiseRejectionWarning: Error: Request failed with status code 400 at createError (/node_modules/axios/lib/core/createError.js:16:15) at settle (/node_modules/axios/lib/core/settle.js:18:12) at IncomingMessage.handleStreamEnd (/node_modules/axios/lib/adapters/http.js:202:11) at IncomingMessage.emit (events.js:323:22) at endReadableNT (_stream_readable.js:1204:12) at processTicksAndRejections (internal/process/task_queues.js:84:21)

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

No branches or pull requests

1 participant