benoitc / gunicorn

gunicorn 'Green Unicorn' is a WSGI HTTP Server for UNIX, fast clients and sleepy applications.
http://www.gunicorn.org
Other
9.88k stars 1.76k forks source link

TransportError and KeyError Encountered in Flask Application #3249

Closed Harini080922 closed 3 months ago

Harini080922 commented 4 months ago

Our Flask application, running with Gunicorn, is encountering two critical issues:

TransportError: The application experiences a TransportError when attempting to fetch data from Google Sheets. This error, ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')), indicates that the connection to the Google Sheets API is unexpectedly closed, preventing data retrieval.

KeyError: After handling the transport error, a KeyError occurs when the application tries to access the 'village','assignedmobile' keys in the data. This happens because the expected key does not exist in one or more records retrieved from Google Sheets.

These issues are disrupting the application's functionality and require immediate attention to restore proper operation.

pajod commented 4 months ago

@Harini080922 You posted this to the issue tracker of Gunicorn, but it sounds like you are soliciting help in diagnosing an issue with your application.

Harini080922 commented 4 months ago

It is showing internal sever error 500.So we thought it might be error from server

benoitc commented 3 months ago

@Harini080922 looks like a failure in your app that made gunicorn crashing there.