-
-
Notifications
You must be signed in to change notification settings - Fork 530
Custom fetch function from Nuxt fails #1691
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
Comments
I am also looking for a solution to integrate this with $fetch and useFetch, have you got any progress? |
@scripness nope, I am looking into using fetch instead of the openapi-fetch client and passing types manually though. |
I ran into this today with using Remix, so this is apparently not exclusive for NuxtJS 😄 |
If not possible to integrate with their fetches I would love to have a guide on how to manually type their fetches to match this library. |
To add middleware support in The latter API is somewhat less-common, but nonetheless valid and part of the spec. However we have been getting more reports of related errors due to this, likely because There are some other middleware improvements that have been suggested, and it’s not a hard requirement that |
Hey! Thank you, it would be great to your (or someone else's) ability to make one way or another an example of how to use openapi-fetch with nuxt's server side fetch or how to type their fetch functions in such a way that it behaves similar to openapi-fetch 😊 |
To follow up on this, it seems for now we will have to stick with the It’s probably worth raising an issue on |
This issue is stale because it has been open for 90 days with no activity. If there is no activity in the next 7 days, the issue will be closed. |
This issue was closed because it has been inactive for 7 days since being marked as stale. Please open a new issue if you believe you are encountering a related problem. |
Description
Hi! Unsure if this is the right place but figured I'll have to start somewhere.
I'm trying to pass a custom
fetch
function,useRequestFetch
, so that cookies are passed (nuxt/nuxt#24813).Reproduction
Using [email protected] and [email protected], with [email protected], I create a client:
Then doing a request (tried GET & POST) results in:
I get the same result using
$fetch
as the fetch function.Under the hood ofetch is used, is the API just incompatible?
Though I would expect
$fetch.raw
to work but it returns the same error.Checklist
The text was updated successfully, but these errors were encountered: