0

Inconsistent Error Handling

Hi everybody,
as I wrote in another post I am executing different test on the HTTP Headers before parsing the response to understand and analyze possible issues.
The problem comes when sometimes (randomly) I do get a response with no error (HTTP Response status 200) but the resut array is empty. This, of course blocks my script in a way I can't solve because there is actually no error.

I am using using a self-defined openDataTable hosted on my personal web host account. I tried the same query from the console and even there I get no error but still empty result. I tried using the original Flickr API that I've just mapped using the table and I do get results!

The weird things happens when I relaunch my script after a while and it starts to work again. So here, the problem comes:
1) from how i wrote the table?
2) from my web host blocking me in a way?
3) from rate limit? (I'm using a time sleep of 3 secs trying to be polite with yql)
Below you can see 2 screenshots of the mysterious error on both the console and on my shell script.

Here you can check my self defined table.




PS: While writing this post I tried again the exactly same query and I got an HTTP Status 400: "Bad Request" ??? Without changing any parameter, anything!

Thanks, bye

by
0 Replies

Recent Posts

in YQL