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

Demo access to secret returns internal server error #5

Open
clelange opened this issue Aug 23, 2022 · 1 comment
Open

Demo access to secret returns internal server error #5

clelange opened this issue Aug 23, 2022 · 1 comment

Comments

@clelange
Copy link

Following the sciauth notebook demo at https://sciauth.org/notebook-demo, I get a 500 Internal Server Error when trying to access https://demo.scitokens.org/secret with the adjusted token (and a valid email address not provided below).

payload = {
    "sub": "XXX",
    "scope": "read:/secret"
}
token = getToken(payload)
headers = {'Authorization': "Bearer " + token}
query = requests.get("https://demo.scitokens.org/secret", headers=headers)
print(query.text)

yields:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>500 Internal Server Error</title>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>
@djw8605
Copy link
Contributor

djw8605 commented Aug 24, 2022

Thanks for the issue, looking into it.

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

2 participants