You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today I tried make a request to https://api.telegram.org with MultipartRequest, but I did not succeed. Meanwhile, in the postman chrome application it working fine.
What am I doing wrong?
Postman
Http package
I tried run this code:
import'dart:async';
import'package:http/http.dart'as http;
Futuremain() async {
final url =Uri.parse('https://api.telegram.org/bot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11/getMe');
final request =new http.MultipartRequest('POST', url);
request.fields['Name'] ='John';
final response =await request.send();
print(await response.stream.bytesToString());
}
This isn't really enough information for me to diagnose the problem, since the server doesn't explain why it's timing out. It's possible this is a symptom of #61, or possibly a proxy issue. If it's the former, this is a duplicate, and if it's the latter the fix will involve configuring your system somehow.
Today I tried make a request to https://api.telegram.org with MultipartRequest, but I did not succeed. Meanwhile, in the postman chrome application it working fine.
What am I doing wrong?
Postman
Http package
I tried run this code:
but got the 504 error:
The text was updated successfully, but these errors were encountered: