Skip to content

Demo access to secret returns internal server error #5

@clelange

Description

@clelange

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions