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

Production Hub Database UI shows error #472

Open
sosensible opened this issue Feb 15, 2025 · 5 comments
Open

Production Hub Database UI shows error #472

sosensible opened this issue Feb 15, 2025 · 5 comments
Labels
bug Something isn't working

Comments

@sosensible
Copy link

Describe the bug
Database shows for build previews but production is broke. It said... Unexpected error happened 😕
Please download error context and report to our support team

Steps to reproduce
Steps to reproduce the behavior:

  1. Starting with a working Drizzle project
  2. Update the schema... but had local issue...
  3. Deleted schema files to match production, deleted migration entries in DB... got it working
  4. Deployed to preview on Hub and worked...
  5. Deployed to production... it works but the DB interface in Hub admin broke

Expected behavior
Works like before... like preview... like dev... without the error. :)

@sosensible sosensible added the bug Something isn't working label Feb 15, 2025
@sosensible
Copy link
Author

Here is the bug report it said to send.
bug-report.zip

@RihanArfan
Copy link
Collaborator

This error generally means that there's an issue connecting to the production deployment in order to query the database from it. Please could you check the network tab of your browser devtools?

@sosensible
Copy link
Author

There were no errors, but it was listed as an access-restricted app via CloudFlare Zero Access. Changing that resolved the issue.

Should we, or is there a way to work around that for non-public-facing solutions?

@RihanArfan
Copy link
Collaborator

Take a look at our guide for using Cloudflare Access with NuxtHub https://hub.nuxt.com/docs/recipes/cloudflare-access

@sosensible
Copy link
Author

I already have my site deployed on Cloudflare via NuxtHub. Integrating the database without messing up the automated migration is the challenge.

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