I've been calling an api (Yelp) and been using it to run a "search" function for multiple locations. It works out okay sometimes, and other times, it gives me back an Error that I am confused about. I'm looking at a lot of locations, so I've been limiting it down to see if theres something wrong with the quantity (which doesnt seem to be the case.) I run the search on 5 locations. It works, but if I run it again, I get an error. Then I run it on 3 locations, it doesnt work. Then I run it on 4, and it happens to work. I try again, and it wont work. I feel like my computer is playing games with me. This is the error I keep getting:
(some code about most recent call)
File "C:\Python27\lib\urllib2.py", line 409, in _call_chain
result = func(*args)
File "C:\Python27\lib\urllib2.py", line 1240, in https_open
context=self._context)
File "C:\Python27\lib\urllib2.py", line 1197, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error EOF occurred in violation of protocol (_ssl.c:590)>
WHAT is going on??!!