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

Problem proxyRequest #799

Open
cesxhin opened this issue Jul 2, 2024 · 0 comments
Open

Problem proxyRequest #799

cesxhin opened this issue Jul 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@cesxhin
Copy link

cesxhin commented Jul 2, 2024

Environment


  • Operating System: Darwin
  • Node Version: v20.9.0
  • Nuxt Version: 3.12.2
  • CLI Version: 3.12.0
  • Nitro Version: 2.9.7
  • Package Manager: npm@10.2.5
  • Builder: -
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

import {joinURL, withQuery} from "ufo";

export default defineEventHandler(async (event) => {

    const path = event.path;
    return proxyRequest(event, joinURL(useRuntimeConfig().coreServiceBaseUrl, path));
})

Describe the bug

When I use delete method I can't pass parameters per query, I received state 502 Bad Gateway.

It works perfectly with Axios.

Additional context

No response

Logs

No response

@cesxhin cesxhin added the bug Something isn't working label Jul 2, 2024
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

No branches or pull requests

1 participant