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

connect ECONNREFUSED #256

Open
ghost opened this issue Jul 16, 2022 · 0 comments
Open

connect ECONNREFUSED #256

ghost opened this issue Jul 16, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Jul 16, 2022

Hello

I'm trying to setup my sitemap. I'm using dynamic routes :

sitemap: { lastmod: new Date(), routes: async () => { const { data } = await axios({ url: 'http://localhost:8080/ei/liste', method: 'GET' }) return data.map(e => `/user/${e.name}`) } }

But when my sitemap.xml is building, I got this error:

connect ECONNREFUSED 127.0.0.1:8080

Why? This url is public
Thanks

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

0 participants