Hi I'm not sure if this is an issue or I'm doing something wrong.
I'm trying to call an external API to download a PDF file that I will later encode into a base64 string.
I used .post from RESTDataSource class.
But the string I receive is not correct.
I tried the same using axios and everything is perfectly working.
This is the working code:
Hi I'm not sure if this is an issue or I'm doing something wrong. I'm trying to call an external API to download a PDF file that I will later encode into a base64 string.
I used .post from RESTDataSource class. But the string I receive is not correct.
I tried the same using axios and everything is perfectly working. This is the working code:
This is the not working call using RESTDataSource method.
I can't use responseType here because is not supported, I didn't find any way to pass it to the post function.