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

urql file upload in expo crashes app #3740

Open
3 tasks done
seanlennaerts opened this issue Jan 16, 2025 · 0 comments
Open
3 tasks done

urql file upload in expo crashes app #3740

seanlennaerts opened this issue Jan 16, 2025 · 0 comments

Comments

@seanlennaerts
Copy link

Describe the bug

I have a graphql server that has an image upload mutation that follows the graphql-multipart-request spec. On the client side I have a simple expo (api 52) project with urql. All queries and mutations work as expected. As soon as I execute a mutation with a File in the variables the entire app crashes. There are no logs, no entries in the network tab inside devtools, and the server never receives the request.

I also stepped through with the debugger and urql's serializeBody function that creates the FormData looks fine to me. It's still not clear what causes the app to crash.

Hoping that posting this here will shed some light on what is going on.

Reproduction

https://github.com/seanlennaerts/urql-expo-upload-image

Urql version

urql 4.2.1

Validations

  • I can confirm that this is a bug report, and not a feature request, RFC, question, or discussion, for which GitHub Discussions should be used
  • Read the docs.
  • Follow our Code of Conduct
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