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

Issue for FormData in axios 0.25.0 #4449

Closed
SomnathKadam opened this issue Feb 7, 2022 · 4 comments
Closed

Issue for FormData in axios 0.25.0 #4449

SomnathKadam opened this issue Feb 7, 2022 · 4 comments

Comments

@SomnathKadam
Copy link

Issue for FormData in axios 0.25.0

Describe the bug

Issue for FormData in axios 0.25.0

To Reproduce

Given below code working in Axios 0.24.0, but not working in Axios 0.25.0

const GetFormData = (jsonRequest) => {
    let form = new FormData();
    let req = encryptData(JSON.stringify(jsonRequest));
    form.append('Request', `${req}`);
    form.append('KeyData', getKeyData());

    return form;
};

Environment

  • Axios Version [0.25]
  • react-native [0.67.2]
@github-actions
Copy link
Contributor

github-actions bot commented Feb 7, 2022

Hello! 👋

This issue is being automatically closed because it does not follow the issue template. Please read the issue template carefully and follow all of the instructions when opening a new issue.

Thanks

@github-actions github-actions bot closed this as completed Feb 7, 2022
@hirbod
Copy link

hirbod commented Mar 4, 2022

While this issue might not following the template, it is absolutely correct.
formData is broken with axios > 0.24 on react-native.

The request body is just a json with _parts etc.

@jasonsaayman jasonsaayman reopened this Mar 4, 2022
@Romick2005
Copy link

It is related with #4412. Provided a fix in pull request and waiting for a merge.

@jasonsaayman
Copy link
Member

Hi 👋

Please could you retry with the latest version and open a new issue should this error still be relevant?

Thanks

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

4 participants