-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
MultipartFile Upload: Converting object to an encodable object failed: Instance of 'FormData' #869
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, please make sure it is up to date and if so, add a comment that this is still an issue to keep it open. Thank you for your contributions. |
我也碰到了相同的问题:Converting object to an encodable object failed: Instance of 'FormData |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, please make sure it is up to date and if so, add a comment that this is still an issue to keep it open. Thank you for your contributions. |
I'm having the same error: Code:
Error:
|
Did anyone resolve this issue pls ? |
Try adding
The |
@Jagrajsinghji added and still same error |
same error. Any solution |
Any solution am having the same issue? |
same error. Any solution? =( |
Could anyone of you share you code snippet? |
solved, I wasn't using the FormData correctly, trying to send as Json |
tell us how did you solved this |
Please give your code example for this issue? |
hope this help
|
I have similar problem and I think I know the answer. We are looking at the wrong place. So the next step is find out where you place your debug print or similar function which called the jsonEncode. It might be on your interpreter too. |
Thanks for icemanbsi. I could figure out why I faced this error. |
The problem occurred on log printing json.encode the data extends InterceptorsWrapper |
how you solve that problem? |
FormData data = FormData.fromMap({ it's work for me |
same issue no solution |
worked thanks ♥ ♥ |
New Issue Checklist
Issue Info
Issue Description and Steps
Hello, i am trying to upload an image to a server. I've used the guides provided in the documentation to get the process started.
The error message that i am receiving is:
DioError [DioErrorType.DEFAULT]: Converting object to an encodable object failed: Instance of 'FormData'
My code is:
The text was updated successfully, but these errors were encountered: