Error: when call a enpoint and response a blob
masebato
HOBBYOP

2 years 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

2 years 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.


masebato
HOBBYOP

2 years 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


2 years ago

im getting a 503 back from that endpoint

Attachments


2 years ago

are you seeing any errors in your deploy logs?


masebato
HOBBYOP

2 years ago

some errors, but idk if are related to this case

Attachments


masebato
HOBBYOP

2 years ago

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


2 years 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 almost 2 years ago


masebato
HOBBYOP

2 years ago

Thanks bro ! i will apply this changes an try again


masebato
HOBBYOP

2 years ago

Already solved it , thank you so much bro !


Loading...