Questions tagged [flutter-http]
241 questions
0
votes
1 answer
How to pass cookie in http request - Flutter
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 flutter_web_view and webview_cookie_manager (basically…

shakti goyal
- 161
- 1
- 1
- 7
0
votes
0 answers
bs_flutter_selectbox save multiple values
final BsSelectBoxController _stID = BsSelectBoxController(multiple: true);
Future selectApi(Map params) async {
final response =
await http.get(Uri.parse('https://fasl.chabafarm.com/api/sss'));
…

Apinan Kan
- 1
- 1
0
votes
0 answers
What does 'Bad File descriptor' mean for Flutter ios?
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:
static Future post(
String endPoint,…

Abdelrahman
- 623
- 7
- 13
0
votes
1 answer
Flutter streamed response
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 wait or stop it manually when there is no…

May
- 93
- 7
0
votes
0 answers
Flutter how do you return value or error from stream
I want to use this method, but instead of returning Future, 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 know how to that, since you can't return a value from…

May
- 93
- 7
0
votes
1 answer
Can't get the futurebuilder data into the dropdownbutton to pick from there
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 show up on dropdownbutton. Think of it like, I will…

crag hack
- 51
- 7
0
votes
1 answer
Why do I get 'data2' has not been initiliazed error here?
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 is data and data2, they are almost similiar, data…

crag hack
- 51
- 7
0
votes
1 answer
Flutter use api and webhook
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 because it contain webhook
(i wanna get the response…

anikki00
- 11
- 2
0
votes
0 answers
Flutter stream onDone
How can I return a value from a download function that looks something like this:
Either download() {
Http.streamedResponse response;
response.stream.listen((chunk) {
sink.add(chunk);
}
}
// on error, return…

May
- 93
- 7
0
votes
0 answers
Why is my connection to the api endpoint failing?
I can connect to this api endpoint in the browser just fine.
This is my Dart code:
class Data with ChangeNotifier {
Future getQuestions() async {
var response = await http.get(
Uri.parse('https://arkiteki.co/api/v1/questions'),
…

Joel Castro
- 485
- 6
- 20
0
votes
1 answer
Calling Microsoft graph api through flutter app return 401
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 which is created using Flutter.
Here is my request…

Sumchans
- 3,088
- 6
- 32
- 59
0
votes
0 answers
Flutter Unhandled Exception: type 'Null' is not a subtype of type 'Response' in type cast
I can't seem to figure out the issue in my flutter GetConnect request, I am using the Getx's Getconnect library to send an API request to authenticate users, the requests are authenticated successfully but then the app throws an error when I try to…

Brian Mutiso
- 299
- 6
- 10
0
votes
0 answers
Can we get the IP address of a server(iot device) if we have the URL in flutter
I have a device connected to the local network, acting as a web server, and have mdns built init.
Can I somehow get the IP address of the device using an app built with flutter?
HTTP requests work perfectly fine if I remain connected to the same…

Arslan
- 1
- 4
0
votes
1 answer
SOLVED - How to add a condition when the http response of given URL is err -1 or 7 in Flutter (getting an error getting images)
I'm creating a flutter news app, using this API https://newsapi.org/docs/endpoints/top-headlines
Everything runs well when I select the 'us' country to fetch the news, but, when I switch to 've' (Venezuela) I realize that some of the news comes from…

Mario Vicuña
- 1
- 3
0
votes
0 answers
Flutter Web App Samesite Cookie Error in Chrome. Flutter/Dart
My api call works fine on the mobile emulator but does not work in chrome.
The problem is that I am not getting the set-cookie from the header response.
This is the header response when using the mobile emulator :
and this is the header response…

JoshuaaMarkk
- 123
- 1
- 9