h3 icon indicating copy to clipboard operation
h3 copied to clipboard

Problem proxyRequest

Open cesxhin opened this issue 7 months ago • 0 comments

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: [email protected]
  • 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 avatar Jul 02 '24 08:07 cesxhin