zenhack / powerbox-http-proxy

Apache License 2.0
4 stars 3 forks source link

Proxy turns upstream 401 Unauthorized response into 500 Internal Server Error #5

Closed abliss closed 4 years ago

abliss commented 4 years ago

Example url: https://matrix-federation.matrix.org:443/_matrix/federation/v1/query/profile?user_id=%40abliss%3Amatrix.org&field=displayname

zenhack commented 4 years ago

Looks like this is also a Sandstorm issue: see ClientErrorCode in web-session.capnp, and the responseCodes table in shell/imports/server/drivers/external-ui-view.js.

I don't see any reason we couldn't add 401 to that list.

zenhack commented 4 years ago

(powerbox-http-proxy doesn't touch the response at all, so if it's getting mangled it's almost certainly a sandstorm issue).

zenhack commented 4 years ago

I'm going to close this in favor of sandstorm-io/sandstorm#3441