Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Fix 'NoneType' object has no attribute 'writeHeaders' #2796

Merged
merged 2 commits into from
Jan 17, 2018

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jan 16, 2018

Avoid throwing a (harmless) exception when we try to write an error response to
an http request where the client has disconnected.

This comes up as a CRITICAL error in the logs which tends to mislead people
into thinking there's an actual problem

Avoid throwing a (harmless) exception when we try to write an error response to
an http request where the client has disconnected.

This comes up as a CRITICAL error in the logs which tends to mislead people
into thinking there's an actual problem
@richvdh richvdh merged commit 1954e86 into develop Jan 17, 2018
@richvdh richvdh deleted the rav/fix_closed_connection_errors branch January 17, 2018 13:52
anoadragon453 added a commit that referenced this pull request Oct 6, 2020
…cted (#8465)

This PR ports the quick fix from #2796 to further methods which handle media, URL preview and `/key/v2/server` requests. This prevents a harmless `ERROR` that comes up in the logs when we were unable to respond to a client request when the client had already disconnected. In this case we simply bail out if the client has already done so.

This is the 'simple fix' as suggested by #5304 (comment).

Fixes #6700
Fixes #5304
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants