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

Google Search Console throws an error when trying to read a sitemap index generated by next-sitemap #510

Closed
jhyahav opened this issue Oct 18, 2022 · 6 comments · Fixed by #520
Assignees
Labels
bug Something isn't working

Comments

@jhyahav
Copy link
Contributor

jhyahav commented Oct 18, 2022

Describe the bug
Google Search Console throws an incorrect namespace error when trying to read a sitemap index generated by next-sitemap.

To Reproduce
Create a sitemap with the sitemap index setting enabled, then try to add it to your site's Google Search Console.

Expected behavior
Google Search Console should be able to read the sitemap index without errors.

Screenshots

image

Suggested solution
The problem appears to stem from a minor namespace misconfiguration caused by sitemap-builder.ts.
See this relevant Google Support thread.
See #511

@johnnyc1120
Copy link

@iamvishnusankar - The xml namespace fix should also be applied to line 14 of sitemap-builder.ts. Thank you

@vdjurdjevic
Copy link

@iamvishnusankar Why is this closed? I think @johnnyc1120 is right, I still see wrong namespace, and google is rejecting the sitemap. Can we reopen this issue?

iamvishnusankar added a commit that referenced this issue Oct 31, 2022
@iamvishnusankar
Copy link
Owner

@johnnyc1120 @vdjurdjevic Fixed: #520

@vdjurdjevic
Copy link

Awesome :) Thank you!

@vdjurdjevic
Copy link

When is it going to be merged and published to npm?

@iamvishnusankar
Copy link
Owner

@vdjurdjevic It'll be live as soon as these builds are completed https://github.com/iamvishnusankar/next-sitemap/runs/9201838180

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

Successfully merging a pull request may close this issue.

4 participants