gradio-app / gradio

Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!
http://www.gradio.app
Apache License 2.0
34.26k stars 2.6k forks source link

404: Session not found #9252

Open Samadan01 opened 2 months ago

Samadan01 commented 2 months ago

Describe the bug

My response from the API during my GET request with command line interface(Bash), it keeps giving: event: error data: "404: Session not found."

Have you searched existing issues? 🔎

Reproduction

curl -X POST https://samadan01-blip-image-captioning-api.hf.space/call/predict -s -H "Content-Type: application/json" -d '{ "data": [ {"path":"https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png"} ]}'

curl -N GET https://samadan01-blip-image-captioning-api.hf.space/call/predict/$EVENT_ID

Screenshot

No response

Logs

event: error
data: "404: Session not found."

System Info

Using the lastest gradio on hugging Face, which runs perfectly on Hugging Face

Severity

Blocking usage of gradio

skye0402 commented 2 months ago

Yep, like #6920 and my bug #9169 - It's a nasty bug and my users complain. They can work around it by opening an incognito session in the browser until the regular browser works again (I think once a certain session timeout is reached which can be minutes or hours, I don't have details).

AusafG5 commented 3 days ago

Is there any resolve for this ?

has almost made our prod apps unusable when deployed to googe cloud run services or localtunnelling/port forwarding, basically only works locally.

it's happening again in 5.7.0 version updates.