Comments (13)
If you have everything else right, try replacing every "self.request.protocol" with "https." Heroku's routing can be weird otherwise. Then just make sure you have the appropriate URL in your whitelist for AVS.
from alexaweb.
Thanks I will give that a shot.
from alexaweb.
Made the changes to self.request.protocol to "https" but it doesn't seem to change when I deploy to heroku as a fresh app.
When I input the "s" into the wrong url it brings up Amazon login screen but then doesn't redirect out of amazon.
from alexaweb.
I confirmed that the changes are not being made when trying to publish app changes to heroku.
from alexaweb.
Is it usually the case to run http by default? I notice the examples say localhost:5000 should be https, amazon isn't allowing entering whitelist urls without https.
from alexaweb.
I appreciate the help,got passed the https issue once I found how to update the heroku app. As sugested adjusting the self.request.protocol.
Still getting the error once the amazon user logs lin. Clicking ok when in https://www.amazon.com/ap/oa, stays and doesn't redirect as specified in the beginning. Any ideas where that is coming from is appreciated.
from alexaweb.
I am getting the same issue when forking and setting up the heroku app (on heroku.com) after selecting the allow screen after logging in.
Any thoughts?
from alexaweb.
Hey idavalos, i worked out my issue (could be yours too)
I had deployed redis, but had not set the redis URL in the ceds.py file
Also, I had not update the ProductID in the app.py (this needs to be the name of your AWS app)
Hope this helps
from alexaweb.
Hello blackshroud, thanks a ton for the suggestion.
I had the redis correct I think.
Made the ProductID update in app.py and that did the trick using the Application Type Id.
from alexaweb.
Glad I could help ;)
Hey idavalos, I am having the same redirect issue you were, can you clarify where you updated the "self.request.protocol" and what you changed it to?
from alexaweb.
Changed code in app.py in two places
path = self.request.protocol + "://" + self.request.host
changed to
path = "https" + "://" + self.requested.host
However making the changes required updating the heroku app.
Ran the following on the linux server after making the changes.
sudo git add .
sudo git commit -am "make it bettter"
sudo git push heroku master
Hope that helps.
from alexaweb.
Thanks mate, that solved my issue.
Think issue I think can resolved, yeah idavalos?
from alexaweb.
Yes this issue can be closed as solved.
from alexaweb.
Related Issues (20)
- please let me know how can i implement it on my side
- Is anybody available to handle this repository HOT 1
- Can you port this for mobile browsers? Safari, Chrome for iOS/Android HOT 1
- Sending Multipart Body to APIs
- Local instance of Alexa Web HOT 7
- redis URL HOT 1
- Running in Heroku HOT 3
- Change locale HOT 1
- Audio capturing issue HOT 1
- Error Posting Audio to /audio HOT 1
- German language
- localhost ERR_TIMED_OUT
- After login give 500: Internal Server Error HOT 1
- Error 400
- Python Version Error
- permission deny when AudioSegment.from_wav(tempfile)
- Documentation To Use Demo Needed HOT 1
- Can We Anyway Decrease Response Time of Speaking HOT 1
- How To Implement it Without Getting Logged in HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alexaweb.