{"action":"created","issue":{"url":"https://api.github.com/repos/nilsnolde/OSMtools/issues/77","repository_url":"https://api.github.com/repos/nilsnolde/OSMtools","labels_url":"https://api.github.com/repos/nilsnolde/OSMtools/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/nilsnolde/OSMtools/issues/77/comments","events_url":"https://api.github.com/repos/nilsnolde/OSMtools/issues/77/events","html_url":"https://github.com/nilsnolde/OSMtools/issues/77","id":383700982,"node_id":"MDU6SXNzdWUzODM3MDA5ODI=","number":77,"title":"Python error on running isochrone","user":{"login":"GitHubMLee","id":13372607,"node_id":"MDQ6VXNlcjEzMzcyNjA3","avatar_url":"https://avatars3.githubusercontent.com/u/13372607?v=4","gravatar_id":"","url":"https://api.github.com/users/GitHubMLee","html_url":"https://github.com/GitHubMLee","followers_url":"https://api.github.com/users/GitHubMLee/followers","following_url":"https://api.github.com/users/GitHubMLee/following{/other_user}","gists_url":"https://api.github.com/users/GitHubMLee/gists{/gist_id}","starred_url":"https://api.github.com/users/GitHubMLee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GitHubMLee/subscriptions","organizations_url":"https://api.github.com/users/GitHubMLee/orgs","repos_url":"https://api.github.com/users/GitHubMLee/repos","events_url":"https://api.github.com/users/GitHubMLee/events{/privacy}","received_events_url":"https://api.github.com/users/GitHubMLee/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"nilsnolde","id":25637358,"node_id":"MDQ6VXNlcjI1NjM3MzU4","avatar_url":"https://avatars1.githubusercontent.com/u/25637358?v=4","gravatar_id":"","url":"https://api.github.com/users/nilsnolde","html_url":"https://github.com/nilsnolde","followers_url":"https://api.github.com/users/nilsnolde/followers","following_url":"https://api.github.com/users/nilsnolde/following{/other_user}","gists_url":"https://api.github.com/users/nilsnolde/gists{/gist_id}","starred_url":"https://api.github.com/users/nilsnolde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilsnolde/subscriptions","organizations_url":"https://api.github.com/users/nilsnolde/orgs","repos_url":"https://api.github.com/users/nilsnolde/repos","events_url":"https://api.github.com/users/nilsnolde/events{/privacy}","received_events_url":"https://api.github.com/users/nilsnolde/received_events","type":"User","site_admin":false},"assignees":[{"login":"nilsnolde","id":25637358,"node_id":"MDQ6VXNlcjI1NjM3MzU4","avatar_url":"https://avatars1.githubusercontent.com/u/25637358?v=4","gravatar_id":"","url":"https://api.github.com/users/nilsnolde","html_url":"https://github.com/nilsnolde","followers_url":"https://api.github.com/users/nilsnolde/followers","following_url":"https://api.github.com/users/nilsnolde/following{/other_user}","gists_url":"https://api.github.com/users/nilsnolde/gists{/gist_id}","starred_url":"https://api.github.com/users/nilsnolde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilsnolde/subscriptions","organizations_url":"https://api.github.com/users/nilsnolde/orgs","repos_url":"https://api.github.com/users/nilsnolde/repos","events_url":"https://api.github.com/users/nilsnolde/events{/privacy}","received_events_url":"https://api.github.com/users/nilsnolde/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-11-23T04:27:38Z","updated_at":"2018-12-03T08:58:16Z","closed_at":"2018-12-03T08:58:16Z","author_association":"NONE","body":"<!-- If you have a question rather than an actual issue, pls use our forum:-->\r\n\r\n<!-- https://ask.openrouteservice.org/c/sdks-->\r\n\r\n#### Here's what I did\r\nI am running QGIS 3.4.1 and have updated and reinstalled the OSMTools plugin. \r\n\r\nI  created a point layer with one object.\r\n\r\nI then ran the tool, set an isochrone range in minutes (in my case 15), and used my layer as the 'Point layer' source.\r\n\r\nOther details: \r\n\r\nThe point layer is in EPSG:2193 (New Zealand Transverse Mercator 2000)\r\n\r\n---\r\n#### Here's what I got\r\nPython error as follows:\r\n\r\n2018-11-23T15:14:56     WARNING    Traceback (most recent call last):\r\n              File \"C:/XXXX/AppData/Roaming/QGIS/QGIS3\\profiles\\default/python/plugins\\OSMtools\\gui\\OSMtoolsDialog.py\", line 103, in run\r\n              iso.isochrones_calc()\r\n              File \"C:/XXXX/AppData/Roaming/QGIS/QGIS3\\profiles\\default/python/plugins\\OSMtools\\core\\isochrones.py\", line 121, in isochrones_calc\r\n              responses.append(self.client.request(self.url, self.params))\r\n              File \"C:/XXXX/AppData/Roaming/QGIS/QGIS3\\profiles\\default/python/plugins\\OSMtools\\core\\client.py\", line 180, in request\r\n              result = self._get_body(response)\r\n              File \"C:/XXXX/AppData/Roaming/QGIS/QGIS3\\profiles\\default/python/plugins\\OSMtools\\core\\client.py\", line 212, in _get_body\r\n              error['message'])\r\n             TypeError: string indices must be integers\r\n\r\nStack trace as follows:\r\n\r\nTypeError: string indices must be integers \r\nTraceback (most recent call last):\r\n  File \"C:/XXXX/AppData/Roaming/QGIS/QGIS3\\profiles\\default/python/plugins\\OSMtools\\gui\\OSMtoolsDialog.py\", line 103, in run\r\n    iso.isochrones_calc()\r\n  File \"C:/XXXX/AppData/Roaming/QGIS/QGIS3\\profiles\\default/python/plugins\\OSMtools\\core\\isochrones.py\", line 121, in isochrones_calc\r\n    responses.append(self.client.request(self.url, self.params))\r\n  File \"C:/XXXX/AppData/Roaming/QGIS/QGIS3\\profiles\\default/python/plugins\\OSMtools\\core\\client.py\", line 180, in request\r\n    result = self._get_body(response)\r\n  File \"C:/XXXX/AppData/Roaming/QGIS/QGIS3\\profiles\\default/python/plugins\\OSMtools\\core\\client.py\", line 212, in _get_body\r\n    error['message'])\r\nTypeError: string indices must be integers\r\n\r\n\r\nPython version: 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] \r\nQGIS version: 3.4.1-Madeira Madeira, 383851c597 \r\n\r\nPython Path:\r\nC:/PROGRA~1/QGIS3~1.4/apps/qgis/./python\r\nC:/XXXX/AppData/Roaming/QGIS/QGIS3\\profiles\\default/python\r\nC:/XXXX/AppData/Roaming/QGIS/QGIS3\\profiles\\default/python/plugins\r\nC:/PROGRA~1/QGIS3~1.4/apps/qgis/./python/plugins\r\nC:\\Program Files\\QGIS 3.4\\bin\\python37.zip\r\nC:\\PROGRA~1\\QGIS3~1.4\\apps\\Python37\\DLLs\r\nC:\\PROGRA~1\\QGIS3~1.4\\apps\\Python37\\lib\r\nC:\\Program Files\\QGIS 3.4\\bin\r\nC:\\PROGRA~1\\QGIS3~1.4\\apps\\Python37\r\nC:\\PROGRA~1\\QGIS3~1.4\\apps\\Python37\\lib\\site-packages\r\nC:\\PROGRA~1\\QGIS3~1.4\\apps\\Python37\\lib\\site-packages\\win32\r\nC:\\PROGRA~1\\QGIS3~1.4\\apps\\Python37\\lib\\site-packages\\win32\\lib\r\nC:\\PROGRA~1\\QGIS3~1.4\\apps\\Python37\\lib\\site-packages\\Pythonwin\r\nC:/XXXX/AppData/Roaming/QGIS/QGIS3\\profiles\\default/python\r\nC:\\XXXX\\AppData\\Roaming\\QGIS\\QGIS3\\profiles\\default\\python\\plugins\\mmqgis/forms\r\nH:/\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/nilsnolde/OSMtools/issues/comments/443635416","html_url":"https://github.com/nilsnolde/OSMtools/issues/77#issuecomment-443635416","issue_url":"https://api.github.com/repos/nilsnolde/OSMtools/issues/77","id":443635416,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzYzNTQxNg==","user":{"login":"nilsnolde","id":25637358,"node_id":"MDQ6VXNlcjI1NjM3MzU4","avatar_url":"https://avatars1.githubusercontent.com/u/25637358?v=4","gravatar_id":"","url":"https://api.github.com/users/nilsnolde","html_url":"https://github.com/nilsnolde","followers_url":"https://api.github.com/users/nilsnolde/followers","following_url":"https://api.github.com/users/nilsnolde/following{/other_user}","gists_url":"https://api.github.com/users/nilsnolde/gists{/gist_id}","starred_url":"https://api.github.com/users/nilsnolde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilsnolde/subscriptions","organizations_url":"https://api.github.com/users/nilsnolde/orgs","repos_url":"https://api.github.com/users/nilsnolde/repos","events_url":"https://api.github.com/users/nilsnolde/events{/privacy}","received_events_url":"https://api.github.com/users/nilsnolde/received_events","type":"User","site_admin":false},"created_at":"2018-12-03T08:58:16Z","updated_at":"2018-12-03T08:58:16Z","author_association":"OWNER","body":"Yep. You only have to paste the full URL in the browser and you'll get an answer. Unfortunately, the error message is a little cryptic atm. We'll fix that.\r\n\r\nBut yes, that's your token being invalid for some reason. Good that you were able to fix that:)\r\n\r\nAnyways, the plugin shouldn't crash. The lovely backenders keep shuffling around error codes and it's hard to keep up (actually impossible, they wouldn't say anything when they do change them). So, thanks for the pointer, a fix is on the way."}}
{"actor":{"display_login":"nilsnolde"}}