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

bug: Valid JWT Token Causes /wp-json/wp/v2/media Request to Hang in WordPress 6.7.1 #124

Open
MarkusWahlman opened this issue Jan 28, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@MarkusWahlman
Copy link

Bug Report

Plugin Version

3.5.7

PHP Version

7.4.33

WordPress Version

6.7.1

Bug description

This bug came with WordPress Version 6.7.1, I rolled back to the old version (6.6.2) and it's working as expected without issues.

When making a request to https://site.com/wp-json/wp/v2/media?per_page=100 the request never completes, and never returns anything.
This only happens if the Header Authorization Bearer eyJ0eXA.... is present and the token is valid. If I pass an invalid token it returns
{
"success": false,
"data": {
"message": "Signature verification failed",
"errorCode": 11,
"type": "simple-jwt-login-middleware"
}
}
This route doesn't need authorization, and works well if the Authorization Header is not present.
Of course this only happens when "All WordPress endpoints checks for JWT authentication" is checked.

@MarkusWahlman MarkusWahlman added the bug Something isn't working label Jan 28, 2025
@nicumicle nicumicle self-assigned this Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants