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
iOS upload returns 500 #160
Comments
@samigimix could you please try this with the latest version (3.x) |
I checked the GitHub page and realized that I didn't implement the
but it shows an error for the
and regarding your suggestion to use the latest version, I used the
and here is my code for the
|
Looks like you are specifying the local path in RawUpload anywhere. Maybe |
@ened yes, exactly. In the |
@samigimix are you sure? There should be a path parameter. |
@ened I restarted the IDE and finally, the path parameter appeared! So I used the path and don't have an error in uploading part of the code, but after CODE:
ERROR:
As the code is working fine on android, it shouldn't be related to request or response, I think the upload doesn't happen at all but it doesn't log the upload worker to track it. |
for another file I got this error:
and for another type of file :
|
this line seems to cause the error:
Can you confirm value.response truly contains json? Please print it before parsing. |
@ened Yes, you're alright. But I tested this code for
So I think the uploading process still has a problem because it seems it didn't upload completely, so the response includes an error. Also, it doesn't show upload |
OK interesting. It's a bit puzzling because we have stable integration tests running for this project which should catch this. Would you like to contribute a new integration test which showcases the problem? |
First of all thanks for your fast response. Unfortunately, because I didn't have such a time, I searched for an alternative, and this article helps me to do it in another way. |
Hello!
I used the bellow function to upload .JPG and .PDF file. It works on Android and it logs the progress too, but in iOS Simulator after 2 seconds it shows the following error: (Also i used .enqueue too but get same result)
CODE:
ERROR:
FLUTTER DOCTOR:
[✓] Flutter (Channel stable, 2.0.1, on macOS 11.2.3 20D91 darwin-x64, locale en)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.55.2)
[✓] Connected device (2 available)
The text was updated successfully, but these errors were encountered: