{"action":"created","issue":{"url":"https://api.github.com/repos/robinske/wthik/issues/1","repository_url":"https://api.github.com/repos/robinske/wthik","labels_url":"https://api.github.com/repos/robinske/wthik/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/robinske/wthik/issues/1/comments","events_url":"https://api.github.com/repos/robinske/wthik/issues/1/events","html_url":"https://github.com/robinske/wthik/issues/1","id":331756970,"node_id":"MDU6SXNzdWUzMzE3NTY5NzA=","number":1,"title":"\"No key could be detected\" error","user":{"login":"mattstratton","id":1280666,"node_id":"MDQ6VXNlcjEyODA2NjY=","avatar_url":"https://avatars1.githubusercontent.com/u/1280666?v=4","gravatar_id":"","url":"https://api.github.com/users/mattstratton","html_url":"https://github.com/mattstratton","followers_url":"https://api.github.com/users/mattstratton/followers","following_url":"https://api.github.com/users/mattstratton/following{/other_user}","gists_url":"https://api.github.com/users/mattstratton/gists{/gist_id}","starred_url":"https://api.github.com/users/mattstratton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattstratton/subscriptions","organizations_url":"https://api.github.com/users/mattstratton/orgs","repos_url":"https://api.github.com/users/mattstratton/repos","events_url":"https://api.github.com/users/mattstratton/events{/privacy}","received_events_url":"https://api.github.com/users/mattstratton/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-06-12T21:17:17Z","updated_at":"2018-06-12T22:12:27Z","closed_at":"2018-06-12T22:12:27Z","author_association":"NONE","body":"First of all, yay for an awesome tool :)\r\n\r\nI've attempted to shove everything into heroku config vars, but when I hit the endpoint from Twilio, I get the error:\r\n```\r\n2018-06-12T21:12:11.748893+00:00 app[web.1]: [2018-06-12 21:12:11,745] ERROR in app: Exception on /sms [POST]\r\n2018-06-12T21:12:11.748920+00:00 app[web.1]: Traceback (most recent call last):\r\n2018-06-12T21:12:11.748923+00:00 app[web.1]: File \"/app/.heroku/python/lib/python3.6/site-packages/flask/app.py\", line 2292, in wsgi_app\r\n2018-06-12T21:12:11.748925+00:00 app[web.1]: response = self.full_dispatch_request()\r\n2018-06-12T21:12:11.748928+00:00 app[web.1]: File \"/app/.heroku/python/lib/python3.6/site-packages/flask/app.py\", line 1815, in full_dispatch_request\r\n2018-06-12T21:12:11.748930+00:00 app[web.1]: rv = self.handle_user_exception(e)\r\n2018-06-12T21:12:11.748931+00:00 app[web.1]: File \"/app/.heroku/python/lib/python3.6/site-packages/flask/app.py\", line 1718, in handle_user_exception\r\n2018-06-12T21:12:11.748933+00:00 app[web.1]: reraise(exc_type, exc_value, tb)\r\n2018-06-12T21:12:11.748935+00:00 app[web.1]: File \"/app/.heroku/python/lib/python3.6/site-packages/flask/_compat.py\", line 35, in reraise\r\n2018-06-12T21:12:11.748938+00:00 app[web.1]: raise value\r\n2018-06-12T21:12:11.748940+00:00 app[web.1]: File \"/app/.heroku/python/lib/python3.6/site-packages/flask/app.py\", line 1813, in full_dispatch_request\r\n2018-06-12T21:12:11.748942+00:00 app[web.1]: rv = self.dispatch_request()\r\n2018-06-12T21:12:11.748944+00:00 app[web.1]: File \"/app/.heroku/python/lib/python3.6/site-packages/flask/app.py\", line 1799, in dispatch_request\r\n2018-06-12T21:12:11.748946+00:00 app[web.1]: return self.view_functions[rule.endpoint](**req.view_args)\r\n2018-06-12T21:12:11.748948+00:00 app[web.1]: File \"/app/wthik.py\", line 145, in main\r\n2018-06-12T21:12:11.748950+00:00 app[web.1]: credentials = _get_credentials()\r\n2018-06-12T21:12:11.748952+00:00 app[web.1]: File \"/app/wthik.py\", line 27, in _get_credentials\r\n2018-06-12T21:12:11.748954+00:00 app[web.1]: subject=app.config.get(\"SUBJECT\"))\r\n2018-06-12T21:12:11.748957+00:00 app[web.1]: File \"/app/.heroku/python/lib/python3.6/site-packages/google/oauth2/service_account.py\", line 193, in from_service_account_info\r\n2018-06-12T21:12:11.748958+00:00 app[web.1]: info, require=['client_email', 'token_uri'])\r\n2018-06-12T21:12:11.748961+00:00 app[web.1]: File \"/app/.heroku/python/lib/python3.6/site-packages/google/auth/_service_account_info.py\", line 54, in from_dict\r\n2018-06-12T21:12:11.748963+00:00 app[web.1]: signer = crypt.RSASigner.from_service_account_info(data)\r\n2018-06-12T21:12:11.748965+00:00 app[web.1]: File \"/app/.heroku/python/lib/python3.6/site-packages/google/auth/crypt/base.py\", line 115, in from_service_account_info\r\n2018-06-12T21:12:11.748967+00:00 app[web.1]: info.get(_JSON_FILE_PRIVATE_KEY_ID))\r\n2018-06-12T21:12:11.748968+00:00 app[web.1]: File \"/app/.heroku/python/lib/python3.6/site-packages/google/auth/crypt/_python_rsa.py\", line 174, in from_string\r\n2018-06-12T21:12:11.748981+00:00 app[web.1]: ValueError: No key could be detected.\r\n2018-06-12T21:12:11.748970+00:00 app[web.1]: raise ValueError('No key could be detected.')\r\n```\r\n\r\nI've attached a screenshot of my config vars (with data redacted)\r\n\r\n![image](https://user-images.githubusercontent.com/1280666/41317848-42bd0dd6-6e4b-11e8-9bea-538eac52f0f9.png)\r\n\r\nI've tried putting the private key in quotes and not in quotes, and it doesn't seem to matter."},"comment":{"url":"https://api.github.com/repos/robinske/wthik/issues/comments/396751320","html_url":"https://github.com/robinske/wthik/issues/1#issuecomment-396751320","issue_url":"https://api.github.com/repos/robinske/wthik/issues/1","id":396751320,"node_id":"MDEyOklzc3VlQ29tbWVudDM5Njc1MTMyMA==","user":{"login":"mattstratton","id":1280666,"node_id":"MDQ6VXNlcjEyODA2NjY=","avatar_url":"https://avatars1.githubusercontent.com/u/1280666?v=4","gravatar_id":"","url":"https://api.github.com/users/mattstratton","html_url":"https://github.com/mattstratton","followers_url":"https://api.github.com/users/mattstratton/followers","following_url":"https://api.github.com/users/mattstratton/following{/other_user}","gists_url":"https://api.github.com/users/mattstratton/gists{/gist_id}","starred_url":"https://api.github.com/users/mattstratton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattstratton/subscriptions","organizations_url":"https://api.github.com/users/mattstratton/orgs","repos_url":"https://api.github.com/users/mattstratton/repos","events_url":"https://api.github.com/users/mattstratton/events{/privacy}","received_events_url":"https://api.github.com/users/mattstratton/received_events","type":"User","site_admin":false},"created_at":"2018-06-12T22:12:27Z","updated_at":"2018-06-12T22:12:27Z","author_association":"NONE","body":"Aha! I merged those changes into my fork, and now it works like a delight!"}}
{"actor":{"display_login":"mattstratton"}}