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

Netlify returns HTTP ERROR 500 on DSG pages #126

Closed
henrik-m opened this issue Sep 23, 2021 · 2 comments
Closed

Netlify returns HTTP ERROR 500 on DSG pages #126

henrik-m opened this issue Sep 23, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@henrik-m
Copy link

henrik-m commented Sep 23, 2021

Describe the bug

I wanted to test the compatibility of the latest version of Gatsby with Netlify and followed all the steps in the Gatsby documentation and on this plugin's readme page.

Gatsby functions and my SSR test page are working, but accessing one of the DSG pages throws a 500 error. There is nothing logged to the __dsg function log in the Netlify dashboard.

Debugging locally with "netlify dev", all pages are working as expected.

Steps to reproduce

  1. Create a new Netlify site
  2. Set build image and environment variable as documented on this plugin's readme page
  3. Deploy from this repository: https://github.com/henrik-m/gatsby4
  4. Navigate to https://your-site.netlify.app/dsg/1/

Expected behavior

The rendered page shows up. Which is what happens locally with netlify dev.

Environment

If it helps, my test site on Netlify is https://youthful-fermi-41f243.netlify.app/. (Gets flagged as malicious by Google Chrome, I don't know why. I just created it the other day).

I don't know why non-existent routes return 500's as well and if this is part of the problem. Netlify doesn't seem to provide any logs for this.

Can you submit a pull request?

No. I cannot even see the actual error in the logs.

@henrik-m henrik-m added the bug Something isn't working label Sep 23, 2021
@ascorbic
Copy link
Contributor

Hey! Thanks for the report. That should be fixed in the latest verison of the build plugin. Run npm add -D @netlify/plugin-gatsby@beta to update it. If it doesn't work first time, clear the cache and deploy again.

@henrik-m
Copy link
Author

@ascorbic Fixed it is! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants