You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This morning I changed the nitro preset to bun in an effort to test a few things not related to sitemaps or SEO (memory consumption, build times etc), and everything worked except for the sitemap generation.
When I visit my sitemap in production, i get this error in my logs:
[@nuxtjs/sitemap] Failed to fetch source. {
url: "https://myapi.com/api/sitemap/articles";,
error: FetchError: [GET] "https://myapi.com/api/sitemap/articles";: 404 Not Found,
}
Locally, I don't have any of these issues (i.e the URL is found, and the auth header is passed and utilised correctly).
What is bizarre is that the url being passed is actually https://myapi.com/api/sitemap/articles" (note the double quotes at the end) hence why it's returning 404.
This is potentially not a nuxt-seo issue, but thought i'd ask here in case someone has seen this before.
I went through the nuxt-seo source code, and the error returned is from src/runtime/nitro/sitemap/urlset/sources.ts line 65. I can't see anything obvious about why it's failing or why the url value is being passed incorrectly.
Appreciate any help or insights.
Reproduction
No response
System / Nuxt Info
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
Hi,
I've been using nuxt-seo for 6 months on a production website. I generate my sitemaps using the built-in "Dynamic URL Endpoint" feature.
My site is hosted on Railway and use the
node-server
preset for Nitro.This has been working with absolutely no issues.
This morning I changed the nitro preset to
bun
in an effort to test a few things not related to sitemaps or SEO (memory consumption, build times etc), and everything worked except for the sitemap generation.When I visit my sitemap in production, i get this error in my logs:
Locally, I don't have any of these issues (i.e the URL is found, and the auth header is passed and utilised correctly).
What is bizarre is that the
url
being passed is actuallyhttps://myapi.com/api/sitemap/articles"
(note the double quotes at the end) hence why it's returning 404.This is potentially not a nuxt-seo issue, but thought i'd ask here in case someone has seen this before.
I went through the nuxt-seo source code, and the error returned is from
src/runtime/nitro/sitemap/urlset/sources.ts
line 65. I can't see anything obvious about why it's failing or why the url value is being passed incorrectly.Appreciate any help or insights.
Reproduction
No response
System / Nuxt Info
No response
The text was updated successfully, but these errors were encountered: