question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Random 500 internal server error in production build on page refresh

See original GitHub issue

Problem: 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)

Screenshot 2020-01-27 at 1 24 57 PM

Code for my website can be found at https://github.com/abhi12299/website

The following is my code for getInitialProps in / page:

code

The getCookie function:

code

The authenticate function:

code

The getLatestPosts function:

code

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:19 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
abhi12299commented, Apr 10, 2020

@hems Did you find something regarding the issue? It was a real pain for me back then.

0reactions
balazsorban44commented, Jan 28, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found