V 1.2.1
Still getting 23 errors , but not so often. Still goes quiet for a minute or so before I get the error. Still getting the rawdata in the error message . Getting the occasional’503 (Service unavailable) from Twitter
Also , now showing an error in my error routine. Can’t find err.code
`
function onError(errors)
{
// Log all the error messages
foreach (err in errors)
{
server.error(err.code + ":-- " + err.message);
if (err.code==23) error_count++;//omly count 23 errors
}
// Close the stream then re-open it
twitter.closeStream();
device.send("reset_count",1);
twitter.stream(search_string, onTweet,onError);
}
`
2015-11-10 17:27:27 UTC+0 [Agent] ERROR: the index ‘code’ does not exist
2015-11-10 17:27:27 UTC+0 [Agent] ERROR: in onError agent_code:58
2015-11-10 17:27:27 UTC+0 [Agent] ERROR: from unknown …ricimp#twitter.class.nut#1.2.1:126
2015-11-10 17:25:46 UTC+0 [Agent] #STARWARS: 633 #MOVEMBER: 172 STRICTLY COME DANCING: 5 PASHA: 12 DAVID BECKHAM: 352 MAD MUSEUM: 0 errors 0
2015-11-10 17:27:17 UTC+0 [Agent] Stream Closed (23: count":395,“friends_count”:1177,“listed_count”:0,“favourites_count”:293,“statuses_count”:784,“created_at”:“Mon Jul 11 18:23:41 +0000 2011”,“utc_offset”:-28800,“time_zone”:“Pacific Time (US & Canada)”,“geo_enabled”:true,“lang”:“en”,“contributors_enabled”:false,“is_translator”:false,“profile_background_color”:“C0DEED”,“profile_background_image_url”:“http:\/\/pbs.twimg.com\/profile_background_images\/562096988041121793\/Sb9kqaMr.jpeg”,“profile_background_image_url_https”:“https:\/\/pbs.twimg.com\/profile_background_images\/562096988041121793\/Sb9kqaMr.jpeg”,“profile_background_tile”:false,“profile_link_color”:“4A913C”,“profile_sidebar_border_color”:“000000”,“profile_sidebar_fill_color”:“D6B57C”,“profile_text_color”:“0A0A0A”,“profile_use_background_image”:true,“profile_image_url”:“http:\/\/pbs.twimg.com\/profile_images\/663209778307424257\/X5ePKdm0_normal.png”,“profile_image_url_https”:“https:\/\/pbs.twimg.com\/profile_images\/663209778307424257\/X5ePKdm0_normal.png”,“profile_banner_url”:“https:\/\/pbs.twimg.com\/profile_banners\/333550217\/1422849920”,“default_profile”:false,“default_profile_image”:false,“following”:null,“follow_request_sent”:null,“notifications”:null},“geo”:null,“coordinates”:null,“place”:null,“contributors”:null,“is_quote_status”:false,“retweet_count”:0,“favorite_count”:0,“entities”:{“hashtags”:[{“text”:“StarWars”,“indices”:[8,17]},{“text”:“RRC”,“indices”:[38,42]},{“text”:“FNL”,“indices”:[43,47]},{“text”:“ObiWan”,“indices”:[48,55]}],“urls”:[],“user_mentions”:[],“symbols”:[],“media”:[{“id”:664131573113982976,“id_str”:“664131573113982976”,“indices”:[56,79],“media_url”:“http:\/\/pbs.twimg.com\/media\/CTd4JaOUkAAuAv1.jpg”,“media_url_https”:“https:\/\/pbs.twimg.com\/media\/CTd4JaOUkAAuAv1.jpg”,“url”:“https:\/\/t.co\/Maj99EqC1n”,“display_url”:“pic.twitter.com\/Maj99EqC1n”,“expanded_url”:“http:\/\/twitter.com\/RetroFNL\/status\/664131573491437568\/photo\/1”,“type”:“photo”,“sizes”:{“thumb”:{“w”:150,“h”:150,“resize”:“crop”},“large”:{“w”:585… (truncated)
2015-11-10 17:27:17 UTC+0 [Agent] Opening stream for: #starwars,#movember,strictly come dancing,pasha,david beckham,mad museum
2015-11-10 17:27:27 UTC+0 [Agent] Stream Closed (503: )
2015-11-10 17:27:27 UTC+0 [Agent] ERROR: the index ‘code’ does not exist
2015-11-10 17:27:27 UTC+0 [Agent] ERROR: in onError agent_code:58
2015-11-10 17:27:27 UTC+0 [Agent] ERROR: from unknown …ricimp#twitter.class.nut#1.2.1:126