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

Volto delivers HTTP 200 when no backend server is available #6447

Open
wolbernd opened this issue Oct 28, 2024 · 4 comments
Open

Volto delivers HTTP 200 when no backend server is available #6447

wolbernd opened this issue Oct 28, 2024 · 4 comments
Assignees

Comments

@wolbernd
Copy link
Contributor

Describe the bug
When no Backend Server is available opening a Volto Site in a browser delivers a web page with an appropriate error message. However the error message is delivered to the browser with a HTTP statuscode 200.

To Reproduce
Steps to reproduce the behavior:

  1. Start a Volto Instance without a backend server (e.g. with docker run --name plone6-frontend --rm -e RAZZLE_API_PATH=http://localhost:8080/Plone -d -p 3000:3000 plone/plone-frontend:latest , make sure no application listens to Port 8080)
  2. Open http://localhost:3000 in your browser
  3. see error message about unreachable backend but page is returned with HTTP 200

Expected behavior
The call to http://localhost:3000 should have a HTTP Statuscode indicating that there is something wrong with the website (HTTP 503 or 500).

Software (please complete the following information):

  • OS: Linux
  • Browser: Firefox, Chrome, Curl
  • Volto Version: Tested with 15.11.1 and 17.19.0 (latest plone-frontend docker image)
  • Plone Version: n/a
  • Plone REST API Version: n/a
@wolbernd wolbernd self-assigned this Oct 28, 2024
@wolbernd
Copy link
Contributor Author

I'll try to provide a PR for this, but it will probably take me until end of the week/next week until I have the time for this

@prreyanshu
Copy link

Can i work on this project ??

@wolbernd
Copy link
Contributor Author

@prreyanshu Yes Sorry, I hit a wall with this one and wasn't able to fix it.

@stevepiercy
Copy link
Collaborator

@prreyanshu please read and follow First-time contributors, especially Things not to do, Contributing to Plone, and Contributing to Volto.

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

3 participants