nuxt-modules / og-image

Generate OG Images with Vue templates in Nuxt.
https://nuxtseo.com/og-image
400 stars 25 forks source link

WebSocket connection to 'ws://localhost:3000/__nuxt_og_image__/entry' failed #75

Closed creazy231 closed 9 months ago

creazy231 commented 1 year ago

Describe the bug

Fresh install returns

WebSocket connection to 'ws://localhost:3000/__nuxt_og_image__/entry' failed

when visiting

http://localhost:3000/__og_image__

Reproduction

No response

System / Nuxt Info

- Operating System: Darwin
- Node Version:     v18.17.1
- Nuxt Version:     3.6.5
- Nitro Version:    2.6.0
- Package Manager:  yarn@1.22.19
- Builder:          vite
- User Config:      ssr, vite, experimental, sourcemap, components, imports, app, css, postcss, extends, modules, pinia, image, io, runtimeConfig
- Runtime Modules:  @nuxtjs/tailwindcss@6.7.0, @pinia/nuxt@0.4.11, @nuxt/image@1.0.0-rc.1, @vueuse/nuxt@10.4.1, nuxt-socket-io@3.0.13
- Build Modules:    -
harlan-zw commented 1 year ago

This seems to be working better with Nuxt 3.7.1, let me know if you still have issues :)

creazy231 commented 1 year ago

Using following packages:

    "nuxt": "^3.7.1",
    "nuxt-og-image": "^2.0.25",
    "nuxt-seo-kit": "^1.3.12",

results in

 ERROR  [unhandledRejection] socket hang up                                                                                                                                                                              
creazy231 commented 1 year ago

experiencing the same issue using

"nuxt": "^3.7.1",
"@nuxtseo/module": "^2.0.0-beta.15",
harlan-zw commented 1 year ago

Thank you for confirming, I'll need to look into this again.

Weird thing is that I had this issue myself and now I can't replicate it anymore.. :thinking:

creazy231 commented 1 year ago

just in general: since I changed from Node v16 to Node v18 I'm facing errors using localhost in projects. Working with 127.0.0.1 works fine. Didn't look into your codebase that much but maybe it's related to this in some kind?

harlan-zw commented 9 months ago

This seems to be working correctly now with latest versions. Let me know if not, I can revisit.