R
Railway•7mo ago
fenrils

Flask Project: Handling 503 Error in Image Upscaling Service

Hello everyone, I have the following issue with my Flask project, and it's related to a service I've created called "upscale" that is used to upscale an image sent to the service using a pre-trained model (edsr). When I send very small images to the service, there is no issue, but when I send larger ones, I receive a 503 Service Unavailable error. I don't see it reaching 2GB out of 8GB, and I also don't have more information to understand what's happening.
13 Replies
Percy
Percy•7mo ago
Project ID: fe9a74ce-a750-4b41-8b98-b322fd717e98
fenrils
fenrils•7mo ago
fe9a74ce-a750-4b41-8b98-b322fd717e98
Brody
Brody•7mo ago
anything useful in the deployment logs?
fenrils
fenrils•7mo ago
I don't see anything indicating the 503 error; I receive the same response whether it's working or not
No description
fenrils
fenrils•7mo ago
No description
Brody
Brody•7mo ago
how large is a large image
fenrils
fenrils•7mo ago
208Kb 1024x1024
Brody
Brody•7mo ago
how long does a request usally take for that image locally?
fenrils
fenrils•7mo ago
It takes 38 seconds to return the result locally Can you help me with this? I don't understand why the server isn't responding even though I'm not exceeding the contracted resource limit. I'm also not receiving a timeout, but after 10 seconds, it returns a 503 error.
Brody
Brody•7mo ago
best i can tell you is that your app sent a malformed response nice AI answer 🤣
fenrils
fenrils•7mo ago
It can't be because if I send a lighter image, the server responds, and the process it performs is the same. If it were a poorly formed response, would it return a 503? Could it be a resource issue? Sorry, I'm using ChatGPT today to translate a message, but it only responded with xD
Brody
Brody•7mo ago
check your memory metrics if you think its a resource issue
fenrils
fenrils•7mo ago
ok