The 500 Error: Trying to get my Django-Python app to display live with vercel hosted with supabase. I tried multiple approaches. I tried so many things I cannot remember. But one of the last things I did was to have my app display a simple line of JSON that says HELLO. It works in development but deployment, I get the sane 500 Error. Even reducing the requirements.txt to a minimal produces the same thing. I am stuck. How do I handle this error in my case.
This Serverless Function has crashed.
Your connection is working correctly.
Vercel is working correctly.
500: INTERNAL_SERVER_ERROR
Code: FUNCTION_INVOCATION_FAILED
ID: cle1::6tmk6-1743047530274-c1dd48758875
These are some of the many things I have done.
Check Build Logs
seems like you've successfully deployed your project on Vercel! From the logs, it shows that the build and deployment processes were completed without any errors.
Verify Environment Variables
Checked Environment variable in the app and in vercel
Check vercel.json Configuration
builds and routes sections are set up to serve my app correctly.
Logs and Errors
500 Internal Server: this is the problem
Static Files and Media
Ran collect static
Domain Configuration
Not using custom domin
Test Locally
locally to ensure it works as expected
Simplify Function
To show simple JSON
Simplify requirements
To only a few bare minimum lines