We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Unable to create a passkey due to an 'Unable to load the data' error. Underlying error seems to be 'Request must accept JSON in response'.
Passkey is created successfully.
Receive a generic 'Unable to load the data' with nothing in the logs. Looking at the error in the browser console, I see a 400 error:
yii\web\BadRequestHttpException: Request must accept JSON in response in /var/www/html/vendor/craftcms/cms/src/web/Controller.php:554 Stack trace: #0 /var/www/html/vendor/craftcms/cms/src/controllers/AuthController.php(214): craft\web\Controller->requireAcceptsJson() #1 [internal function]: craft\controllers\AuthController->actionVerifyPasskeyCreation() #2 /var/www/html/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array) #3 /var/www/html/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams(Array) #4 /var/www/html/vendor/yiisoft/yii2/base/Module.php(552): yii\base\Controller->runAction('verify-passkey-...', Array) #5 /var/www/html/vendor/craftcms/cms/src/web/Application.php(349): yii\base\Module->runAction('auth/verify-pas...', Array) #6 /var/www/html/vendor/craftcms/cms/src/web/Application.php(650): craft\web\Application->runAction('auth/verify-pas...', Array) #7 /var/www/html/vendor/craftcms/cms/src/web/Application.php(311): craft\web\Application->_processActionRequest(Object(craft\web\Request)) #8 /var/www/html/vendor/yiisoft/yii2/base/Application.php(384): craft\web\Application->handleRequest(Object(craft\web\Request)) #9 /var/www/html/web/index.php(12): yii\base\Application->run() #10 {main}
5.0.0
8.2
No response
MySQL 8.0
The text was updated successfully, but these errors were encountered:
What browser/OS are you using? And are you expecting to use the browser’s native passkey support, or an extension’s (like 1Password)?
Sorry, something went wrong.
I can replicate. Looking into it!
Fixed in 5.0.1!
i-just
No branches or pull requests
What happened?
Description
Unable to create a passkey due to an 'Unable to load the data' error. Underlying error seems to be 'Request must accept JSON in response'.
Steps to reproduce
Expected behavior
Passkey is created successfully.
Actual behavior
Receive a generic 'Unable to load the data' with nothing in the logs. Looking at the error in the browser console, I see a 400 error:
Craft CMS version
5.0.0
PHP version
8.2
Operating system and version
No response
Database type and version
MySQL 8.0
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: