Saltad

Saltad

【Bug Log】Issue of webpage not being able to open caused by Nextjs.

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.

Resolution process:

  1. Initially, the browser did not redirect to the about page, but instead resolved to a strange error page. So, initially, it was thought to be a DNS pollution issue. However, this issue was not replicated afterwards, and it consistently redirected to the about page.
  2. Following the suggestion of team member @vico, we tried testing "Can we get the page HTML by using wget on the server," as follows:
    > wget http://localhost:3000
    > ...ERROR 304: Not Modified.
    
    
    The result showed a 304 Not Modified error.
  3. Continuing with the help of @vico, 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 nextjs. Finally, we upgraded from 13.5.6 to 14.0.4, and since then, the same issue has not reoccurred.
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.