Skip to main content
Filter by
Sorted by
Tagged with
1 vote
2 answers
123 views

I tried following the flutter doc from text but failed to show the data, I suspect the problem is in the futureBuilder, haven't implement try-catch yet as I'm not sure what to call. Also when I use ...
shotmeinthehead's user avatar
0 votes
0 answers
47 views

I am working on a project where once user fills the Address field, there is drop down showing list of addresses and once user selects the address, the Postal code is extracted from the address and is ...
Neo's user avatar
  • 11
1 vote
0 answers
106 views

I am trying to run the sample app given with cupertino_http package in iOS. But I am getting below error. flutter: The Dart VM service is listening on http://127.0.0.1:53003/tmg2xds8gus=/ [ERROR:...
Shubham Gupta's user avatar
0 votes
2 answers
91 views

I am trying to get data from an API, which I did successfully, and show the data in a dialog box on my Flutter App. Initially what I did was create a function void _showDialog() right after the ...
I. Antonov's user avatar
1 vote
2 answers
636 views

I've setup Nginx with reverse proxy to my django backend api. The requests from Postman work perfectly fine but on Flutter I get a HTTP 400 157 from the nginx server while performing a GET request. ...
Earthling's user avatar
  • 489
1 vote
0 answers
105 views

I am working on my first app and I was working on Android I made all configurations for Android and all HTTP requests to the backend works fine and I uploaded to the backend on the server called ...
abdu idres's user avatar
0 votes
1 answer
200 views

When I attempt a basic http post, I can see that the server is returning a normal 400. But the client seems to just crash with an error I can't make sense of. I have the following code static Future&...
noone392's user avatar
  • 2,218
1 vote
0 answers
392 views

I have a text field to search for cities. When I type a character, a request is sent to the server (API). When I enter any character. I need to cancel the previous request that is pending. Please help ...
Daler Sabirov's user avatar
0 votes
1 answer
59 views

I'm making HTTP Requests in Flutter with following code to find the nearest city by lat/lng: import 'package:http/http.dart' as HTTP; import 'dart:convert'; import 'dart:developer'; import 'package:...
Adrian Preuss's user avatar
0 votes
0 answers
124 views

until some days ago everything was working fine. I am not able to remember any changes in the code or in the model. In a flutter app I do not have any response from a http.get request and I just see &...
OltreXR4's user avatar
0 votes
2 answers
785 views

