-
-
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
DioError [DioErrorType.RESPONSE]: Http status error [401] #668
Comments
+) Response: {timestamp: 2020-02-04T11:01:26.352+0000, status: 415, error: Unsupported Media Type, message: Content type '' not supported, path: /holinoti/facilities} and I tried to:
but same response. |
- Changed the automatic import of the Dio library using pubspec.yaml to the manual import the issue # 668 of dio (cfug/dio#668) resolved version - See README.md for other version change history
…ing codes - Changed the automatic import of the Dio library using pubspec.yaml to the manual import the issue # 668 of dio (cfug/dio#668) resolved version - See README.md for other version change history
…ing codes - Changed the automatic import of the Dio library using pubspec.yaml to the manual import the issue # 668 of dio (cfug/dio#668) resolved version - See README.md for other version change history
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. |
this is still an issue to keep it open |
I/flutter (24000): statusCode: 400 |
@Tonigt I am also facing the same issue. Did you solve it? |
|
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. |
same here |
The *401* Unauthorized *Error* is an *HTTP response status code* indicating
that the request sent by the client could not be authenticated. ...
Conversely, a *401* Unauthorized *Error* indicates that the requested
resource is restricted and requires authentication, but the client failed
to provide any such authentication.
…On Wed, May 27, 2020 at 6:18 PM lakhwinderdebut2014 < ***@***.***> wrote:
same here
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#668 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFCMXYY7CFPH4UNJ6CGX6RDRTUD3VANCNFSM4KPJJY2A>
.
--
*Regards,*
*Maadhav Sharma*
|
Why dio throw error in release mode for iOS? using : dio: ^3.0.10 ERROR: DioError [DioErrorType.RESPONSE]: Http status error [400] \nSTACK: #0 DioMixin._dispatchRequest (package:dio/src/dio.dart:966)\n\n#1 DioMixin._request._interceptorWrapper.... (package:dio/src/dio.dart)\n |
using : dio: ^3.0.10 #2 _CustomZone.runUnary (dart:async/zone.dart:1100:19) |
Is dio get broken now ? I/flutter ( 2266): uri: https://www.climpio.com/api/v1/product/search/?terms=n95&offset=0 |
i am handle this error in this way |
i am also facing the same issue it worked on firefox not on chrome in windows |
link not found, still having similar issue with header |
@adityagandhi007 The error 401 means that the HTTP request you send does not have the correct authorization. Have you tried the HTTP request with tools like Postman or curl ? |
Oh thanks men |
New Issue Checklist
Issue Info
Issue Description and Steps
In my flutter apps(holinoti/admin, holinoti/customer)
dio 's get method gives bad response 415
Correctly worked dio with the same code a few months ago(dio: ^3.0.2) and Tested with Postman, GET(http://holinoti.tk:8080/holinoti/facilities/) Header(Content-Type:application/json) is correctly run
code(Client):
Also, I tried the options: Options(headers: {"accept" : "application/json","content-type" : "application/json;charset=UTF-8"}), Options(contentTypes":application/json"), and No Options
code(Spring boot Rest API Server):
@RequestMapping(value = "/facilities", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
log: I/flutter (27156): DioError [DioErrorType.RESPONSE]: Http status error [415]
The text was updated successfully, but these errors were encountered: