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

Last part of url getting removed during request #601

Closed
RaoulHofmann opened this issue Apr 6, 2023 · 0 comments
Closed

Last part of url getting removed during request #601

RaoulHofmann opened this issue Apr 6, 2023 · 0 comments

Comments

@RaoulHofmann
Copy link

RaoulHofmann commented Apr 6, 2023

Version: "@nuxtjs/axios@^5.13.6"

I'm running into a weird problem were the last part of the url gets removed somewhere during the request, I can't seem to track down where. It doesn't happen on every request I haven't figured out how to trigger a reproduction, it just seems to happen randomly.

nuxt.config has baseURL setup like this
axios: { baseURL: 'http://localhost:8081' }

The request is being sent like this
this.$axios.get('/api/v1/element')

I've setup a helper to check the request
$axios.onRequest((config) => { console.log('Making ${config.method.toUpperCase()} request to ${config.url}', config.data ? config.data : '') })

I see this in the console log
Making GET request to /api/v1/element

But then I see this immediately afterwards in the console log
image

I've checked the config in both $axios.onError and $axios.onResponse and the url is correct.

@RaoulHofmann RaoulHofmann closed this as not planned Won't fix, can't repro, duplicate, stale Apr 12, 2023
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

1 participant