-
-
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] v5.0 #1676
Comments
This will be resolved by #1671 once the new version is released. |
@AlexV525 this issue not fixed dio: ^5.0.1
gql_dio_link: ^0.3.0
pretty_dio_logger: ^1.3.1
|
same thing 👎 |
Please provide your minimal reproducible example about the empty body. As a reference, setting up a test like dio/dio/test/options_test.dart Line 220 in 265e896
|
@AlexV525 this code working well with version ....
client = Dio(
BaseOptions(
baseUrl: 'https://a*********.com/',
headers: {
HttpHeaders.userAgentHeader: 'app',
},
),
);
... ....
client.interceptors.add(AuthInterceptors());
var dioLink = Link.from([DioLink('/graphql', client: client)]);
_graphQLClient = GraphQLClient(
cache: GraphQLCache(store: InMemoryStore()),
link: dioLink,
);
... ....
var queryOpt = QueryOptions(
document: parseString(query),
variables: vars,
fetchPolicy: FetchPolicy.networkOnly);
var res = await _graphQLClient.query(queryOpt);
if (res.hasException) throw Exception(res.exception);
... after version |
Can you simplify your code with some raw requests? More specifically, we don't know what happened with |
Unfortunately we cannot proceed without additional info for requests. Please consider providing a minimal reproducible example and submit a new issue so we can identify where and what is the root cause. Thanks. |
Package
dio
Version
5.0.0
Output of
flutter doctor -v
Dart Version
2.19.2
Steps to Reproduce
requests working fine on 4.0.6 but when I upgrade to 5, i got Status: 400 Bad Request #1171
Expected Result
Actual Result
The text was updated successfully, but these errors were encountered: