question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'/auth/status' error

See original GitHub issue
auth_token = auth_header.split(" ")[1]
IndexError: list index out of range

auth_header is one piece so splitting it and taking the second part raises “IndexError: list index out of range” error.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mjhea0commented, Aug 2, 2017

The token is malformed. In the value you need to put Bearer before the token value.

Bearer 12345

I updated the code to catch this. I’ll update the blog post later today or tomorrow.

https://github.com/realpython/flask-jwt-auth/pull/10

Read more comments on GitHub >

github_iconTop Results From Across the Web

AuthStatus (Java(TM) EE 7 Specification APIs)
static AuthStatus · FAILURE. Indicates that the message processing by the authentication module was NOT successful, and that the module replaced the application ......
Read more >
Troubleshoot hybrid Azure AD-joined devices - Microsoft Learn
This section is displayed only if the device is domain-joined and unable to hybrid Azure AD-join. The "Error Phase" field denotes the phase...
Read more >
AuthStatus in gotham_restful - Rust - Docs.rs
The request has been performed with an invalid authentication. This includes expired tokens. Further details can be obtained from the included error.
Read more >
Example usage for javax.security.auth.message AuthStatus ...
In this page you can find the example usage for javax.security.auth.message AuthStatus FAILURE. Prototype. AuthStatus FAILURE. To view the source code for javax ......
Read more >
Enum AuthStatus
public enum AuthStatus extends Enum<AuthStatus>. Denotes the result of an HTTP authentication attempt. Available statuses: CHALLENGED, SUCCESS, FAILURE ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found