Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled Runtime Error - EnsureResources was not able to find resources #38253

Open
2 tasks done
john-arcadian opened this issue Jun 21, 2023 · 1 comment
Open
2 tasks done
Labels
status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer type: bug An issue or pull request relating to a bug in Gatsby

Comments

@john-arcadian
Copy link

Preliminary Checks

Description

We have been seeing quite a number of Sentry errors due to an external service is trying to access URLs with %23 in the URL. And the website just crashes on those URLs.

Reproduction Link

https://github.com/gatsbyjs/gatsby-starter-minimal

Steps to Reproduce

  1. Clone gatsby-starter-minimal
  2. Start the development server using npm i && npm run develop
  3. Go to http://localhost:8000/%23 and see the error, http://localhost:8000/%21 is fine

Expected Result

The 404 page

Actual Result

Unhandled Runtime Error on development. On production, the 404 page displays for one second and then becomes a blank page.

Environment

System:
    OS: Linux 5.15 Ubuntu 20.04.6 LTS (Focal Fossa)
    CPU: (8) x64 Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
    Shell: 5.8 - /usr/bin/zsh
  Binaries:
    Node: 18.16.0 - ~/.nvm/versions/node/v18.16.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v18.16.0/bin/yarn
    npm: 9.5.1 - ~/.nvm/versions/node/v18.16.0/bin/npm
  Languages:
    Python: 3.9.16 - /home/john/miniconda3/bin/python
  Browsers:
    Chrome: 114.0.5735.133
    Firefox: 114.0.1
  npmPackages:
    gatsby: ^5.11.0 => 5.11.0

Config Flags

No response

@john-arcadian john-arcadian added the type: bug An issue or pull request relating to a bug in Gatsby label Jun 21, 2023
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jun 21, 2023
@capndesign
Copy link

@john-arcadian Did you ever find a workaround for this issue? I’m just digging into this, but trying to figure out if I can configure gatsby-node.js to route to a 404 page in these scenarios.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

No branches or pull requests

2 participants