Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected response from JWK key set URL causes very confusing error #6815

Open
robertknight opened this issue Oct 29, 2024 · 0 comments
Open

Comments

@robertknight
Copy link
Member

robertknight commented Oct 29, 2024

In this Slack thread launching the Hypothesis LMS assignment picker failed with a "could not connect to lms.hypothes.is" error.

After debugging (see thread), it turned out that the JWK key set URL had been misconfigured. The incorrect URL was returning a 3xx HTML response instead of JSON. This was handled very badly by the LMS app. Instead of triggering a helpful error indicating what happened, the app experienced an exception while attempting to parse the response from the key set URL request as JSON and this somehow led to a 502 gateway timeout. The gateway timeout HTTP response included an X-Frame-Options: SAMEORIGIN header which caused the browser to show a "failed to connect to lms.hypothes.is" error since the assignment picker is loaded in an iframe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant