linagora / jmap-client-ts

JMAP 1.0 client library in TypeScript
MIT License
39 stars 16 forks source link

Provide response object in Error #72

Open mwalkerr opened 2 years ago

mwalkerr commented 2 years ago

I'm getting a 400 response but only getting a generic error message indicating the http response status, which makes it difficult to figure out what went wrong

mwalkerr commented 2 years ago

For my own case, using new AxiosTransport(axios) instead of new FetchTransport(fetch) did the trick. Leaving this up as a suggestion though