-
Notifications
You must be signed in to change notification settings - Fork 24.7k
Boundary sometimes contains invalid '/' character when using "fetch + FormData" to post. #11416
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
How did you send this post request to your server? It is not clear to me that this is a React Native problem without getting more information. |
When boundary contains "/", the golang server will complain "mime: invalid media parameter". I've already fixed locally, and see somebody else have made a pull request. It should be merged quickly. |
This is an issue when using a Node.JS Express backend as well. Forward slashes do not follow the RFC specification. See this issue for the Express type-parsing module for more information: jshttp/media-typer#1 I'm wrapping the boundary parameter in quotes to get around this for now. Can someone confirm this is a new issue? I can't believe I haven't run into it before, but it just started with 0.39 for us. cc @seanj |
Why was this closed? |
@cava23 , There is already has a same issue about this, and a pull request. So I closed. |
Could you link to the PR? That way people that find this issue first can track it (like me :)
… On Jan 11, 2017, at 7:09 PM, Jagger Wang ***@***.***> wrote:
@cava23 <https://github.com/cava23> , There is already has a same issue about this, and a pull request. So I closed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#11416 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAE48zbhTGLnhUgMHopqhisP2hmgwKoKks5rRZlbgaJpZM4LKWVV>.
|
Duplicated as issue #7564 |
It's still exist in 0.40, Why not merge? It's a so serious problem and the fix is very simple. Just remove the '/' in boundaryChars, which exist in file 'RCTNetworking.mm'.
|
I hava same issue and it is not merged in 0.41 pre-release. |
Also hitting this issue as a regression since previous releases. |
i solved this issue with following. Thanks to @jaggerwang
|
Hitting this issue as well. Not really a fan of fixing code inside of react-native. I'd have to tell all my devs to do this. |
Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally! If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:
If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution. |
Uh oh!
There was an error while loading. Please reload this page.
Description
After upgrade RN from 0.35 to 0.39, I got "mime: invalid media parameter" error from my golang server. This error not shows everytime, and it takes me a couple of days to figured out the reason. It is because the form multipart boundary contains invalid '/' character. It waste me a lot of time!!!
It is such a serious problem, can someone fixed it quickly?
Additional Information
The text was updated successfully, but these errors were encountered: