You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Been using URQL for a little while, recently we implemented the newer auth and retry exchanges but now uploads don't seem to work.
I'm using go (gqlgen) on my server side which means I see this error: [GraphQL] map[string]interface {} is not an Upload.
I did a little test on my client side to see what extractFiles sees (I'm using ReactNative) and I can see there are indeed files picked up. However It doesn't look like the multipart fetch exchange isn't sending over form data any more so my server only sees application/json, therefore not recognising an Upload.
I've also been tracking the network requests from my client and can see that the data is sent as application/json but from memory this should be sent as multipart/form-data.
anyone else come up against this?
** I don't have any cache enabled, only a small set of exchanges:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Been using URQL for a little while, recently we implemented the newer auth and retry exchanges but now uploads don't seem to work.
I'm using go (gqlgen) on my server side which means I see this error:
[GraphQL] map[string]interface {} is not an Upload
.I did a little test on my client side to see what extractFiles sees (I'm using ReactNative) and I can see there are indeed files picked up. However It doesn't look like the multipart fetch exchange isn't sending over form data any more so my server only sees application/json, therefore not recognising an Upload.
I've also been tracking the network requests from my client and can see that the data is sent as
application/json
but from memory this should be sent asmultipart/form-data
.anyone else come up against this?
** I don't have any cache enabled, only a small set of exchanges:
Beta Was this translation helpful? Give feedback.
All reactions