#Thanks for the response however I have a
1 messages · Page 1 of 1 (latest)
LMK if better way to share, but here is the function making the call to the eleven api
That is called from this express endpoint
and here are the logs from the server
@cold tartan lmk if I should share something else
I'm triggering this express endpoint from postman, the text passed to the endpoint is just "Buffalo", for testing purposes.
seems you are trying to use data.message instead of req.body
don't think that's the issue, that's just the custom structure from the payload. Here's my postman call to the endpoint for reference
data = req.body & message is the only field in data. I can add log statements/rerun in various places, I had also added an interceptor to compare the sent axios request to the working postman request
the image above also shows the format of the output (which appeared to be encoded string, so I previously attempted to decode and load a file from that response data)
ok for anyone following this thread I believe I've solved my problem
I added responseType: 'arraybuffer' to my axios request
after doing so the test file I had been writing to disk was playable