[Bug]: Live site crashes with 500 INTERNAL_SERVER_ERROR on homepage
What happened?
The live site at mydevpath-github.vercel.app shows a 500 Internal Server Error. The serverless function crashes and the page does not load at all.
Steps to reproduce
- Visit https://mydevpath-github.vercel.app
- Page fails to load
- Shows "This Serverless Function has crashed" error
Expected behaviour
The homepage should load correctly and show the DevPath application.
Area of the app affected
Homepage form
Python version
Unknown - server side issue
Operating system
Windows 11
Relevant error output or logs
500: INTERNAL_SERVER_ERROR
Code: FUNCTION_INVOCATION_FAILED
ID: bom1::ztcvw-1781347409565-907be89f8fc6
Before submitting
- [x] I searched existing issues and this has not been reported before.
- [x] I can reproduce this bug consistently with the steps above.
- [x] I am running the latest version of the main branch.
Thank you for opening your first issue in DevPath.
Please make sure to:
- Read CONTRIBUTING.md
- Wait for assignment before starting work
- Follow repository guidelines carefully
Happy contributing.
Hey , I'd like to work on this issue. Can you please assign this to me?
/assign
Hi @komalharshita,
I would love to take on Issue #877 to eliminate the HTTP 500 Internal Server Error crash occurring on the homepage entry route.
🛠️ Proposed Technical Approach
- Trace Routing Entry Points: I will audit the primary homepage route controller to isolate the exact asynchronous data query or configuration hook failing during initialization.
- Implement Fallback Data Defenses: I will wrap the data compilation calls within a structural
try/catchblock. If the database connection encounters an anomaly or returns a null document, the code will seamlessly pass down empty default fallback structures rather than bubbling an unhandled exception up to the server gate. - Validate Server Response Handling: I will test the routing endpoints locally to verify that home components boot up smoothly under all network conditions.
Please assign this to me under gssoc26
/assign
Hi Mentors! A FUNCTION_INVOCATION_FAILED on Vercel means the build succeeded, but the runtime environment is crashing upon execution. I would love to investigate and resolve this serverless function failure immediately.
My Debugging & Resolution Plan:
-
Analyze Serverless Environment: I will check the API endpoints/serverless functions routing the homepage data to identify what is triggering the runtime crash. Since this is a Python project, I'll closely audit vercel.json configurations (specifically the WSGI/ASGI builders like @vercel/python).
-
Audit Missing Dependencies: I will verify if a missing runtime package in requirements.txt or pyproject.toml is preventing the serverless function from initializing properly.
-
Graceful Fallbacks: If the crash is due to an unhandled exception (like a missing or expired environment variable), I will implement safe try/catch wrappers to prevent the entire site from returning a 500 hard-crash.
I'm ready to look into the deployment configurations right away. Please assign this to me!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions!
This issue was closed because it has been inactive for an extended period. If this issue is still relevant, feel free to reopen it or create a new one.