Sunday, December 4, 2022
HomeiOS DevelopmentFlutter iOS App: SocketException: OS Error: Dangerous file descriptor, errno = 9

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


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

SocketException: OS Error: Dangerous file descriptor, errno = 9, tackle = <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(
 "photos",
 imagePath,
 filename: imageName,
 ),
);
request.headers.addAll({
  "Content material-type": "multipart/form-data",
});
var response = await request.ship();
var response2 = await http.Response.fromStream(response);

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments