{"action":"created","issue":{"url":"https://api.github.com/repos/rOpenGov/fmi/issues/22","repository_url":"https://api.github.com/repos/rOpenGov/fmi","labels_url":"https://api.github.com/repos/rOpenGov/fmi/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/rOpenGov/fmi/issues/22/comments","events_url":"https://api.github.com/repos/rOpenGov/fmi/issues/22/events","html_url":"https://github.com/rOpenGov/fmi/issues/22","id":191824702,"number":22,"title":"getDailyWeather fails with error when result is empty","user":{"login":"torsti","id":698941,"avatar_url":"https://avatars.githubusercontent.com/u/698941?v=3","gravatar_id":"","url":"https://api.github.com/users/torsti","html_url":"https://github.com/torsti","followers_url":"https://api.github.com/users/torsti/followers","following_url":"https://api.github.com/users/torsti/following{/other_user}","gists_url":"https://api.github.com/users/torsti/gists{/gist_id}","starred_url":"https://api.github.com/users/torsti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torsti/subscriptions","organizations_url":"https://api.github.com/users/torsti/orgs","repos_url":"https://api.github.com/users/torsti/repos","events_url":"https://api.github.com/users/torsti/events{/privacy}","received_events_url":"https://api.github.com/users/torsti/received_events","type":"User","site_admin":false},"labels":[{"id":445490273,"url":"https://api.github.com/repos/rOpenGov/fmi/labels/Feature%20request","name":"Feature request","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":{"login":"torsti","id":698941,"avatar_url":"https://avatars.githubusercontent.com/u/698941?v=3","gravatar_id":"","url":"https://api.github.com/users/torsti","html_url":"https://github.com/torsti","followers_url":"https://api.github.com/users/torsti/followers","following_url":"https://api.github.com/users/torsti/following{/other_user}","gists_url":"https://api.github.com/users/torsti/gists{/gist_id}","starred_url":"https://api.github.com/users/torsti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torsti/subscriptions","organizations_url":"https://api.github.com/users/torsti/orgs","repos_url":"https://api.github.com/users/torsti/repos","events_url":"https://api.github.com/users/torsti/events{/privacy}","received_events_url":"https://api.github.com/users/torsti/received_events","type":"User","site_admin":false},"assignees":[{"login":"torsti","id":698941,"avatar_url":"https://avatars.githubusercontent.com/u/698941?v=3","gravatar_id":"","url":"https://api.github.com/users/torsti","html_url":"https://github.com/torsti","followers_url":"https://api.github.com/users/torsti/followers","following_url":"https://api.github.com/users/torsti/following{/other_user}","gists_url":"https://api.github.com/users/torsti/gists{/gist_id}","starred_url":"https://api.github.com/users/torsti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torsti/subscriptions","organizations_url":"https://api.github.com/users/torsti/orgs","repos_url":"https://api.github.com/users/torsti/repos","events_url":"https://api.github.com/users/torsti/events{/privacy}","received_events_url":"https://api.github.com/users/torsti/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-11-26T20:19:06Z","updated_at":"2016-11-28T11:12:11Z","closed_at":null,"body":"As the title says. I assume the desired behaviour would be to return an empty object or something else. Or at least a more useful error message. The error seems to be in convertOGR. To which package does that belong?\r\n\r\n```R\r\n> client$getDailyWeather(startDateTime=\"2012-05-15\", endDateTime=\"2012-07-17\", fmisid = 100929)\r\ntrying URL 'http://data.fmi.fi/fmi-apikey/the-api-key/wfs?request=getFeature&storedquery_id=fmi::observations::weather::daily::timevaluepair&starttime=2012-05-15&endtime=2012-07-17&fmisid=100929&parameters=rrday,snow,tday,tmin,tmax'\r\nContent type 'text/xml; charset=UTF-8' length 1988 bytes\r\n==================================================\r\ndownloaded 1988 bytes\r\n\r\nogr2ogr -f GML  -splitlistfields /tmp/Rtmp9R6Bi7/file470e214c4ed /tmp/Rtmp9R6Bi7/file470e50047a05 PointTimeSeriesObservation\r\nERROR 1: Couldn't fetch requested layer 'PointTimeSeriesObservation'!\r\nError in convertOGR(sourceFile = private$cachedResponseFile, layer = layer,  : \r\n  Conversion failed.\r\n```\r\n\r\nI will try to investigate further."},"comment":{"url":"https://api.github.com/repos/rOpenGov/fmi/issues/comments/263245146","html_url":"https://github.com/rOpenGov/fmi/issues/22#issuecomment-263245146","issue_url":"https://api.github.com/repos/rOpenGov/fmi/issues/22","id":263245146,"user":{"login":"torsti","id":698941,"avatar_url":"https://avatars.githubusercontent.com/u/698941?v=3","gravatar_id":"","url":"https://api.github.com/users/torsti","html_url":"https://github.com/torsti","followers_url":"https://api.github.com/users/torsti/followers","following_url":"https://api.github.com/users/torsti/following{/other_user}","gists_url":"https://api.github.com/users/torsti/gists{/gist_id}","starred_url":"https://api.github.com/users/torsti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torsti/subscriptions","organizations_url":"https://api.github.com/users/torsti/orgs","repos_url":"https://api.github.com/users/torsti/repos","events_url":"https://api.github.com/users/torsti/events{/privacy}","received_events_url":"https://api.github.com/users/torsti/received_events","type":"User","site_admin":false},"created_at":"2016-11-28T11:12:11Z","updated_at":"2016-11-28T11:12:11Z","body":"Issue reported: [rwfs/issue/12](https://github.com/rOpenGov/rwfs/issues/12). Should we close here?\r\n\r\n@jlehtoma Lazy me had missed the develop branch, thanks for pointing it out!"}}
{"actor":{"display_login":"torsti"}}