dio Questions
2
Solved
I am trying to post a request to api with an object as"
var params = {
"item": "itemx",
"options": [1,2,3],
};
print(params);
try {
Response response = await _dio.post(getAddToCartURL,
quer...
1
Solved
I want to download a large file that is amount of about 300MB.
It was a lot slower than I thought, and when I looked at the log, I saw that it was fetching bytes with a size of about 8KB.
I haven...
Abramson asked 22/5, 2020 at 13:32
7
I'm using dio: ^3.0.4. Any one please help me to find the solution for adding header. here my code:
FormData formData =
new FormData.fromMap({"files": await MultipartFile.fromFile(filePath.path,...
3
Solved
I'm new in Flutter. When i try to upload data to the server i faced some problems like:
1.NoSuchMethodError: The getter 'friendsList' was called on null
2.DioError [DioErrorType.DEFAULT]: Converti...
2
Solved
I have a DownloadsService class that handles downloading of file using dio package. I want to listen to the download progress from my ViewModel class that implements the downloadFile method inside ...
1
Solved
I would like to send a picture as a multipart file to the server.
First I tried to use http.post :
var response = await http.post(
Uri.parse('url.php'),
headers:{ "Content-Type":"m...
Clemmy asked 10/3, 2022 at 12:36
1
I am trying to make a web-scraper API for a specific website, which has some resources locked behind a login, and the login gives a session ID in the Cookies. When I tried POSTing my login, the ses...
7
I am creating a post request Using Dio,
this is my FormData params,
FormData formData = FormData.fromMap({
'wallet_id': '${dropdownValue.walletId}',
'member_id': '${_loginModel.memberId}',
'dra...
Afoul asked 29/12, 2019 at 17:15
3
I am making an https post Request from my flutter app. as there I am using a self signed SSL certificate in server so when I hit the API I am receiving status code as 405, that I am not able to con...
1
I am using DIO package for API request but the issue is that when I request for another API while the first API is still in progress.
It doesn't cancel the first request. Both the APIs run simultan...
4
Solved
I'm trying to upload an image to Strapi through Flutter Web. I'm aware (from this link) that I need to use FormData to do so. I've researched on many ways to do this and I stumble across Dio and of...
Bethelbethena asked 8/8, 2020 at 9:56
1
i had a error;
Annotation must be either a const variable reference or const constructor invocation.dart(invalid_annotation)
The name 'Headers' is defined in the libraries 'package:dio/src/headers....
1
Solved
Hello I am sending a FormData using Dio but when this is sent, the website returns an error
var formData = FormData.fromMap({
"ctl00\$ScriptManager1": "ctl00\$UpdatePanel1",
...
Amabel asked 18/5, 2021 at 6:24
1
I am working on a flutter application which uses JWT to access backend endpoints.
When the access token expires, I added an interceptor to refresh the token based on the solutions provided here:
Us...
Wow asked 23/3, 2021 at 15:4
2
Solved
I am hosting a space in digital ocean - it is basically Amazon S3 equalivant of digital ocean. My problem with dio is, I am making a get request with dio to a file of 10MB size. The request takes a...
1
Solved
This is an error I get only in release mode (weird) when I'm trying to parse response body of a network request i made into a json map. I put down the code and also the error stacktrace below.
the ...
2
Solved
I've trained a CNN on the CIFAR10 dataset (placeholder, will be replaced with a different model later) and integrated the model into a flask API. The API is hosted on Heroku, and I would now like t...
4
Solved
Since today whenever I try to login my application I get the following error thrown by the Dio package: SocketException: Insecure socket connections are disallowed by platform: 10.0.2.2
I use the f...
Manhood asked 2/9, 2020 at 11:14
2
Solved
I tried to load array json (array with no key) and fetch into list of object, here is my sample code :
My ApiCliet :
Future<List<OnBoardingModel>> fetchOnboarding() async {
try {
Re...
4
Solved
I'm using Dio to handle APIs functions.
Here's my code:
Future<List<ItemModel>> getItems() async {
try {
Response response = await dio.get("$_apiUrl$_itemEndPoint",
options: Opti...
© 2022 - 2024 — McMap. All rights reserved.