Francismiko
Francismiko2y ago

The storage API returns a status code of 503

I upload files to storage through fetch, but sometimes the api status code of 503 will be returned to me (the occurrence rate is about 15%). I want to know whether this is my own reason or the server load limit of convex?
6 Replies
Francismiko
FrancismikoOP2y ago
res: code: "Overloaded" message: "InternalServerError: Your request couldn't be completed. Try again later." const postUrl = await getUrl() const result = await fetch(postUrl, { method: "POST", headers: { "Content-Type": file.type }, body: file, }) const res = await result.json() console.log({ res }) Works fine in most cases
nipunn
nipunn2y ago
Hi @Francismiko - thank you for reporting. I took a look and it's an issue on our side, which we're working on. In the meantime, you can safely retry with a small backoff.
Francismiko
FrancismikoOP2y ago
Is there an estimated repair time? Since my project has been deployed to the production environment, this will have a certain impact🏄‍♂️
Michal Srb
Michal Srb2y ago
Hey @Francismiko, we should get it sorted within the next 24 hours. Apologies for the bad experience.
Francismiko
FrancismikoOP2y ago
Thank you for your efforts, if there are any problems, I will continue to feedback🐎
nipunn
nipunn2y ago
Hi! We've pushed a mitigation to this problem which should vastly reduce the frequency of such errors. Let us know if you're still seeing it. Once again, thank you for the report!

Did you find this page helpful?