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

Custom 404 / Error Page / Maintenance Page that is displayed whenever a bug is pushed or the app encounters and issue on boot #8713

Open
2 tasks done
Emad-Eldin-G opened this issue May 19, 2024 · 1 comment
Labels
type:enhancement Requests for feature enhancements or new features

Comments

@Emad-Eldin-G
Copy link

Emad-Eldin-G commented May 19, 2024

Checklist

  • I have searched the existing issues for similar feature requests.
  • I added a descriptive title and summary to this issue.

Summary

I think this is definitely a useful feature if, for example:

  • The developers want to some time down to work on a new feature or fix something
  • A bug is accidentally pushed, instead of seeing the ugly error message, a nicer 404 page is presented

This is similar to something like this

Perhaps this could be implemented by checking for all errors before running script, but having it in its own command would be helpful.

Why?

No response

How?

Suggestions:

  • st.default_error_page()
  • st.default_maintenance_page()

Where these commands are on the top of the script, and can be turned on or off based on developer preference:

  • st.default_error_page(some_error_page.py, true) - Params: custom_page(python script) which would link to the custom script written by the developer, always_on(boolean) would constantly intercept errors and show the default error page
  • st.default_maintenance_page(some_error_page.py) - Params: custom_page(python script) which would link to the custom script written by the developer, similar to the error page command

Additional Context

No response

@Emad-Eldin-G Emad-Eldin-G added the type:enhancement Requests for feature enhancements or new features label May 19, 2024
Copy link

To help Streamlit prioritize this feature, react with a 👍 (thumbs up emoji) to the initial post.

Your vote helps us identify which enhancements matter most to our users.

Visits

@Emad-Eldin-G Emad-Eldin-G changed the title 404 / Error Page that is custom and displayed whenever a bug is pushed or the app encounters and issue on boot Custome 404 / Error Page / Maintenance Page that is displayed whenever a bug is pushed or the app encounters and issue on boot May 19, 2024
@Emad-Eldin-G Emad-Eldin-G changed the title Custome 404 / Error Page / Maintenance Page that is displayed whenever a bug is pushed or the app encounters and issue on boot Custom 404 / Error Page / Maintenance Page that is displayed whenever a bug is pushed or the app encounters and issue on boot May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement Requests for feature enhancements or new features
Projects
None yet
Development

No branches or pull requests

1 participant