API response body - How to use that in Thunkable?

I have an API on AWS API Gateway which i can call successfully on browsers. It returns encoded binary content in the response body (audio/mpeg) - mp3 file. On browser it successfully plays. I am trying to get it playing either by video player or by using sound component. Both dont work.

On Thunkable it is giving an error: network error when attempting to fetch resource. I believe this is a CORS error.

If i try live testing on mobile device, first it gives 500 server error, then the video window appears for a micro second and then goes away. Nothing plays.

Any way i can make it work?

Have you set the api url/body/header?

1 Like

Yes I have set the API url, header . Body is not required for the API. API as such works in browser, postman etc.

have you tried using get_object_from_json block on the green response first before playing it?

if that still fails, have you tried using a CORS proxy? search our forums for “CORS proxy” and locate allorigins. or you can go to this directly: