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

v2.4.22 broken with SSR: true #45

Closed
CharlesBT opened this issue May 6, 2023 · 12 comments
Closed

v2.4.22 broken with SSR: true #45

CharlesBT opened this issue May 6, 2023 · 12 comments

Comments

@CharlesBT
Copy link

Describe the bug

I have sitemap.xml return error 500 on SSR:true (working well with SSR:false).

I had to go back to previous version v2.4.21 to get it working on SSR true

Reproduction

No response

System / Nuxt Info

No response

@harlan-zw
Copy link
Collaborator

Would you mind sharing the stack trace or a reproduction?

@CharlesBT
Copy link
Author

CharlesBT commented May 7, 2023

Hi same issue with 2.4.23, this is what i've got, node 18.16, nuxt 3.4.2:
[nuxt] [request error] [unhandled] [500] terminated
at Fetch.onAborted (node:internal/deps/undici/undici:11323:53)
at Fetch.emit (node:events:513:28)
at Fetch.terminate (node:internal/deps/undici/undici:10578:14)
at Object.onError (node:internal/deps/undici/undici:11418:36)
at Request.onError (node:internal/deps/undici/undici:8210:31)
at errorRequest (node:internal/deps/undici/undici:10264:17)
at TLSSocket.onSocketClose (node:internal/deps/undici/undici:9710:9)
at TLSSocket.emit (node:events:525:35)
at node:net:322:12
at TCP.done (node:_tls_wrap:588:7)
[Vue warn]: A plugin must either be a function or an object with an "install" function.
[intlify] Not found 'terminated' key in 'en' locale messages.

@harlan-zw
Copy link
Collaborator

harlan-zw commented May 8, 2023

Thanks, that doesn't help me much though. Can you share some of your code, ideally a reproduction? I can't debug with just this.

@fhlta
Copy link

fhlta commented May 9, 2023

Hello, I have same problema:

When I run build:


 ERROR  Maximum call stack size exceeded 

  at RegExp.exec (<anonymous>)
  at /C:/Users/fenix/Desktop/Sources/site-front-v2/node_modules/nuxt-simple-sitemap/dist/module.mjs:622:38
  at /C:/Users/fenix/Desktop/Sources/site-front-v2/node_modules/hookable/dist/index.mjs:48:66
  at async prerender (/C:/Users/fenix/Desktop/Sources/site-front-v2/node_modules/nitropack/dist/shared/nitro.96034a6e.mjs:4254:7)
  at async /C:/Users/fenix/Desktop/Sources/site-front-v2/node_modules/nuxt/dist/index.mjs:2289:7
  at async build (/C:/Users/fenix/Desktop/Sources/site-front-v2/node_modules/nuxt/dist/index.mjs:3176:5)
  at async Object.invoke (/C:/Users/fenix/Desktop/Sources/site-front-v2/node_modules/nuxi/dist/chunks/build.mjs:55:5)
  at async _main (/C:/Users/fenix/Desktop/Sources/site-front-v2/node_modules/nuxi/dist/cli.mjs:48:20)

Specs:

├── nuxt-simple-sitemap@2.4.23
├── nuxt@3.4.3

Node: v19.8.1

@update
It only happens with SSR: true

@CharlesBT Here does't working with v2.4.21.

@harlan-zw
Copy link
Collaborator

harlan-zw commented May 10, 2023

Hey @fenixrhiulta, the code related to this is the automatic image discovery, specifically prerendering a page without images (i think). I've pushed up a fix in 2.4.24.

@fhlta
Copy link

fhlta commented May 10, 2023

Hello @harlan-zw, thanks for your help.

I still have the same problem on v2.4.24 and v2.5.0. Occurs only with ssr true.

@CharlesBT
Copy link
Author

CharlesBT commented May 11, 2023

I tested 2.5.0 same issue with SSR true, unfortunalty I can not share code and I have already share the error returned by Azure App Service

@harlan-zw
Copy link
Collaborator

Hello @harlan-zw, thanks for your help.

I still have the same problem on v2.4.24 and v2.5.0. Occurs only with ssr true.

Can you try disabling the image discovery?

export default defineNuxtConfig({
  sitemap: {
    discoverImages: false
  }
})

@CharlesBT
Copy link
Author

CharlesBT commented May 11, 2023

Hello @harlan-zw, thanks for your help.
I still have the same problem on v2.4.24 and v2.5.0. Occurs only with ssr true.

Can you try disabling the image discovery?

export default defineNuxtConfig({
  sitemap: {
    discoverImages: false
  }
})

discoverImages: false doesn' fix the issue for me with 2.5.0 > thanks !

@fhlta
Copy link

fhlta commented May 11, 2023

Hello @harlan-zw, thanks for your help.
I still have the same problem on v2.4.24 and v2.5.0. Occurs only with ssr true.

Can you try disabling the image discovery?

export default defineNuxtConfig({
  sitemap: {
    discoverImages: false
  }
})

it worked for me, thanks!

Now I'm trying to put the routes of all languages.

@harlan-zw
Copy link
Collaborator

Sorry @CharlesBT, I think your issue is separate to @fenixrhiulta's.

I'm happy to try and help you but I need more information

@CharlesBT
Copy link
Author

v2.6.0 fixed the issue

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

3 participants