You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think this causes any user visible problems, since we still send out the request. (I just think we'll fail to do any meaningful logging about the result.)
iweb.IResponse.headers and client.Response.headers are unannotated. I'm only seeing this now because I've added a stub which marks headers: Headers. And thankfully Headers is annotated.
Mypying spotted the following problem. But I can't see this behaviour in Sentry. That is odd. I don't understand the discrepancy and I'd like to.
In the following snippet:
getAllRawHeaders
yields(bytes, List[bytes])
. AFAICS it's done this since late 2015.So
headers: Dict[bytes, List[bytes]]
.Therefore
"X-Request-Id in headers"
is False .Therefore
request_id is None
and we never log a request ID.Additionally,
"Location" not in headers
is True.Therefore we should always raise on line 142.
sydent/sydent/sms/openmarket.py
Lines 109 to 157 in 1f27a2d
The text was updated successfully, but these errors were encountered: