Closed sarbogast closed 6 days ago
Hi @sarbogast, thank you for reporting this issue. I have identified and fixed the problem, so you can download version 4.0.2 today when I release it shortly, and everything should be working fine.
The issue was in the library as you correctly assumed. Because the amadeus-ts
library aims to eliminate the need for users to manually use JSON.stringify before passing the request body to some of the endpoints.
in amadeus
library you would have to pass your request as follows:
amadeus.travel.tripParser.post(JSON.stringify(body));
in amadeus-ts
library:
amadeus.travel.tripParser.post(body);
But apparently I forgot to implement this feature to this specific endpoint when I was rewriting the codebase.
Thank you again for reporting this issue.
Wow, that was fast. Thanks a lot.
I'm trying to use amadeus-ts to call the Amadeus API for the first time with this code:
And I double checked that emailData is a base-64 encoded email body. But then I get the following error that seems to come from inside this library:
Am I doing something wrong?