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

No webhook url or env handlers #65

Open
1stdevfriend opened this issue May 1, 2024 · 1 comment
Open

No webhook url or env handlers #65

1stdevfriend opened this issue May 1, 2024 · 1 comment

Comments

@1stdevfriend
Copy link
Member

If no url or env is passed, the website crashes.

@JahanviSharma16
Copy link
Contributor

JahanviSharma16 commented May 2, 2024

If no URL or environment variable is passed, you should add checks in your code. These checks will see if the URL and environment variables are there before your program tries to use them. If they aren't there, you can set default values or show a helpful error message. This way, your website can handle missing information without crashing.

You can also look into using if statements to check for these values, or try implementing error handling techniques in your code to manage such situations better.

Implement robust error handling mechanisms to catch scenarios where either the URL or environment variable is missing. Instead of crashing outright, log these errors for debugging purposes and display a user-friendly error message on the website. This approach helps in diagnosing issues while keeping the website operational.

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

No branches or pull requests

2 participants