All Questions
47 questions
1
vote
1
answer
613
views
Unhandled Exception: ClientException: Connection closed while receiving data, in flutter
I am trying to generate an Image using Eden Ai APIs but it shows an exception. where I am wrong I don't understand.
\[ERROR:flutter/runtime/dart_vm_initializer.cc(41)\] Unhandled Exception: ...
1
vote
1
answer
74
views
Cannot access fetched files in python API
I have created a web API without any frameworks in python. I want to send a image to the API using POST request (no problem if you have solution using GET request) and I will store the image in my ...
-1
votes
2
answers
989
views
Send header in HTTP post request in flutter
first of all i have LoginPageModel to run HTTP post request like this
class LoginPageModel {
String CODD_VALU;
String CODD_DESC;
LoginPageModel({required this.CODD_VALU, required this....
0
votes
1
answer
75
views
POST request body is not updating after inserting new value
I have a login field that when doing a post request it returns the http code. If I enter a valid phone number it returns 200. All good here. But when I try to reproduce an error message, it stores the ...
-1
votes
1
answer
2k
views
Flutter HTTP POST request / code 400 error
I am trying to make a POST request and I keep getting a 400 error code. I cant figure out why. I have everything I need and it seems to all be in order. Here is the code where I am making the call:
...
0
votes
2
answers
1k
views
Empty Body HTTP Post request Flutter
I am trying to send a Post request but the body of the request is meant to be empty and I have tried the endpoint on postman with an empty body and it works.
But now I don't know how to implement that ...
0
votes
1
answer
1k
views
I'm getting Unhandled Exception: FormatException: Unexpected end of input (at character 1) and don't know why?
I am trying send an email to my forgotPassword but it always returns me an error in console, I don't know what I'm doing wrong.
[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: ...
0
votes
1
answer
2k
views
Flutter HTTP POST with JSON body to specific port (same port every time; cannot change)
My code uses this import from the Flutter package https://pub.dev/packages/http
import 'package:http/http.dart' as http;
My code itself (little bit below) attempts to make a POST to my specific ...
6
votes
0
answers
2k
views
Dart Shelf Post Request No Body Data
I am building a simple API using Dart Shelf. The GET requests work fine but I can't seem to be able to access the request body for a POST request.
import 'dart:io' show InternetAddress;
import '...
0
votes
0
answers
1k
views
How to make HTTP POST request with url encoded header and body in Flutter/Dart
I've been trying to make a post request to an endpoint that requires both the request header and body to be encoded however so far the responses I've been getting back are 400 errors. The only way I'...
0
votes
4
answers
5k
views
Send picture to server api with post request [FLUTTER]
I want to take picture, which should contain just a few letters, with my phone and then send it to a server where it will convert the picture to a text string.
My imported packages:
import 'dart:io';
...
1
vote
2
answers
2k
views
How to pass a list of json to body of http Post request in Flutter?
I have objects that will filled by a user in a form. I parse these objects to json and add that json in a list to pass in body of request. But i cant do this.
submitQuestions() async {
var headers = {
...
-1
votes
1
answer
872
views
I am getting error(Error: XMLHttpRequest error.) while I am running flutter application using http post request
I am getting this error
here is code I used
-1
votes
1
answer
734
views
How can I show data in listView in flutter using POST METHOD
I want to display my data in list view with post method, I'm getting response in my console, but how to show the desired data in list view?
{
"Status": "1",
"Message&...
2
votes
0
answers
48
views
How to show the current progress on a post request in Flutter? [duplicate]
i wan't to see the current upload progress on a post request. Is this somehow possible in Flutter/Dart with the http package for example?
I couldn't find any example projects or code snippets to solve ...