Questions tagged [flutter-http]
241 questions
0
votes
0 answers
Flutter: download large file by chunks
I need to get a large file/binary data from the server (I'm using http package). I want to download it in chunks, since it's so big, and write all the chunks into one file. How can I do that?

May
- 93
- 7
0
votes
1 answer
Flutter video_player
I am using flutter video player and chewie packages. My code works on android but not on ios, it gives an error like below, how can I solve it?
PlatformException (PlatformException(VideoError, Failed to load video: Cannot Open, null, null))
class…

Deniz Durmaz
- 53
- 4
0
votes
2 answers
Flutter data not post to API
I tried to post some data through API but every time the response is failed i don't knoow why the response is failed because if i normally hit the API in it show me the success response but i hit the API on press button it shows me response…

RAF Algowid
- 87
- 2
- 6
0
votes
0 answers
Flutter nginx "Request Entity Too Large" but not in every case
I prepare flutter client application for iOS/Android. When I send video (or something larger than 10mb) nginx return error 413 "Request Entity Too Large". My request looks like this:…

sosnus
- 968
- 10
- 28
0
votes
1 answer
Unexpected null value - API Flutter
When I start the project I got an unexpected null value.
I keep getting this error with this API, I don't have certain of what can be.
you can check here
api link: https://ffxivcollect.com/api/mounts/257
response
{
"id": 257,
"name": "Island…

yuuu
- 21
- 4
0
votes
1 answer
How I upload image with schema to my dio flutter app
I had this endpoint in my django api
I need to upload a image with the post details to create one in my app ,i spend days without any sol
in flutter i know how to send to schema without another parameter like image, As a flutter beginner i create…

Mohammed Al Shemmari
- 11
- 3
0
votes
1 answer
flutter http packages show return null from Api, while in postman data is returned successfully
I have a connection with API, and it is working with no problem in postman: like this:
but I have a problem with flutter:
this is the code :
Future
- > searchAnswers({required String search}) async {
final response = await post(
…

Osama Mohammed
- 2,433
- 13
- 29
- 61
0
votes
0 answers
How do I solve this [DioErrorType.response]: Http status error [422]
I am trying to send a form data to a server and it is returning this error back : Error Message: DioError [DioErrorType.response]: Http status error [422]
How do I solve this issue?
Map sentData = {
…

Akindele Michael
- 86
- 3
- 10
0
votes
2 answers
Flutter web: How to hide alert message in the console when the HTTP status codes is failed?
I am using the API in Flutter.
Sometimes the server will return failed HTTP status codes and Flutter always auto-generated the alert message with shown the API URL in the console. I don't want to shown the API URL and this alert message makes the…

Sittiphan Sittisak
- 486
- 4
- 15
0
votes
4 answers
I am unable to upload an image to the backend using http and image picker for flutter web
Here is my function for uploading to the server using http . I have tried to convert the image to a base64 string but still the issue persists
uploadImage() async {
var postUri = Uri.parse('${xyz}/api/v1/listing/store');
var request = new…

Muhammad Abdullah
- 25
- 2
0
votes
2 answers
Django and Flutter wth http Plugin
I've created a REST API with Django and I want to use it in Fluter. I've created the endpoints and tested them; they work fine, I've also created the models in flutter. I've done the get all endpoint. I'm now struggling with how to decode the…
0
votes
1 answer
Converting object to an encodable object failed due to 404
Receiving 404 error while writing the data in json format.
var response = await http.post(Uri.parse(url + "/api/register"),
body: jsonEncode({
"username": _username.text,
"first_name": _fname.text,
…

Rohit Bongade
- 1
- 1
0
votes
2 answers
Flutter http request issue
I'm trying to check an url with the http package.
The code looks like this:
Future checkURl() async{
final response =
await http.get(
Uri.parse('https://someurl.com'));
}
The http package is imported, but somehow the…

Ballazx
- 431
- 4
- 12
0
votes
1 answer
find the type of file fetched from HTTP URL in flutter
Today someone ask me a simple question And I thought it might be good to answer that here:
I want to know the type of content when I get the file with HTTP, How?
For example:
http.head(Uri.parse(myUrl)).then(
(response) {
if…

Hamid Salehi
- 71
- 6
0
votes
2 answers
In Flutter "final response = await http.get(url);" I am getting an error in the url part of the code
I am getting an error in the url part of the code, I have shown the error in the screenshot. How can I fix my code without changing its function.
Future
- ?> getNews() async {
String url =…

Serdar Bilgili
- 1
- 4