Thursday, October 8, 2026
HomeiOS DevelopmentFlutter iOS App: SocketException: OS Error: Dangerous file descriptor, errno = 9

Flutter iOS App: SocketException: OS Error: Dangerous file descriptor, errno = 9

[ad_1]

A number of Flutter iOS customers of my app have obtained the next error of their software whereas sending a multipart request for importing pictures:

SocketException: OS Error: Dangerous file descriptor, errno = 9, deal with = <back-end server area>, port = 64362

The code to ship the request

var request = http.MultipartRequest("POST", uri);
request.information.add(
await http.MultipartFile.fromPath(
 "pictures",
 imagePath,
 filename: imageName,
 ),
);
request.headers.addAll({
  "Content material-type": "multipart/form-data",
});
var response = await request.ship();
var response2 = await http.Response.fromStream(response);

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments