{"action":"created","issue":{"url":"https://api.github.com/repos/iotile/iotile_analytics/issues/50","repository_url":"https://api.github.com/repos/iotile/iotile_analytics","labels_url":"https://api.github.com/repos/iotile/iotile_analytics/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/iotile/iotile_analytics/issues/50/comments","events_url":"https://api.github.com/repos/iotile/iotile_analytics/issues/50/events","html_url":"https://github.com/iotile/iotile_analytics/issues/50","id":320073381,"number":50,"title":"415 error: Unsupported Media Type","user":{"login":"dkarchmer","id":3330496,"avatar_url":"https://avatars3.githubusercontent.com/u/3330496?v=4","gravatar_id":"","url":"https://api.github.com/users/dkarchmer","html_url":"https://github.com/dkarchmer","followers_url":"https://api.github.com/users/dkarchmer/followers","following_url":"https://api.github.com/users/dkarchmer/following{/other_user}","gists_url":"https://api.github.com/users/dkarchmer/gists{/gist_id}","starred_url":"https://api.github.com/users/dkarchmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkarchmer/subscriptions","organizations_url":"https://api.github.com/users/dkarchmer/orgs","repos_url":"https://api.github.com/users/dkarchmer/repos","events_url":"https://api.github.com/users/dkarchmer/events{/privacy}","received_events_url":"https://api.github.com/users/dkarchmer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-03T20:44:12Z","updated_at":"2018-05-03T20:55:21Z","closed_at":null,"author_association":"OWNER","body":"Try\r\n```\r\nanalytics-host -t stream_overview b--0008-0000-0000-053a -a stream=temp -c -o temperature -a units=Celsius -w --web-push-label=test1 -u david@karchmer.com\r\n```\r\n\r\nand get\r\n\r\n```\r\nRendered report to: temperature.html                                                                                                                                                                  \r\nUploading report to iotile.cloud server\r\nTraceback (most recent call last):                                                                                                                                                                    \r\n  File \"/Users/david/.virtualenv/analytics-runner/bin/analytics-host\", line 11, in <module>\r\n    sys.exit(cmdline_main())\r\n  File \"/Users/david/.virtualenv/analytics-runner/lib/python3.6/site-packages/iotile_analytics/interactive/scripts/analytics_host.py\", line 425, in cmdline_main\r\n    retval = main(argv)\r\n  File \"/Users/david/.virtualenv/analytics-runner/lib/python3.6/site-packages/iotile_analytics/interactive/scripts/analytics_host.py\", line 416, in main\r\n    upload_report(args.domain, rendered_paths, label=args.web_push_label, group=group, slug=args.web_push_slug)\r\n  File \"/Users/david/.virtualenv/analytics-runner/lib/python3.6/site-packages/iotile_analytics/interactive/scripts/analytics_host.py\", line 180, in upload_report\r\n    uploader.upload_report(label, files, group=group, slug=slug)\r\n  File \"/Users/david/.virtualenv/analytics-runner/lib/python3.6/site-packages/iotile_analytics/interactive/reports/cloud_uploader.py\", line 69, in upload_report\r\n    urls, fields = self._get_signed_urls(report_id, keys)\r\n  File \"/Users/david/.virtualenv/analytics-runner/lib/python3.6/site-packages/iotile_analytics/interactive/reports/cloud_uploader.py\", line 125, in _get_signed_urls\r\n    resp_list = self._session.post_multiple(urls, payloads, message=\"Getting file upload authorization\", include_auth=True)\r\n  File \"/Users/david/.virtualenv/analytics-runner/lib/python3.6/site-packages/iotile_analytics/core/session.py\", line 295, in post_multiple\r\n    raise failed[0]\r\n  File \"/Users/david/.virtualenv/analytics-runner/lib/python3.6/site-packages/iotile_analytics/core/session.py\", line 411, in _generic_url_poster\r\n    resp = urlopen(req)\r\n  File \"/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py\", line 223, in urlopen\r\n    return opener.open(url, data, timeout)\r\n  File \"/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py\", line 532, in open\r\n    response = meth(req, response)\r\n  File \"/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py\", line 642, in http_response\r\n    'http', request, response, code, msg, hdrs)\r\n  File \"/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py\", line 570, in error\r\n    return self._call_chain(*args)\r\n  File \"/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py\", line 504, in _call_chain\r\n    result = func(*args)\r\n  File \"/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py\", line 650, in http_error_default\r\n    raise HTTPError(req.full_url, code, msg, hdrs, fp)\r\nurllib.error.HTTPError: HTTP Error 415: Unsupported Media Type\r\n```\r\n\r\nGuessing is another Python3 encoding issue"},"comment":{"url":"https://api.github.com/repos/iotile/iotile_analytics/issues/comments/386433749","html_url":"https://github.com/iotile/iotile_analytics/issues/50#issuecomment-386433749","issue_url":"https://api.github.com/repos/iotile/iotile_analytics/issues/50","id":386433749,"user":{"login":"dkarchmer","id":3330496,"avatar_url":"https://avatars3.githubusercontent.com/u/3330496?v=4","gravatar_id":"","url":"https://api.github.com/users/dkarchmer","html_url":"https://github.com/dkarchmer","followers_url":"https://api.github.com/users/dkarchmer/followers","following_url":"https://api.github.com/users/dkarchmer/following{/other_user}","gists_url":"https://api.github.com/users/dkarchmer/gists{/gist_id}","starred_url":"https://api.github.com/users/dkarchmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkarchmer/subscriptions","organizations_url":"https://api.github.com/users/dkarchmer/orgs","repos_url":"https://api.github.com/users/dkarchmer/repos","events_url":"https://api.github.com/users/dkarchmer/events{/privacy}","received_events_url":"https://api.github.com/users/dkarchmer/received_events","type":"User","site_admin":false},"created_at":"2018-05-03T20:55:21Z","updated_at":"2018-05-03T20:55:21Z","author_association":"OWNER","body":"Need to do a little work to be able to test on my local server, at which time, I will be able to say what the server got"}}
{"actor":{"display_login":"dkarchmer"}}