Error: when call a enpoint and response a blob

masebatoHOBBY

a year ago

When i call an endpoint that response with a blob file, railway dont allow this response.
The API Rest is build with express, anyone know some solution?

Solved

9 Replies

a year ago

This would not have to do with Railway not allowing it, that simply isn't true, this would be a code or config issue.

Please send me a link to where this blob is supposed to be given as a response.


masebatoHOBBY

a year ago

Sure !, this work in my local xd

PATCH
https://customer.frioguard.com/report/history

{
"idDevice": "2",
"date": "2024-03-07",
"state": "CONECTADO",
"name": "PRUEBAS",
"tempMax": 30.9,
"tempMin": 26
}

Attachments


a year ago

im getting a 503 back from that endpoint

Attachments


a year ago

are you seeing any errors in your deploy logs?


masebatoHOBBY

a year ago

some errors, but idk if are related to this case

Attachments


masebatoHOBBY

a year ago

ahh ok, i just see a error related to puppeteer library, must be that, im going check


a year ago

For that, I would highly recommend using the browserless template instead of installing chrome into the container.

https://railway.app/template/browserless

here is an example repository on how you would use the browserless template with puppeteer -

https://github.com/brody192/puppeteer-example/tree/main

Please read the README for instructions.


Status changed to Solved railway[bot] about 1 year ago


masebatoHOBBY

a year ago

Thanks bro ! i will apply this changes an try again


masebatoHOBBY

a year ago

Already solved it , thank you so much bro !


Error: when call a enpoint and response a blob - Railway Help Station