Stream Read/Write Timeout causes Invalid Operation Exception

前端 未结 2 1008
Happy的楠姐
Happy的楠姐 2021-01-15 05:21

I am trying to get a request from an API using:

RestClient client = new RestClient(\"https://gds.eligibleapi.com/v1.5/coverage/all?api_key=\"
    + apiSecr         


        
2条回答
  •  耶瑟儿~
    2021-01-15 05:44

    For anyone who comes to this page, The issue was an unexpected null variable which went unhandled in the API. Without a response, the request was timing out. My fix was to first, try to allow for timeouts with my client. Once in place, I was able to narrow down issue to the data itself and there was my problem.

    This answer is coming back very late, but I will try to get to questions anyone might have regarding my answer in the future.

提交回复
热议问题