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

Wrong URL tosses a 500 instead of a 400 #6872

Open
txau opened this issue Jun 7, 2024 · 0 comments
Open

Wrong URL tosses a 500 instead of a 400 #6872

txau opened this issue Jun 7, 2024 · 0 comments

Comments

@txau
Copy link
Collaborator

txau commented Jun 7, 2024

This kind of request should be handled as a BAD REQUEST (400), instead it is a 500. Alternatively, it could be handled as a 301 (MOVED PERMANENTLY).

url: // TypeError: Invalid URL at new URL (node:internal/url:775:36) at createFetchRequest (/opt/uwazi/cores/core-1.169.1/app/react/entry-server.js:68:15) at getSSRProperties (/opt/uwazi/cores/core-1.169.1/app/react/entry-server.js:245:43) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async EntryServer (/opt/uwazi/cores/core-1.169.1/app/react/entry-server.js:276:70) at async /opt/uwazi/cores/core-1.169.1/app/api/utils/routesErrorHandler.js:7:5 original error: { "code": "ERR_INVALID_URL", "input": "//",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants