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

Error in Nuxt 3 last release #366

Closed
pezexd opened this issue Oct 20, 2023 · 2 comments
Closed

Error in Nuxt 3 last release #366

pezexd opened this issue Oct 20, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@pezexd
Copy link

pezexd commented Oct 20, 2023

Version

@nuxtjs/strapi: v1.9.3

Error

nuxt: v3.0.8[nitro] [unhandledRejection] {
error: {
status: 500,
name: 'UnknownError',
message: '[GET] "url": fetch failed',
details: FetchError: [GET] "url": fetch failed
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async $fetch2 (file:///C:/Users/User/Documents/project/node_modules/.pnpm/[email protected]/node_modules/ofetch/dist/shared/ofetch.00501375.mjs:261:15)
at async C:\Users\User\Documents\project\node_modules.pnpm@[email protected]\node_modules@nuxtjs\strapi\dist\runtime\composables\useStrapiClient.mjs:44:14 {
[cause]: [TypeError]
}
}
}

@pezexd pezexd added the bug Something isn't working label Oct 20, 2023
@KonradDRAST
Copy link

Same here. Clean install. Any Strapi call cause error 500.

@hangxingfu
Copy link

I also encountered similar errors, but I just changed nuxt.config.ts

strapi:{
    url: process.env.STRAPI_URL || "http://127.0.0.1:1337",
    prefix: "/api",
  },

url not "localhost"

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

3 participants