I am hoping someone can help me out. I’ve been trying to use the requests module with ironpython to post data to our API. Originally I was just using CPython which works great, but I am hoping to take advantage of the wpf forms @eirannejad builtin to pyrevit. I have full_frame set to true in the bundle metadata.
import requests response_1 = requests.get('https://httpbin.org/get') print(response_1.status_code) response_2 = requests.get('https://bimservice.ssgbim.com/') print(response_2.status_code)
When I run this with CPython I get 200 codes for both, but when I run it with ironpython I get a 200 code for the first request and an exception with the second.
IOError: System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host at System.Net.Sockets.NetworkStream.Read(Byte buffer, Int32 offset, Int32 size)