When Try to work with the api in the Desktop Simulator it is working well but with Edge/Chrome It does not work; class UserDao { static const baseUrl = "http://localhost:3000/api"; //Get ...
Otmane Bachri's user avatar
1 vote
2 answers
598 views

I'm currently developing a Flutter web application where I've encountered an issue specifically when attempting to send a GET request with a body. The application works as expected on Chrome, but ...
Sukaina Ahmed's user avatar
0 votes
1 answer
405 views

If a connection is established, it will be closed after 15 seconds (if I am wrong please let me know the connection closing time), and the idle time cannot be extended. In my situation, multiple ...
Dharani's user avatar
  • 1,108
1 vote
0 answers
92 views

this is the flutter code for http post request. this endpoint send a email verification link to the entered email. now instead of 200 ok im getting this - I/flutter (13736): Response status: 308 I/...
codingwizard's user avatar
0 votes
1 answer
267 views

I am developing an application with Flutter and I am using an HTTP packet for HTTP requests. I have this problem related to Wi-Fi connection. When a user clicks a button (such as a confirm button) ...
Luca Viotti's user avatar
0 votes
1 answer
5k views

I am trying to use the below library: https://pub.dev/packages/http called http when I am trying to run the code on web, I found the below error: Compiler message: Launching lib\main.dart on Chrome in ...
Ashrafi Abir's user avatar
0 votes
0 answers
251 views

My server emits a Server-side Event of json data. Now during the 'loading' period, the payload is short, but when the stream is completed I get a Format exception because the payload exceeds the ...
Mudassir's user avatar
  • 776
1 vote
1 answer
135 views

I'm new to flutter and dart. While learning about get on http request I encounter some error. These are my code import 'dart:convert'; import 'package:flutter/material.dart'; import 'package:http/http....
Ziraaa's user avatar
  • 13
-1 votes
1 answer
452 views

I need to fetch Category Data from my custom made API. I create a model, controller for fetch data from API with help of getx, but it give me error. I don't know what is the problem. Can anybody help ...
MUHTASIM JEET's user avatar
1 vote
2 answers
663 views

In my Flutter App, there are 2 screens called "home screen" and "data screen". In data screen I am making a GET Http request to a server and after if request is successful, I need ...
Emre Turan's user avatar
0 votes
2 answers
80 views

I am newbie of flutter I want to load some data from my restful API by using Yii2 Provide data to API: { "account":"B0929036", "password":"12344567" } ........(...
Chavon's user avatar
  • 1
1 vote
0 answers
343 views

I am trying to use a Flutter app running on a device (and debugging via Android Studio) to make a simple GET request to my localhost:5000. The response should be the result of a stored procedure being ...
TheMortiestMorty's user avatar
-1 votes
2 answers
588 views

I am using a Ntrip client wrote in Java that is making requests using Socket. This works fine with this code : public void run() { Log.d(TAG, "Run network client with server " + ...
Tom3652's user avatar
  • 2,975
0 votes
1 answer
67 views

I have a Flutter Web application, and I want to validate the date and time of the Client side, just like Chrome or Whatsapp does. To do this, I decided to send in each request the current date and ...
l.diazborg's user avatar
2 votes
0 answers
1k views

I'm new to flutter programming and i need to be able to download an excel file from http post request. I have two issues: The response in flutter is null whereas in postman it displays something. The ...
Endeavor's user avatar
0 votes
2 answers
71 views

This is my file user_model.dart class UserModel { int id, nik; String password, token; UserModel( {required this.id, required this.nik, required this.password, required ...
Asadin's user avatar
  • 11
0 votes
1 answer
443 views

I'm learning to fetch a data from an API using mockapi. I followed the flutter examples using the HTTP package but there's something wrong with the code and I can't seem to figure it out. I have tried ...
The Minxs's user avatar
0 votes
1 answer
167 views

I want to read my information from the API. But facing this error. This is the code I wrote: import '../models/LocationListApi.dart'; import 'package:http/http.dart' as http; import 'dart:convert' as ...
AmirSam's user avatar
  • 25
0 votes
3 answers
141 views

//sign() fnction is in statless widget var y y=signIn(); Navigator.of(context).push( MaterialPageRoute( builder: (context) => posting(y), ...
suman singh's user avatar
1 vote
1 answer
2k views

Infrequently I get Connection reset by peer error. As a result the the application continues to see circular progress bar and remains stuck there. I am using http package "http: ^0.13.5". Is ...
Saad Bashir's user avatar
  • 4,559
0 votes
1 answer
226 views

My whole team face this problem in our retailer app API works slowly on mobile network but on Wi-Fi works superb. It is not API problem http package have some kind of issue. please help to rectify ...
Ankit Tripathi's user avatar
11 votes
4 answers
22k views

I'm new in flutter development. Recently I heard about Dio and Http packages for api calling. Which is the best one for api calling. If anyone have a better way of api service?? ...
kapil tk's user avatar
  • 389
0 votes
2 answers
330 views

In my Flutter App, I am trying to call an API in initState and I am able to successfully get a response in the format that I want. I know this because when I try and print the variable on a button ...
user15312648's user avatar
0 votes
0 answers
202 views

I get an unhandled exception error at times, and at other times, it works just fine. Not sure what is causing this issue. What I understand from my limited understanding is that it sends a async ...
Saad Bashir's user avatar
  • 4,559
0 votes
1 answer
705 views

What I'm trying do is access the Instagram private api which requires user to be logged in before sending request to it, so to achieve that, I accessed the cookies or session id with the help of ...
shakti goyal's user avatar
2 votes
1 answer
101 views

Please help I have been searching for hours and found no solution. I want to get data from two APIs so I call the two methods that return future and then await for their return value so that I don't ...
Ahmed Gado's user avatar
1 vote
1 answer
2k views

So I have a method that uses the Flutter HTTP library and is responsible for calling HTTP requests to the server with code like this: Future<List<DataModel>> fetchData() async { try { ...
Muhammad Faisal's user avatar
1 vote
0 answers
99 views

async{ try { var url = Uri.parse("http://127.0.0.1:8000/todoget/"); var response = await http.get(url,); print(response.statusCode.toString()); ...
Abhinav singh's user avatar
2 votes
0 answers
5k views

I keep getting 'Bad file descriptor' errors for Flutter on iOS production builds. According to Sentry, they come from the post request I am sending to the backend. Code of post function: ...
Abdelrahman's user avatar
0 votes
1 answer
246 views

Hi I use 'await for' for a streamedResponse. If I turn WiFi OFF, sometimes it resumes downloading after I turn it ON again, and sometimes not. What is the best way to deal deal with this? Should you ...
May's user avatar
  • 167
3 votes
0 answers
1k views

I am calling my API which require a header named 'Cookie' for user auth. I'm using the Http package to make the call and everything is working fine in my Android and iOS app. Now I'm testing my app on ...
Ashish's user avatar
  • 83
6 votes
1 answer
2k views

I am facing an issue with Flutter Android 12+ version. App-consuming REST API calls using the Flutter http plugin (Version: 0.13.5). All API calls are HTTPS service calls with the domain name. API ...
John_S's user avatar
  • 652
0 votes
0 answers
687 views

I want to use this method, but instead of returning Future<void>, I want to return a value from it. This value is either a final list of bytes or an error (if error happens anytime). I don't ...
May's user avatar
  • 167
0 votes
1 answer
60 views

I am trying to get some String data from a server via future builder, which works. Then transfer those strings into the dropdownbutton thing, to show as options then to be picked. I mean they will ...
crag hack's user avatar
0 votes
1 answer
51 views

It makes no sense at this code. I am trying to grab some strings from the ALREADY INITIALIZED from the futurebuilder data, but can't do so. It gives me the data2 has not been initialized error. Here ...
crag hack's user avatar
0 votes
1 answer
830 views

i wanna work with this api in my flutter app https://dev.chargily.com/docs/epay-api/ i have done the first part 1.Make Payment but the second part 2. Payment confirmation i don't know how to do it ...
anikki00's user avatar
0 votes
0 answers
309 views

How can I return a value from a download function that looks something like this: Either<sucess, failure> download() { Http.streamedResponse response; response.stream.listen((chunk) { ...
May's user avatar
  • 167
1 vote
0 answers
719 views

This is the code that I am running: var response = await http.get( Uri.parse( 'https://arkiteki.co/api/v1/questions', ), ); Results: Android: Works Chrome: Error: ...
Joel Castro's user avatar
7 votes
1 answer
994 views

I'm using Flutter version 3.3.8 and Google Chrome version 107.0.5304.110. I send an http request, and this is the error that I get: ChromeProxyService: Failed to evaluate expression 'xhr': ...
Joel Castro's user avatar
0 votes
1 answer
845 views

I am calling the graph api with the token returned from the app to create a user in the tenant. This api totally works fine when calling through postman but not when calling through the mobile app ...
Sumchans's user avatar
  • 3,862

1
2 3 4 5