-
Notifications
You must be signed in to change notification settings - Fork 642
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
[4.x]: Craft throws invalid access token error when clicking on GraphQL "Public Schema" #11218
Comments
Can you find that error in |
|
I am having the same issue as well. Also running the same versions of Craft, PHP, and MySQL as OP. Any updates on this? |
From a fresh Craft 4 installation, I'm able to reproduce this by deleting the auto-generated public token in the If I also delete the public schema row in the |
I was able to reproduce when the token was present in the project config, but not in the database, and believe it’s due to a project config service change in Craft 4, where changes are only processed if the value actually changes. Anyway, I’ve fixed this for the next release by moving away from storing the public token in the database altogether, as there’s really no point in doing that if the exact same config data is already in the project config. To get the fix early, change your |
Thanks allot @brandonkelly I can confirm, my end that that fix worked, great stuff 👍🏼 |
Craft 4.0.3 is out now with that fix. |
What happened?
Description
Craft throws an error when clicking on the default GraphQL "Public Schema" due to invalid access token
Steps to reproduce
Actual behavior
Invalid Argument – yii\base\InvalidArgumentException
Invalid access token
Craft CMS version
4.0.2
PHP version
8.1.5
Operating system and version
Linux 5.4.0
Database type and version
MySQL 8.0.29
Image driver and version
Imagick 3.6.0
The text was updated successfully, but these errors were encountered: