Random 500 internal server error in production build on page refresh
See original GitHub issueProblem: In production build, I get a random 500 server error on production when I refresh a page. It stays there for around 5-10 reloads and then goes away. Client side routing works though. This occurs in my personal website https://iabhishek.dev randomly. On inspection, the following code gives errors randomly (line 290)
Code for my website can be found at https://github.com/abhi12299/website
The following is my code for getInitialProps in /
page:
The getCookie
function:
The authenticate
function:
The getLatestPosts
function:
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:19 (5 by maintainers)
Top Results From Across the Web
What is “HTTP 500 Internal Server Error” and How to Fix It?
The HTTP 500 error, in particular, indicates that the server encountered an unexpected condition that prevented it from fulfilling the request. In other...
Read more >How to Fix a 500 Internal Server Error on Your WordPress Site
The 500 Internal Server Error status code occurs when the server encounters an error that prevents it from fulfilling the request.
Read more >Angularjs Page Reload/ Refresh give Error 500 Internal ...
I use angularjs 1.6 for my project when I refresh the page it gives me an error 500 Internal Server Error nginx I...
Read more >How to Fix the 500 Internal Server Error in WordPress
1. Turn on debugging - You can turn debugging on by editing your site’s wp-config.php file: once you’ve accessed this file, search for...
Read more >HTTP 500 Internal Server Error: What It Means & How to Fix It
This might seem obvious, but if it's a temporary loading issue, you might find success if you refresh the page. Before trying anything...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@hems Did you find something regarding the issue? It was a real pain for me back then.
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.