Saltad

Saltad

【Bug Log】Issue with Nextjs causing webpage to not open.

Date: 2023.12.16

Issue: The website homepage (static page) suddenly cannot be accessed in the evening, but the internal content pages can still be accessed. However, it is not completely inaccessible, as some devices/browsers can access it, while others are redirected to a blank page.

Solution process:

  1. Initially, the browser did not redirect to the about page, but instead resolved to a strange error page. So, I initially thought it was a DNS pollution issue. However, it has not been reproduced since then, and it has always been redirecting to the about page.
  2. Following the suggestion of my team partner @vico, I tried testing "Can I get the page HTML by using wget on the server?"
    > wget http://localhost:3000
    > ...ERROR 304: Not Modified.
    
    
    The result showed a 304 Not Modified error.
  3. Continuing with @vico's help, we found this issue and discovered that it was the same error. Based on the comments in the issue, we decided to upgrade the version of Next.js. Finally, we upgraded from 13.5.6 to 14.0.4, and so far, the same problem has not reoccurred.
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.