{"action":"created","issue":{"url":"https://api.github.com/repos/stevenleeg/geemusic/issues/93","repository_url":"https://api.github.com/repos/stevenleeg/geemusic","labels_url":"https://api.github.com/repos/stevenleeg/geemusic/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/stevenleeg/geemusic/issues/93/comments","events_url":"https://api.github.com/repos/stevenleeg/geemusic/issues/93/events","html_url":"https://github.com/stevenleeg/geemusic/issues/93","id":225480263,"number":93,"title":"Streaming does not work with Foreman/ngrok","user":{"login":"quantumf","id":1733026,"avatar_url":"https://avatars3.githubusercontent.com/u/1733026?v=4","gravatar_id":"","url":"https://api.github.com/users/quantumf","html_url":"https://github.com/quantumf","followers_url":"https://api.github.com/users/quantumf/followers","following_url":"https://api.github.com/users/quantumf/following{/other_user}","gists_url":"https://api.github.com/users/quantumf/gists{/gist_id}","starred_url":"https://api.github.com/users/quantumf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quantumf/subscriptions","organizations_url":"https://api.github.com/users/quantumf/orgs","repos_url":"https://api.github.com/users/quantumf/repos","events_url":"https://api.github.com/users/quantumf/events{/privacy}","received_events_url":"https://api.github.com/users/quantumf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-05-01T17:38:27Z","updated_at":"2017-08-02T23:57:52Z","closed_at":null,"body":"I'm trying to follow the instructions precisely as per the readme. I've set up foreman and ngrok. Everything seems to be fine, but nothing streams to the echo. \r\n\r\nMy .env:\r\n\r\n```bash\r\nGOOGLE_EMAIL=chris.welsh@gmail.com\r\nGOOGLE_PASSWORD=<pw>\r\n\r\nAPP_URL=https://<ngrok-code>.ngrok.io\r\n```\r\n\r\nMy Foreman output:\r\n\r\n```bash\r\n19:17:59 web.1  | 127.0.0.1 - - [01/May/2017 19:17:59] \"POST /alexa HTTP/1.1\" 200 -\r\n19:18:03 web.1  | --------------------------------------------------------------------------------\r\n19:18:03 web.1  | DEBUG in controllers [/Users/chrwelsh/src/private/geemusic/geemusic/controllers.py:20]:\r\n19:18:03 web.1  | URL is https://r1---sn-uxa3vh-j2ul.c.doc-0-0-sj.sj.googleusercontent.com/videoplayback?id=<bla></bla>mv=m&pl=17\r\n19:18:03 web.1  | --------------------------------------------------------------------------------\r\n19:18:13 web.1  | 127.0.0.1 - - [01/May/2017 19:18:13] \"GET /alexa/stream/Tgarv4vwobsxyxtsott6p4qok5q HTTP/1.1\" 200 -\r\n19:18:31 web.1  | 127.0.0.1 - - [01/May/2017 19:18:31] \"POST /alexa HTTP/1.1\" 400 -\r\n```\r\n\r\nThe r1 url works fine if I paste it into my browser.\r\n\r\nThere were no errors when I ran \"pip3 install -r requirements.txt\".\r\n\r\nI've seen lots of issues here about ssl certificates, but was under the impression that ngrok was still supposed to work."},"comment":{"url":"https://api.github.com/repos/stevenleeg/geemusic/issues/comments/319830368","html_url":"https://github.com/stevenleeg/geemusic/issues/93#issuecomment-319830368","issue_url":"https://api.github.com/repos/stevenleeg/geemusic/issues/93","id":319830368,"user":{"login":"llewmihs","id":10365838,"avatar_url":"https://avatars2.githubusercontent.com/u/10365838?v=4","gravatar_id":"","url":"https://api.github.com/users/llewmihs","html_url":"https://github.com/llewmihs","followers_url":"https://api.github.com/users/llewmihs/followers","following_url":"https://api.github.com/users/llewmihs/following{/other_user}","gists_url":"https://api.github.com/users/llewmihs/gists{/gist_id}","starred_url":"https://api.github.com/users/llewmihs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llewmihs/subscriptions","organizations_url":"https://api.github.com/users/llewmihs/orgs","repos_url":"https://api.github.com/users/llewmihs/repos","events_url":"https://api.github.com/users/llewmihs/events{/privacy}","received_events_url":"https://api.github.com/users/llewmihs/received_events","type":"User","site_admin":false},"created_at":"2017-08-02T23:57:52Z","updated_at":"2017-08-02T23:57:52Z","body":"I was having a similar issue with my Pi3 setup. Alexa understood my request and thought it was playing, but i would get the following:\r\n`POST /alexa                                    400 BAD REQUEST`                  \r\n`GET  /alexa/stream/T2mg25e7ntiubsoslhg3nr63624 440 BAD REQUEST `\r\n\r\nMy solution to the problem was as follows:\r\nIn the .env file i had beed including `/alexa` at the end of the APPURL. This seemed like what I was supposed to do according to the README.\r\nAfter reading a few issues, I noticed that someone had removed the `/alexa` in their setup. I did the same and all problems were solved.\r\nTo clarify - \r\nAlexa skill has /alexa on the end of the APP_URL, but the `.env.` file does not.\r\nI hope this helps."}}
{"actor":{"display_login":"llewmihs"}}