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

Failed to fetch remote storage: Project not found. #290

Open
aaronLejeune opened this issue Sep 17, 2024 · 4 comments
Open

Failed to fetch remote storage: Project not found. #290

aaronLejeune opened this issue Sep 17, 2024 · 4 comments

Comments

@aaronLejeune
Copy link

Hello there,

Im creating a large webshop with NuxtHub (love it) but got issues when trying to connect to my local KV and Cache storage.

Context:

I want to store PSQL-api responses in KV storage with nuxt multicache but I cant seem to connect to the external KV storage.
This is what my files look like:

nuxt.config.ts

...
hub: {
  cache: true,
  kv: true,
}

.data/hub/wrangler.toml

[[kv_namespaces]]
binding = "KV"
id = "kv_default"

Weird thing is that I always see this in the nuxthub (both for KV and Cache), while in I can see that both KV and Cache are created in Cloudflare.
image

cloudflare project:
image

What I tried:

  • redeploy the project using nuxthub deploy
  • relink the project to a newly created one using npx nuxthub link. Again KV and Caches are created but still get the same error

Expected behavior

I cant seem to reproduce this issue easely so I hope the description can give enough context.
Would be nice to test this out locally. Looking forward to your reply :)

@atinux
Copy link
Contributor

atinux commented Sep 23, 2024

Hey,

Do you still have the installation page after deploying your project?

What is nuxt multicache?

@atinux
Copy link
Contributor

atinux commented Sep 25, 2024

Could you please upgrade to latest version (v0.7.20) and deploy again?

@aaronLejeune
Copy link
Author

Hi @atinux,

Thanks for waiting, was on vacation.
I updated nuxthub to the latest version and deployed the website, but the issue does not seem to be resolved.

Linked to https://admin.hub.nuxt.com/skargards-web-three/skargards-web                                      nuxt:hub 3:41:14 PM
Using production environment                                                                                nuxt:hub 3:41:14 PM
Using remote storage from http://skargards-web.pages.dev                                                    nuxt:hub 3:41:14 PM

ERROR  Failed to fetch remote storage: Project not found.                                                     nuxt:hub 3:41:14 PM
Make sure to deploy the project using nuxthub deploy or add the deployed URL as NUXT_HUB_PROJECT_URL environment variable.

I also added env variables NUXT_HUB_PROJECT_KEY and NUXT_HUB_PROJECT_URL with the correct settings just to make sure. On the local side, can it be CORS related by any chance?

I also tried to add some KV keys in Cloudlfare, but still no link with NuxtHub:
image
image

Copy link
Contributor

atinux commented Sep 29, 2024

it seems that https://skargards-web.pages.dev/api/_hub/manifest/ is sending back a 301, did you have any server middleware in place?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants