Comments (6)
I also encountered this problem, the response.data['name'] has been decoded, you can use it directly, the same problem here at #3
from dio.
@lyquocnam error.response.data["message "]
from dio.
Ahh I see. I thought the problem was with the data in the body of the request not the response. Thank you again for point this out. :) all works now π
from dio.
it's still happen when get with response is json like this:
{
"message": "Please login first !"
}
(statusCode 401)
i checked with Postman !
from dio.
I had
Response<String> response = await dio.get(url.toString());
which I copied from README.md. But Response works better without specific type.
Response response = await dio.get(url.toString());
from dio.
HappyMiao
Thanks for the help π
from dio.
Related Issues (20)
- Migrating browser_adapter.dart for WASM HOT 2
- Remove the message 'The request was manually cancelled by the user.' for canceltoken.cancel() HOT 1
- Target of URI doesn't exist: 'package:dio/adapter.dart'. Try creating the file referenced by the URI, or try using a URI for a file that does exist. HOT 1
- Dio (HttpClient) cannot set a self-signed trust certificate HOT 4
- [Proposal] Improve toString() of InterceptorState
- Cronet exception: m.ms: Exception in CronetUrlRequest: net::ERR_CONNECTION_CLOSED, ErrorCode=5 HOT 2
- 503 Status Code With the Https base URL HOT 1
- DIo not working while adding extras in requestOptions with path in Dio singleton HOT 3
- Type Casting Error: '_Map<String, dynamic>' is not a Subtype of 'T?' HOT 1
- Issue with API call when android device is connected via wifi. HOT 1
- Uploading with FormData throws a TypeError: type 'List<int>' is not a subtype of type 'Uint8List' of 'value' HOT 6
- Opportunity to improve the json decoding performance HOT 3
- FormData and List of Int not working as expected. HOT 2
- flutter dynamic coockies management HOT 1
- postθ―·ζ±θΆ ζΆζ εεΊ HOT 1
- Error Dio flutter web HOT 1
- upload file send timeout
- Header is out of order HOT 3
- `ResponseType.stream` is not working on web. HOT 1
- [π Dio] sendTimeout cannot be used without a request body to send HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dio.