Closed Alberick closed 5 years ago
I have compared the request body with other lib, and find nothing different:
By the request lib (a same text file):
By the dio:
Could you please compare the request body in your environment and give some advanced information?
Hey man, your data looks like you are going to submit a field named "lenovo" with the image as value, so as I thought the formdata might written like this:
FormData payload = FormData.from({
'lenovo': UploadFileInfo(
_productPicture,
basename(_productPicture.path)
)
});
dio.post(endpoint, data: payload);
Don't know if this can solve your problem. :)
Hi, I'm so sorry for the really late reply.
I'm still having this issue and I honestly don't know what I could be doing wrong. I have uploaded a simple flutter project to github here. with my code, I'm uploading to a django rest endpoint that is expecting two fields: name which is a String and image which is the picture file.
In my flutter code I have tried both dio versions: 1.0.17 and 2.1.1. When I use the latest version the logger shows the following response:
I/flutter (25710): DioError :
I/flutter (25710): DioError [DioErrorType.RESPONSE]: Http status error [400]
I/flutter (25710): uri: http://192.168.1.10:8000/api/v1/catalog/stuff/
I/flutter (25710): statusCode: 400
I/flutter (25710): headers:
I/flutter (25710): date: Tue, 09 Apr 2019 18:35:31 GMT
I/flutter (25710): vary: Accept, Origin, Cookie
I/flutter (25710): content-length: 84
I/flutter (25710): content-type: application/json
I/flutter (25710): x-frame-options: SAMEORIGIN
I/flutter (25710): allow: GET, POST, HEAD, OPTIONS
I/flutter (25710): server: Werkzeug/0.14.1 Python/3.6.7
I/flutter (25710):
I/flutter (25710): Response Text:
I/flutter (25710): {"name":["name, This field is required."],"image":["image, No file was submitted."]}
I was inspecting my request data in my django backend and it seems that the request is arriving empty therefore the response text: {"name":["name, This field is required."],"image":["image, No file was submitted."]}
I known, the "content-length" is missing when "onSendProgress" is not provided. This have been fixed in v2.1.2, please update and retry.
@wendux I tried v2.1.2 and it worked. thank you!
The situation is:
:flutter doctor Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, v1.2.1, on Mac OS X 10.14.4 18E226, locale en-US) [✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3) [✓] iOS toolchain - develop for iOS devices (Xcode 10.2.1) [✓] Android Studio (version 3.4) [✓] IntelliJ IDEA Ultimate Edition (version 2019.1) [✓] VS Code (version 1.33.1) [!] Proxy Configuration ! NO_PROXY is not set [✓] Connected device (2 available)
dio: ^2.1.3
backend is django 2.2
django POST can not get the right key value.
Output like this
<QueryDict: {'mobileno': ['18812345676\r\n----dio-boundar']}>
Hi, I'm pretty new to dart and flutter in general, that being said I have been struggling to upload an image to a django rest api with dio.
I'm using the latest stable dio 2.1.0 with the following code: ` Dio dio = Dio();
` I have the logger enabled and this is the output for this request:
I/flutter (22007): *** Request *** I/flutter (22007): uri: http://192.168.1.10:8000/api/v1/catalog/product-images/ I/flutter (22007): method: POST I/flutter (22007): contentType: application/json; charset=utf-8 I/flutter (22007): responseType: ResponseType.json I/flutter (22007): followRedirects: true I/flutter (22007): connectTimeout: 50000 I/flutter (22007): receiveTimeout: 30000 I/flutter (22007): extra: {} I/flutter (22007): header: I/flutter (22007): content-type:multipart/form-data; boundary=--dio-boundary-3579293844 I/flutter (22007): Authorization:Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjozLCJ1c2VybmFtZSI6ImplYW4iLCJleHAiOjE1NTM3OTY4MzcsImVtYWlsIjoiIn0.0qvhroup2puT4g0-rOxj0x1Ck_XPGSRTxf4xMbhq9vw I/flutter (22007): data: I/flutter (22007): ----dio-boundary-3579293844 I/flutter (22007): Content-Disposition: form-data; name="name" I/flutter (22007): I/flutter (22007): lenovo I/flutter (22007): ----dio-boundary-3579293844 I/flutter (22007): Content-Disposition: form-data; name="image"; filename="IMG-20190327-WA0000.jpg" I/flutter (22007): Content-Type: application/octet-stream I/flutter (22007): I/flutter (22007): ���� I/flutter (22007): I/flutter (22007): I/flutter (22007): I/flutter (22007): �� I/flutter (22007): �*T I/chatty (22007): uid=10810(u0_a810) Thread-3 identical 1 line I/flutter (22007): �*T I/flutter (22007): I/flutter (22007): �*T I/flutter (22007): ����r����u$�E�$#� I/flutter (22007): c�E�&J I/flutter (22007): �O���|����t I/flutter (22007): <<Log follows the previous line: ��� I/flutter (22007): � I/flutter (22007): E�)g�=�iq���m:��O~�f������� I/flutter (22007): ō�\�?�� I/flutter (22007): �����E� I/flutter (22007): �#��:���Hq�����6n�xr~5�%m���rG�� I/flutter (22007): )���� I/flutter (22007): ��ǽ�XFt��G4"������e(n�t-��!}J�>T} I/flutter (22007): �?�Ъ��G����@�s���KNQ� I/flutter (22007): 1��Z��A �s"�(���kviF��v�����2h]U���cR��q��e����NJ1�1���a��� I/flutter (22007): ̾!Y#9Xȁ�?]Ni_e}X��D:�ڲ�k#+L�������V��$u<|����� I/flutter (22007): 7�#������=��K�p���N��p�� �wPR'Ƅ�V��F����Im[�Ǎ�^��^���c�dj��aٯ�>�'Ya���
��t]�j��cZD�m�����=Ϣ���T@�������p��F�_ݐu�4kG�cve�KeX������#�,��d%oݟ���s�K'�˽y@c���ߚŨZEtZ|)�r�v��*Ȃ/���W��h�.O�w�� I/flutter (22007): �*T I/chatty (22007): uid=10810(u0_a810) Thread-3 identical 7 lines I/flutter (22007): �*T I/flutter (22007): �*T��E/��+�Z5c��Jh:�^������ I/flutter (22007): <<Log follows the previous line: l_��Bo��� I/flutter (22007): 4j��G��0�5��1��cd��NV����:���]��n�x�%9f�f�����~�T��t8B)s�����q��P��������} I/flutter (22007): �k�_8۸�� I/flutter (22007): ܚ�p:7�=�%����Vr����&z��N��Ū�f�x���!a��E@�s�؇�#~���JnV>H?gx�=����A�DRg��4��b�-hos���V-� I/flutter (22007): ���,&�0�؊�g�~J��1�̨�>>�<����������HJb<L�:g��}0�l�)
0��hANQ��g륳��zx��c����@�U��4{J�g렁�����~��Z ��t I/flutter (22007): I/flutter (22007): ��'��]>��Cg!e (�/�/'"��f��8W�s���VE�gE��&$$�gN@��b��kso��[&GA�ѳ}h�� I/flutter (22007): �1M��f�G8�)�� ��n=� I/flutter (22007): q�$�Gf�� I/flutter (22007): �g����:l����u|3���F8�����{<t<=J��]<�Y��4#�Iɍ��6"�(�<���~u�맍���)ɏ\�N�U9�
��Tcf� I/flutter (22007): ���������� I/flutter (22007): U鎸Z2!t8Ǿ��H(Ɗ�X��Eץz�鮫�C� I/flutter (22007): :0����r�o��N��z�v�E�6Cˀ`t�#��(�i<f������� I/flutter (22007): ��n�;r I/flutter (22007): �@9�w�8�^�i^�?]{ t^M����IF�F:X�O���;q��C��:P�Et�g�9�f�� I/flutter (22007): H�S�cG�Ӣ�Cm���@9�IG�~2g_�������/=���&LɯJ�i�8BI������(�|��&��[_-��}t��;�8���?%{wu��8 I/flutter (22007): ���%w�RQ�ܟt� I/flutter (22007): O��~�o&M�1��4W����C|BS�G7���R�����Hb��Ӕ�� I/flutter (22007): 2WkȺx�� I/flutter (22007): ���� I/flutter (22007): Zb�%V��/���&E�']~өM��ߎ���4fɿ}Z~0cl �Tt����^ߓ�n5|<�Є~ I/flutter (22007): 3��+���A�=Z0cF�guX��s �\C�Ry{���a��8f|C6�C��k�d1����fF�����|�Il>�%�7! Dp��%l�N#�n�coh��
��� I/flutter (22007): �BS��u�o�K��5�Y2~һ�:GM��$al�B�z>I�v-��M�"(@�[��hB2{�&��B����90�x��� I/flutter (22007): ly6,��ҩ I/flutter (22007): 4���Q&�,�
�b���Ƕ.GdzY�?=f&��'����Q�w���n����Ȋ��f�Co�����@�J$Ҁi�!�<����M��u<�SnM�I���uJ�hd�!&Bb��Ư#��R+�����~õQ����a��ꐒ�{��I�a�!T���֟������=�Ԏ�� I/flutter (22007): �{C���r I/flutter (22007): �P������H��%f �����A���!}J� ��n�>���k3� I/flutter (22007): ~ I/flutter (22007): �0�(b(����� I/flutter (22007): �� I/flutter (22007): 26[��)?#s��8�Ӭ��'�K���a��m��_��������x��}��d�#��%V@]�Ǐ��0"�<#�;f�q�� I/flutter (22007): ٴ[P@%mW�7��q��P�|��W��:��X�Y�pO��F��o3b���Fd���-��=O0��>����7m�c�@�yJ�U-�\�ۭ I/flutter (22007): O���`�8wm�����#���: ��n�7�B@� ?��%F�X��?Ӈ��#�c�<'���g�a�{<\��a�� �� ��QrQ�]G� I/flutter (22007): �Յ7n3�fC��3���v��!8 I/flutter (22007): Z+��v;�]�Ɍy��d�Zn{��y�g;0��x�Qj������u�<{��ݣ�^3�yެ�ɱҮ�M�d�,6e���VŲ;���?|ub�ccf� I/flutter (22007): ��yw|���m��Y#eC�ǭ7�&n/b���~���G I/flutter (22007): :�}�@?�qv֡F1 I/flutter (22007): #����-��c�P�8ǽ�O3�S�M��+�<�7969�p>5�Ǐ�^�gq�/!��wJ�bBI-�}�ȏr��O�8z����kȱ���{�C�C� ����83�X��,~��y���P��u�O���Qp���^�_�{��~�y}�x76�x����r311�}6 I/flutter (22007): 2d�]<�8���OD=P�{������V���C6����t�!�&�ō��Hw� �;N���Ղd>�mL��g�'��z�v�vp�Sv�1����c�u�x������Dg^?<s� �t��ʛ|�۸'D��������珩O��:K�1X\3q�O2�O4p4��{ I/flutter (22007): �ZO.�������"��f���6sz��e�qp!�o�X�
Ex�n��nO8����n�<��}Fyʽ��{<����$w�"�f^��794!�"��8��ɳ��:���q���Jt�Ay�� Ѱ��l%x�� I/flutter (22007): ���P!|C�xܛ�tك�9�ُ���$��c|3�L�>'v�p2yd�՜�f�n �9)�T��n I/flutter (22007): VT�b�1���Ә��6��Ǻ{�u��������ɐI� I/flutter (22007): a�!�)�8؆ I/flutter (22007): "���Z��Sҕ�fcfO7'�7a����ZOv���U�f�9��uE��k�t�U��g����@g7�=�.8�LJ^�-X|�� I/flutter (22007): &x��&� I/flutter (22007): A���[oZ\�7h��#�c�o!�w6kn��T I/flutter (22007): 7�Crs��S���z(�ކ�c�bCdz����K�Xۏb*6m�6�����ַ��&:��v2/�t�Ȅ;�dF:�a����� ��TS� I/flutter (22007): ���'OxdO��t\#�����M�I5A{"��mPtdF�Q�'e .'.�#P�Eh����+y)���o�k8�� Q���q�C{^ӣ�i�4н3̷"��k�ģk��직���v�����uu4tA�E�����B�r�N3[l�NgWœ�:G��;���}M��ONJ]ѫ�p=�ߓT�Ցch\|9�Jd��:����#��+{�꽤|<VF9�hB=�I[7e�l���Ã�6J�b�qݫ�n�k<���Յo[6��燻&���j>tQ���XS:�8��c��x�{>!)Θ鮰1�5��98�� z�Պ���y �C{���K�ua?�Y�[o��8F��{L�f�w�d�N=�?v��Cهg��_O%Z��\�:� I/flutter (22007): ~n \'$����8&u�������$&1�UX�^I�?�'�O��l�8ހ�무N��9j�y���я3� I/flutter (22007): �{� I/flutter (22007): �z��ץ�<�Â!m��
�R�cC3]V����>O��ٶ�Eۍ�m���a�еթ7�!�7���T��a�2�]]�1�+�֗䄬k�<4#�S���4��9���f|K�QXE��w�ek�,v�EG�h��%g����3��+ُ��8�p|$�(=��ܹ��<�vw�wE0x��g�dG��'��� d�qׇ��i�� I/flutter (22007): Z������t::��Z=�E_l��1M��#Q��G㡻bd�ż�kj�gƄ/�:S�#�qcx���lEo$�k� I/flutter (22007): �Znv��g���ef��ᕐq� ZU� I/flutter (22007): f@a��������=�;��[��gZ�ESϻ� I/flutter (22007): P6U�1�� ������/H�� ۳���7�Y<������Y$ Ά�B-u��o�~ҍD[x�0�z�r�.kҏ�vlG�:���C㞢���d����Ɗ�F��HmE�g��(a Z ��G��:�$��+�4R@�E�Ir$�3��#���{���65�6����u0�U��B)���_�鱚d2kE9y%��=�����&��rV��r���j���6GMEP6á�(���q�-��YӾ3���0�*ُ�^Lhߒ��|�Ć�8�᮫u�<��e�Ǐ�S����T�.�B� I/flutter (22007): 亸��n�l�z� I/flutter (22007): ��Ó:>Jg�}�ֲc�]L�q��J�dp�m��'�:�稄os�nQ�y��1�F���X����/�l�ϰ�}�.r?%?������
G�4<97���C�_O���ϑ~e@�c�y1�����m�q�m�\~f� I/flutter (22007): ���$�"ڳ1�('��t�I"�y����'gƽ�ZG�]����B���#X��Z�� I/flutter (22007): smꅿg����=�w�䧧�+�U�Q�G��<ޝ6����$x�B I/flutter (22007): �_i�wuY�GA���&�u)J����m����N��^�݃�;vq I/flutter (22007): �7I'�$���(���7w�To�֖ҍ+p�{ɍ����:��m���{6�Pa�����d�m9��S!��2!����a nA�gw�� I/flutter (22007): $&/� h� ��U+���6�x��V?� I/flutter (22007): ���W������&�x�ʘ":�?C�w5�� I/flutter (22007): ���ypJڣo�|q���@q�O(�h�/�6"�LU��[C;����Y��c�iXq������AhԄ��ʪ��� I/flutter (22007): �~� I/flutter (22007): �xЊ��]��|%�?`N ���6%��wT/��_9�:�qr#!�/�S�!7B�Ҿ���d�����Ә� ɳ�W���4��� I/flutter (22007): 27�o��&:��f�C�<O�]|F<�@���k��'��= I/flutter (22007): ��j��^��6������:9��D I/flutter (22007): <<Log follows the previous line: ��Й�c�%�A��p����;|���#h-����d>�;�%��� I/flutter (22007): ��j I/flutter (22007): !g�q� I/flutter (22007): ��e��^��D:���r�SG%�A�" I/flutter (22007): ��;y���]�7�������%���wK\i�"Q�?�*�l�˻LbC��L6��"��)�������~ȵ�#�c�Unϳ�ߍ�p�}u�^� u���~�H��v����k�rs�=��P����Q �äo���1�#�g#��z��v�z��N!�Br/����_J����8�UɎг��B��ּ~��9�κxc� I/flutter (22007): 2z�4��E���"��$q�#��If�E�9P�O������� I/flutter (22007): ���6o���g"�ࣖ�l�'-�#ɟ�!h����+��<��� I/flutter (22007): [^$pE0�g�����[��t� �<� I/flutter (22007): �{��ȟ������{>E��;m.����쿰���-�# ��#�/�f8��C~F�;���������x�:��cƏ�x?�$@3GS���^^Of �^?�|���Ԕm����c���:�(�o�!�ױ�������t1�=�ţ�~I������%1e������������!m���aw��: ������һ�Nz�����Vü��-�7C��8A�"O�^0��8�s I/flutter (22007): �����Ŝy?@���~^J���[�!�,Ď�\?> I/flutter (22007): �� I/flutter (22007): Y1�����حn!�G7��0ݲ�䤌oL�Y�@����?�:���pu㏏1���8rô-�p6vz6� I/flutter (22007): RV�����: �t+G��ڠ�K��+���<������gJ��q��%�E�!�8�N��]���-l>�#S$H���;��L|��_�� I/flutter (22007): ��d�"��<�̇ȵֽss�{�<Eя I/flutter (22007): <<Log follows the previous line: #i� I/flutter (22007): K�6� I/flutter (22007): ɐ�BkH8�B\y�p��u��_n��|hWVM���Ǽ#Eպa�����Ԗ�������4f~|h�)+9��²7�@뛅��̸9��m����?z��~ I/flutter (22007): 6��e����- I/flutter (22007): ��N�qx���Z�Єn���5]�Ɩ���� I/flutter (22007): �XQR� I/flutter (22007): �i�īH3n���yL� I/flutter (22007): �vd��7��C�G����]D�x��;�0(nK�륿�
Z6"�]�w�������]��pNL�>a��X�x @�U�iیL3�9�ьn��tZ�d��xxh���x~0}5���'q3�@wB�p�D/ǒ���`l���ռ":�@7��W�>�x����D,}<+G�u��Y>�!C�i���P\7�z���"L+�k�ZZ����r�D=��.|�5Gì���y��x��ϗZz|澗U�� \�� �H����'�?wO�yF��� I/flutter (22007): ��� I/flutter (22007): ���X�u=a�;���s��Z�z���$������Y�E��?�V��7��� I/flutter (22007): ���R I/flutter (22007): ���B�ȣ��Wc�hK-6̄Z�G[�Qy����i�r͜�Tc��% I/flutter (22007): �z���m�1!0�鈿�w�b��; I/flutter (22007): έ��ʳ$���4���0kB��ub��h���\�~�df�h����g��|�;g�ء��܇�%V�֤��<�d�q�2�ev��²q��=�\7��X@�x�:j�=�9d��${T9:ɍ�?��=���z%�v�hrn���N}�EC��[w?i� I/flutter (22007): �Q�o� I/flutter (22007): � h9��cP�;��d�1��}���`�����L����2w�E��� I/flutter (22007): �����v��c�o��H>E���n{q����4�p�L���oɍ�'�����l��z懲�&����o��c�oi\�I��#<�Szc�C=����g�"�@������k62����f��p�w}������y���7��X��ײ�sa����� I/flutter (22007): L�>���/����-�O$^,�����ԕ����������.�}��/ߩ�<�,{���1����V{�v�P=���b5�ۡ I/flutter (22007): �nr�����[��������� I/flutter (22007): $����l͛��ɏe]rgֽ7�oq��A��Ea���d ��x�����V�� I/flutter (22007): ��x? I/flutter (22007): �O�S:�%�\�>O.�F��p��E)�>�rB|O6GAu�Ɯg"�rnɍ��d �G��~1�%�A���� I/flutter (22007): ���L�/�.=�����aU>���n�8/�lJ\�{�-�ο�~ I/flutter (22007): ����F5�B�ش����k:NcP6�г{C�)]Jn�|;��a���� ��Qp�ی@���A� I/flutter (22007): d�Ǟ{&64�I��m�rHm���/��U��t�,�Ƅ|1�'F�_���<ޱ���tC����I��a���Ό/y����o=T��e��z�3}�i��xx�G�6"7���e�k��^�D�p:@���Mt����fc��E=вZ���;���r3#���B��G-��Qd�F�z�??�x;�I� I/flutter (22007): �r�nBT��G㨥���h��<z5�x� I/flutter (22007): �,cr�Ɇ
[�'?��-����d��'N�3��X�<�'��)�:��?���F���p[��&O��Gr���ރ���X�ǵk��|��mY�If_�t%*1��A~B�����&a��ݟ��}OIJEXҼC��E0;�˅�[w3���6+����o�2-�U�C�8]9��?�
����&Gk�3 p8}���8MuI�����(��\$@Dž~<uv3��EE�M� I/flutter (22007): �|��4�o3p���w�v���{Jg!$��٭щ������ɀn I/flutter (22007): e���cu3��pu�u��{M�Z|C;�kY�΅���"#˝���x���gݎ�e]G�ba�|�FN�����&��'��ƷQ�v�ްt�������U�w�n���~JК3nX��n�hY�� I/flutter (22007): ���F�e�:~�ĝ�K�1���NW ���>�Ǐ��(�� I/flutter (22007): �rQX�P��1�c�$������8��U��W�yμ��$Ի��O���7����p�˭x#�:��#�=�����L���S_1yV7�ՙ���\y',�fۇ�䩸d�"�G I/flutter (22007): ��ԂC��grE�.���V{��P v��!$VOJ[ǐ���l�8<c�ɓ�F�H9)Pǒ��J�Y�}��}��Km����4� I/flutter (22007): P�W9l��4�Q��{��EVJWB�n<�p�<���&���9�2��s�XH��Z(��4�S�2CO��a� �7��
8��<q1!7�xڲX �������h�h爐p�� ��d�u$� I/flutter (22007): a�������:�Ec I/flutter (22007): O�XZ��1V�1�l1�d�訥�om�36��ap������ ɿ]������#�/�u���}���m���h��!��Dqnf�or2��%f�� I/flutter (22007): ղƳ"@~r�-&$|�>%^��F I/flutter (22007): ���N����c����!6#����<�e$9�өPt)j��8���&�Xl�2#�v����� 0�1l��9:�+�Hԧ�d'�Ƅ"�,821B. A�rrdEL�Ω;�I{��Goف�Df":��l�<t�be����%<�<<l��f?2�^�-]>8���D��on��D� �֊-sۮ�¾�����fs�;��̈ta�'�Q��{�G�qrrt=�Zs��M��Wn�@~�g�d�^�T�n�=��v8q�-rz�VQ�4����1�a=l��d$�?�PK$ I/flutter (22007): `�Se8e���'�Э�ұ��Q����؍��γ�V)�8�1�:<uq��2����xkl�T� I/flutter (22007): I/flutter (22007): � I/flutter (22007): �6|�@��%A|���=��)ˆ�ڠ E�c�]�ݚ&&m��G��t؞_R��u&.b)v�u�v���A+BY�$���{9��Y�����-<�t�n;z�BUu+��~f�[S��o��ӗ������:�c��%w�a��A0���e\��]���I�<�Ⱦ��<�4�w����z����t鶮�7��f7�'����Z]ե���pd�}fT��Y~�"���\��Ǽt+�:���x7��2��9k�[��,6H�&�@��T��l�u����|�v��NbZ7��{����^i�� I/flutter (22007): ��4�fv�A�Z(����;t:Ξ�[�A�<fsF�Gz3z�;��ƴU�iX�3���'���M��|�LP߈B�&J�Ve�p[�l��@�ON�M�cǑ~�j��}���pH�d�d��x�%�� I/flutter (22007): �k灚5�W��p��~"�\�����1�yܓǰ�C����yF�Zۯ�����u�R�ZKl�A>�U��!22@� ��L[n��9���x�!��~:a1ڰs I/flutter (22007): �O���ˏ����.Tmb�G����P9���j� )w�A��� ��a�����ր���J�LgBW�����<mc��;T�f��r�\���ᱜgL� I/flutter (22007): �<��p��
'��p�������43��ٸ$Z�&��R�W11gJʸ|��3�g��o�6rs�Z����Ǧ=QR�0Axg+��\�^L3�@ I/flutter (22007): �� ���%kAN�l����>0Hݺ�9!<��98�6/�� I/flutter (22007): �m��;�pm�,~�y����}�5Ԯ�����d"��cZ����͂
��:K�9�F-�2lY+�Qt.��(�mP�#!b���G\1-F I/flutter (22007): L7���D.�����ͻ����1��D����qK0� I/flutter (22007): /9��;�����9GF�,5㫿A&^�E�1�fUa�����9�/��9��u��>:S{AO�H�����y��h�3�3��o_�zE���n �Z1ц�F�s$ݸׅ�9��5y ��m&9��%X��ۗ��J��4��]�t�AN\3��L�Z�VcA%'�Ë��2z�Ug����y�C��R�!���`~�BV��$��?Pّ1�F������6��<�/ű@�h�D�M���A�C�t���? 뮢�)�Ë�)d��"z\��� &:���qVĕ��B�dBT=� I/flutter (22007): �t��a�U�� I/flutter (22007): ������[�[W�M��J�l��O�<gz[����+�[~�!��iZ7����ƹC��"ٚA����@�����6N��J�o��Z��Q�� I/flutter (22007): ��-�yc���sfg}Do�֊�h�Y �.��hא��?����5=l:y�%����D�Orz{����lQ�Ft}���7T{�f�fE� I/flutter (22007): P�s;~Q�ܷ�f����-*��ѝ�|�[8��[]b��x�����0����%[��4|[u�����S�����m<��68f�AӪ�QO�F�q��:����-��t:=~����I�"=�"ȾtT�}��<�ż5�=vH�.�0��V��r�����;ߐcj�v�~θ2��"�olF�<�tm�C{�t�D���ß�F I/flutter (22007): ���eLy��$k��dzܭo}h��3�8�/>?V�Eg3%�����5s[�qÑ����Ut��Ԛ�+G0xr8�;_QumX}��u��^N��uG��6��A�NM�r��q�C%��Ƅd�L�*8@a�h_� s~�d��J�;Z]L�ٶ"�n�>���ugO[� I/flutter (22007): <<Log follows the previous line: �Kėt�������cǽ�m��3g�~��4�;7�=-�P�p �--w_��/�d�G�Ź���I|��?������Tj�qhL�C]�E9�4�M�����:�A=�u�eV�0�3�p� �H3�$'Sa�1��ǴB�C�ȁ%[L� I/flutter (22007): Ⱥ��צ�\.nB7j��^M�_M:Z��~A1����|�L|��ױ���Z6xn��5�X>I r�Xs�"����^��N�ڶ�m�I���x�u[S�J�����l�Ó�:�W·�[������Jװ�٥�Cv��v��(V��4��Gu�|jd�+�T�� I/flutter (22007): V�2l#��m�� 1�ـ
�k����v�D�s{s����&��;��$��DU,�ÐcZ�Bx�G��.��q�������7������8q̩��)�8i�>����mY���|;}����O�B���M�Ip,�����%]�/����v�u�x��U{��<U�+!(N��F���s"����c���+̛�$'�]^���������#}WK[��#}���U�r[��b<!��&ʪ��������RH>j)��ɹ��m���#�]TWR���m?hA����F���t��ԃJ<��F� I/flutter (22007): �>ylY��t:l@
_�J��N;�^Mގ� I/flutter (22007): ��� I/flutter (22007): �c�&�����,cƍ������#ȶpMyΕ}�6r��&�q��x�{ I/flutter (22007): z�#^<p����}J��3\��~����+Z[Ǐk�[܃��BSi�V۟Q�d9^<����d(�G�kgpA�I���%`qa���ȏ�pM��ϫAp6�ٰ�Z=�3�4�����X�9EB7���U9��غ I/flutter (22007): <<Log follows the previous line: b�gx�f����;A�q\��WI���n$ ��L I/flutter (22007): �Bl�d<�lxȺ�pw�A����W3�=��)t�G/P�`a 7�� I/flutter (22007): ��q��l'���"�q�AO��$Xm�:�~>� 9&~�Kj)�9���?�K@[�G�q�}�����څcB�z�)y8���̷g�|u�������@�ΝO8XS�!�㋣��s0E���[����6�ǘh������tĜ��'��RZ1�̧�#@�&����L<��D�yS��Wq�x���L�W�Q��$��f��z4Z89��"���W�. �q��ɏ���cZ���������2d����q��d>�i*���z�N��No;�
Y�C܄j����(6U�ݸֵ���]�0v�����'���;t���!y�:DHp���8H��� I/flutter (22007): an8�x�����k�0�S$耫a�i�!��a�7�Q���`qK�nN���==c�lݼzg�l�"��A���Y7Z����N�u,��ܑ�dF�Ⱥ I/flutter (22007): �!"�a+03co8vF��k�/7dj��A�O2��V��o�zL��QSq���dރd��t���-��[$�c�j���~�tB�ff@�9Bdޏ2�y[�P!fKҭ������}�l-�k��rׁ���C�8z��'Q�-䎛̇�=��#�ט��K�n��x����B��i�� �G���K���K{}�g�� �M(��v�c9ȳ��@�E����d}p���&�����H<��lȊuUS��A�9^���XG��,�On�-+7��ӆ I/flutter (22007): �"�DdF�x�&7\�F��w���(�1�G=IC��9S!�ÇXF>D-Z��G� I/flutter (22007): �X�8��� I/flutter (22007): �:�2C^k�f�X��Enw��w+#�!
Bo��� ��Z�+!E�9�+v��<{�l/������98���#[�l��k'�\iE�v@00��g� δQͷgG�m��7\y����EU�Se��!Q.��"�����"�Q���ø�ֵ���u;�}�j�y�M�FNpoEi^�8\��8X#��I�a�OaW}j�δw�9گ�o�G���#v�c$��Ѽ��������Zh>O38�+%�^�E��ԫxx~��*N�Ty�p�f[>$Ï�<�/��� � I/flutter (22007): $���v���"*c"���2b
r���dߞG���U��xȋzC7��B&0@�?#��8���2/%e}T��.��Ƿ���Ei�d��V~�N7Ǿ��i#{ �tz�BM���j��!ぃ���2�&�2�d�KG�'�ܒP{7� ��W4l7���#�D}J�����ns!�rS��pm}������96B#�^!|=�>zI3�1�=�I�6AȺ~��<���o?Lh�8�d���#��6 I/flutter (22007): �����Wf�?0��!�c�PG!aU�:ki�2�3Fʥ�;N��q�Z�_5��*��]U��H7���z��~2���Go�6x������1����S�T� I/flutter (22007): Q�:���E��[~b����j�����/�K�q9$� 1l����b�E��SiW���t��.�}UҶ�7w���1<}Jg�!�ЂZ��3�Ѓ���Y�����!�� �x�B��ꄸQ��{�uh�h���y� I/flutter (22007): �*7�V�~��Zr� I/flutter (22007): ��s��b��+*d����S�����Ys&3���J�6��cO��JA��8�7�Q�N9+���p��@��xՂ��%�p�T�#��,kO�� I/flutter (22007): ��Q�OT'�l�3j���!hGR�m:�mw׳!�r��u�S/O9�pE��h��XGغC���h��� I/flutter (22007): Н�tv��bVb���� I/flutter (22007): v�X](���d�����J��-Pb����x�r"�Fϧ���� _^��C8��R���K�KX���<E��n��/�� I/flutter (22007): ��C��^=��[.�
����|c��:�a�E ��78�$���'Saϲ�&Ϥ $��#�PA��:��xX��l��ưs�xmDb�HC�-W�BJ��O%�ҙ!�"?<X�C���l='�� I/flutter (22007): � @��@��6�<b�$o �,~����K��H}@t��=F��T����E�<�~ݯ"�]��\/���P�\�g!r� ִz����ا-�����ӛ�E�ps���A������sj�=�g���gY92T�1��
ϳ����3�{ݓ"��7�o�r#%j+{B/8DG��6ُzP2� I/flutter (22007): �o�a �G="���/�� I/flutter (22007): ��c���gU��6G��:l�8�@x||I:{1ք��G"���Φ t�Pw$k�u�mϐ�EC�2^ffA$�m��~��O �'���`8��N=��,}4 ue�ZAgi�91כ���2S�Fr���\�:���W��\��.Ǭ��a�g I/flutter (22007): ���E����/�3�h��{b<v �)�b�1O]w ��28؊z+�#;����"���f�$8.�4|zZE�7F����0^7N�}�o]쇢�j����+$>�9�u�j�� I/flutter (22007): 4�Q�r ~�x�]�g�~�n��:��;66��L��꓁c1$/"��=����.�%|���յ�9h���7c�~�����Do��]I>x�4�x5��_M��l�8�~f�y��↕��s̒@[A}9y�l�D����tp��g��|C�㿐�< I/flutter (22007): N �V�����k�wŏ��j��^���{�q��|�p�5����-CO,�RI�A�z��tnah��Q��%<�u��x�v��L�L�;S���u�a�ӽnG��3e?g趮V;~bR9c&ʻ�$��b����-}�Bd�<v�+K�m巔�d��#� I/flutter (22007): k�z�e��QΎ���˲����DRݷ�4pqq������D�Z�u��'%Џ,�B6�"�9�;�Ȑn���q�߾�!Hc9��ڿ��(t�F�f�>={�c"�Q�����v���?ݎ���Xvp\�n�0 �~]b@��)W�5�"V���2��I?�vvT���:��Æ�@`����В��7S�>1k���(ϱU���M�~8g�˿���c�%��a��s�y�O/�O��{��pVÊ���� �::�%9�X�ć\Y��8�ױ��x�����U{{[�[_�A��M����B�g�����Vhg(@p�Og�O�]\d�4ǻ�������f�a�����΅��:k�U�oi�>��l�� ܈GĬ^�q����pc���wH <�� ���\hY�^��5���ݝHH�� 5X���wO�"�ߍX���#~1���<�$5��ecm���9D-~�x�������uO�w(G=�ףۏ}��n<��" I/flutter (22007): xN�9�ٍ����L 8vn?��{�۾���X>��~:a;���7f}<��/2Y$e��� I/flutter (22007): ۻ�7y��.��[�-���N*(�8U��I�Ows�sdڷ�H���,�<��%S���S I/flutter (22007): sA��������lN��X�
�oÌ���:��:ۍ�EIj$�6 ��������$���>�BrQx���"�w"Ѓ��f#e.�vkY�ԩ]Bc����ٓ(��u���}j}+�t)�w��� I/flutter (22007): �[�A����ܭ�iIC��� Ǒ{ɾ��ɽ�1�i;��a��u���{�rٍ�R��4#p���t��zh��5�DŽ<=<A��MH<f2y��R\�lx��}��M�6�2�M &�ѐ�:r�3'��l�=J��Pp��X�P��d�>uц I/flutter (22007): 9Ի����u�h<y�x�K�� I/flutter (22007): I/flutter (22007): ���C���]����E�(���|�����5A��B\�{�t�Mw� I/flutter (22007): ԽFgx�|~��&�as�\#n,�f?B�i-y I/flutter (22007): �21�Ώ���5v����奜��9H����f-�^�7��DV{s�]x�ۄ/��h��PM&>�vb�7�������c�L1�=�f���>��qZ��ZA^r� I/flutter (22007): ���% I/flutter (22007): '�*�c\5���1��m���՝�>/2�&�����P5��>�÷n3�~:a1��B=dA:��H�}��'okn�ކGs��>ᗰue�E���y���6s�̫���!nF�J���|A�C�;�Q���Aɲ����1j�r���,4u� I/flutter (22007): -�\x&1�;�Us��
Ÿq����?�W|���W|<��ƾ��E���(����X����Y5�~���� I/flutter (22007): ��G�E��D/����l2t��S���[I3���pG�HLc��["��<x��V-�1�p� I/flutter (22007): ��C����4�#��{�_�K|�:�J�p��D.��}��S5�A1�kEp�8'�J$J��î8������ I/flutter (22007): ւ�y���C�e�&;��=�:�f/���f���5��ㆳho(L� �Z����>�bI�~����K����Y��K��{�o�J/[�ȃ�>�� I/flutter (22007): <<Log follows the previous line: :+:�0^1� �Ve�� ��c��"�$��W�}������h�]Lђ��f��>�Seʷ���R�t��J� I/flutter (22007): �w�Jl��������'���V����q�%<l�ɑ��x���1�J�c���*H1�Xz�2S��7���S���r I/flutter (22007): 3q�%662#�%EF��ra�|�����W�E�P�T�!�#��?Oe��q{7���*�a8�㕛p���;&�U��0%��y��2/̔��َ��K���L�*���@/�JL�A���Z���d���oDQ#lGR����q� I/flutter (22007): �ӛ��[d#�h�hފ{�C�� I/flutter (22007): }�!�t�}4/'�����x�0�Zȿ�Ԙ��l@��Tc^M��U�����$#Ѐ�~�՞�2��$�v�7%$�|�Lk�ל���[7���M�s��d=�� I/flutter (22007): ;?sKj.�8��pxM��T��|~�������$I8�<x/ܥc I/flutter (22007): �nק�t�s�AFF
�:|s���!���G+�߳�S���?�K�l����T�~7!�N�B?p�q���:� I/flutter (22007): �x+���`,n �L��ߐ[����{SG�E���E[��"�8�6?}����C~҆<�>E��������p��~E!�]~:�n� I/flutter (22007): N�����{�(�$�8��5�?� I/flutter (22007): ��kX�)96��D"�V�ߓN�l��8q�g�Hq�v��ٍ�R�6C�#'�ܧ!b2{:�k�d��;��J��C���1���??�A��3��~4Ut�\������8ɾ�:��9���O��cZ2Ti�W>����m��{��z)��cFJ�3 I/flutter (22007): �%{7j�>`G�z���2�,� �$Z I/flutter (22007): �\��ߒ\>L~fʥ�~���<y<jkd��/�$o���uW^����Du�iм �dO2H�p ����'���\��ݰvlV��E֥�F-�\��ro��>����kr>U�p�y����O� I/flutter (22007): ��!i�g������K?&�x�]�jp��u�G���t���)���^Aů�坒�Pc�+�&d�x��xA��to%h�?�Х����%d��2#�n=�����B$�\m��;?JX�K��7����:d_�D,5�
m��=�^On�l�BU%��L�U�捕�-�E��%^�DV I/flutter (22007): <<Log follows the previous line: �vn�a�o����[�m�x I/flutter (22007): �3# I/flutter (22007): �TUϥv��>��+B I/flutter (22007): 5�6�� �1���3Clxкr̜wȊK���4�>&��9~a�x���G]{":<��z*�Lc��6~a<u$3@�c:n^��ߙPL�v![��+.뮡q����k��P�[�@��N��� I/flutter (22007): ���)G3���>�� ��!���+BJ����4[��|��>w^�Q�V;9�"a����M��X��r�.Sa�����u�K6O������J��n��O� I/flutter (22007): <a�G�1�Q��9��<�#�"��1�D�Y�;�����r�� I/flutter (22007): <<Log follows the previous line: �E��˭���ű����ь{9+?v3���y+��X;�"֏�J�� I/flutter (22007): �����ş�q�[�Z1���@�B�#��Oہ
<�d��PI,��CoI7�Cg&���wkB>�ZNc����d�ͭS�:����\1�DzƂ:o���[�6��@��O�F4x���Z�|A��)o���6�փ�a+O�{' �!�d9?��� I/flutter (22007): �}(Ś�El��C��#w<{������ I/flutter (22007): ��Q?���|f`y"�B7B^,�&q���#p�V\3c8����h��Z�#�u�5kP��I ���l���/�A�g'�'�բ�f����>�DgG�+l?DY�l�ѾJź'!+0�;~�[��bד�:�/��ld�[o!ޢl�@�ތc��f'��qo!����C�k��Y���e\��쎹��~�k�l�c:�F�'��+<M�J-��r-�b�� D.�Ɍ?g8�,��!Ͼ���-�H\�5��Ak�~M��I��i8YN��J��-�͟��4W��r���KJ4�ߺ���xE�c �l��v~ps~k�G��A�8��W�G�v�x7��G8��4l�q{��c��#W!#��{к����1����(���F��,���u�g�2Z��o��ۏtȅ&�[/3�{�-��=�Dc�U�m������M΅���"$^ I/flutter (22007): �g�y2o�]RB����e����
Z�HpݷS9�ٳ�C.��B����]2������t��v܈�[I�"���Jx�b� I/flutter (22007): =t ^?B�L��ܝBl�t>Ƶ���|���rT�f^mY��־J01�M�O^|ܶ�rW���KP�#�F�;n�-�!�U�^�]�>�w�߿-����J�XJ��!�= >ƺ�O�F�� I/flutter (22007): ��L�W%�|����ol8ޘOZ���p�VϽ#��y�s����$yƤi}��~A���d:=�~Ο�)�l'���І���墮��v�L�BQ��!7�l��y���372\��4>o�{���b�ײ�F�d"�� I/flutter (22007): �*T^����{��W�E���K���� I/flutter (22007): ������dٓ�T#����C<G�Z�Mbqwo~3q��E��h���'�)0NW I/flutter (22007): �krR��� I/flutter (22007):
�je�zJ��H�������?��T�a�O'�>9���n��P/��37�tv������ I/flutter (22007): �Ga��cGSK�� I/flutter (22007): �� I/flutter (22007): m��;]� I/flutter (22007): I/flutter (22007): �?���8a��;X�~��>,:�/�������$�^?G`��~Y4��������� I/flutter (22007): ;R�J����?�w�����wj� I/flutter (22007): �U�ev����� I/flutter (22007): ����^�� I/flutter (22007): ��>//�?j����� I/flutter (22007): 7Gf.�� I/flutter (22007): �1����~𣣶����|Za�D� I/flutter (22007): �GÎ�:�l��=R|\�Bݪ���� I/flutter (22007): ��E}����02� I/flutter (22007): �HD��� I/flutter (22007): �G�[�N��|���� I/flutter (22007): ��|� I/flutter (22007): �[�� I/flutter (22007): /�ϊ� I/flutter (22007): �m���E��#� I/flutter (22007): a� I/flutter (22007): ���.�k� I/flutter (22007): �?���T I/flutter (22007): �T I/chatty (22007): uid=10810(u0_a810) Thread-3 identical 1 line I/flutter (22007): �T I/flutter (22007): �+�� I/flutter (22007): �T I/flutter (22007): �Z?���?�������t�~�����_��Q��v~�[?]wJ�������]�K����ހs������U�!�]ҥ@ I/flutter (22007): �T I/chatty (22007): uid=10810(u0a810) Thread-3 identical 1 line I/flutter (22007): �T I/flutter (22007): �T�����}?��U I/flutter (22007): �*T I/flutter (22007): ----dio-boundary-3579293844-- I/flutter (22007): I/flutter (22007): DioError : I/flutter (22007): DioError [DioErrorType.RESPONSE]: Http status error [400] I/flutter (22007): uri: http://192.168.1.10:8000/api/v1/catalog/product-images/ I/flutter (22007): statusCode: 400 I/flutter (22007): headers: I/flutter (22007): date: Wed, 27 Mar 2019 20:19:09 GMT I/flutter (22007): vary: Accept, Origin I/flutter (22007): content-length: 84 I/flutter (22007): content-type: application/json I/flutter (22007): x-frame-options: SAMEORIGIN I/flutter (22007): allow: GET, POST, HEAD, OPTIONS I/flutter (22007): server: Werkzeug/0.14.1 Python/3.6.7 I/flutter (22007):I/flutter (22007): Response Text: I/flutter (22007): {"image":["image, No file was submitted."],"name":["name, This field is required."]} I/flutter (22007): `
However if I downgrade to version 1.0.17, the same request works fine, am I missing or doing something wrong ?
thanks.