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
Project ID:
fe9a74ce-a750-4b41-8b98-b322fd717e98
fe9a74ce-a750-4b41-8b98-b322fd717e98
anything useful in the deployment logs?
I don't see anything indicating the 503 error; I receive the same response whether it's working or not
how large is a large image
208Kb 1024x1024
how long does a request usally take for that image locally?
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.
best i can tell you is that your app sent a malformed response
nice AI answer 🤣
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
check your memory metrics if you think its a resource issue
ok