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

qryn generates 500 error when auth is missing #369

Closed
tsearle opened this issue Oct 30, 2023 · 3 comments
Closed

qryn generates 500 error when auth is missing #369

tsearle opened this issue Oct 30, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@tsearle
Copy link
Contributor

tsearle commented Oct 30, 2023

{ "level": 50, "time": 1698681199146, "pid": 18, "hostname": "[ip-10-150-4-38.eu](http://ip-10-150-4-38.eu/)-west-1.compute.internal", "name": "qryn", "reqId": "req-5w", "err": "Missing or bad formatted authorization header\nUnauthorizedError: Missing or bad formatted authorization header\n at Object.basicAuth (/app/node_modules/fastify-basic-auth/index.js:23:12)\n at hookIterator (/app/node_modules/fastify/lib/hooks.js:246:10)\n at next (/app/node_modules/fastify/lib/hooks.js:174:16)\n at hookRunner (/app/node_modules/fastify/lib/hooks.js:196:3)\n at preValidationCallback (/app/node_modules/fastify/lib/handleRequest.js:104:5)\n at handler (/app/node_modules/fastify/lib/handleRequest.js:76:7)\n at handleRequest (/app/node_modules/fastify/lib/handleRequest.js:24:5)\n at next (/app/node_modules/fastify/lib/route.js:545:7)\n at Object.preParsing (/app/node_modules/[@fastify/compress/index.js:299:14](https://matrix.to/#/@fastify/compress/index.js:299:14))\n at next (/app/node_modules/fastify/lib/route.js:552:16)", "msg": "Missing or bad formatted authorization header" }

this sending a 500 instead of a 401 prevents the browser from generating the user/pass popup

this means the UI is not usable when QRYN_USER and QRYN_PASSWORD are set

@lmangani lmangani added the bug Something isn't working label Oct 30, 2023
@akvlad
Copy link
Collaborator

akvlad commented Oct 31, 2023

#371

@lmangani
Copy link
Collaborator

@tsearle release 3.0.1 should provide a fix for this issue. Would you have time to retest and let us know next time around?

@lmangani lmangani closed this as completed Nov 1, 2023
@tsearle
Copy link
Contributor Author

tsearle commented Nov 3, 2023

Screenshot 2023-11-03 at 10 55 44

it is working :-) thanks

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

3 participants