Skip to content

Multipart Upload Throws Error on Expo RN App #2554

@shoxter

Description

@shoxter

openapi-fetch version

0.15.0

Description

I am trying to upload a file to my backend -- it works with Axios but breaks with openapi-fetch. I've attached a picture of the use case below. The variables are all correct and swapping openapi-fetch for Axios fixes the issue.

Image

Error:

Image

Reproduction

  1. Create expo v54 react native app
  2. Install openapi-fetch and openapi-typescript
  3. Try to call client.POST with formData on Android physical devices
  4. It breaks

Expected result

The upload should succeed.

Extra

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingopenapi-fetchRelevant to the openapi-fetch library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions