Large web request responses error out if response is slow


#21

Thus one is from my score alert piston, just tested the piston and got the error

http://site.api.espn.com/apis/site/v2/sports/baseball/mlb/summary?event=401288363

Update: just tested in a standalone piston, able to make the request and set a variable to the response without errors, however not parsing of the data


#22

@ipaterson - I’ve decide to see what would happen if I limited the processing in my piston. I started disabling a block here and there and turns out that I was just a little over zealous. I split out parts of the piston, specifically a section that schedules times of future runs, and have not received the error since.


#23

Thanks for following up. From what I’ve seen it can depend on how long the piston has been running when the request starts and how long it takes to respond.

Next step for me is to finish test cases for local network web requests. If this error is not affecting anyone else I may stick with the new asynchttp_v1 and implement redirect following rather than reverting the networking changes.


GET weather API data in a web request, for color changing bulb?
#24

I’m still getting the status 302 error with my google sheet web request. Another person is using my same script, however, and it is working fine for him. For some reason, my webcore is not following the redirects. Any ideas? thanks,


HTTP Get requests no longer working
#25

Versions 0.3.111 through 0.3.113 will not follow redirects. Still working through a lot of surprises like that for the next release but for now you would need to use v0.3.110.20191009. You can grab the code for each of the four smart apps here just click “Raw” to get an easy-to-copy version of each file.


AC API WebRequest via Webcore
GET WebRequest no longer works
Get request no longer working
#26

Successfully went back to 110 and working good again. Will keep my eye out for 114. Thanks!


#27

I just tried up-dating to 114 and it still has the same problem with web requests. Will go back to 110 again :frowning: