Add response id to error messages from failed requests
Closed this issue · 2 comments
OGKevin commented
Steps to reproduce:
- Make a bad request
- Try and get the response id from the
X-Bunq-Server-Response-Id
header.
What should happen:
- There is a way to get the response id to debug this error on bunq's side if needed.
What happens:
- 👆 is not possible.
Logs
- Logs 'no
logs
Extra info:
- Tested on 0.12.4
References
kid-cavaquinho commented
@OGKevin the X-Bunq-Server-Response-Id header is always present in every request, correct? Should it only be returned with 400 messages?
OGKevin commented
@AnTao it is indeed present with each request!
Please see how its implemented in php: bunq/sdk_php#93 or by viewing the referenced issue 👍 So you have an idea on how it should be done.