Giter Site home page Giter Site logo

alexaweb's People

Contributors

jacobajit avatar limhenry avatar sammachin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alexaweb's Issues

Amazon login failing

Hi, I got everything set up locally on an ubuntu lts and updated creds but when trying to log in from the login link (below the circle on the web page) I get to a page where Amazon asked me if it's Okay to authorize but when I click Ok I get this error page:

We're sorry!
An error occurred when we tried to process your request. Rest assured, we're already working on the problem and expect to resolve it shortly.
Go to Amazon.com's Home Page

The URL of the error page looks like the token is being returned (deleted the token):
https://www.amazon.com/ap/oa?appActionToken=...extremely_long_string_deleted...&language=en_US&consentApproved=

I followed all of the instructions, what am I doing wrong?
(BTW, the AlexaPi version worked fine and was able to retrieve and store the refresh token)

Error 400

We're sorry!
An error occurred when we tried to process your request. Rest assured, we're already working on the problem and expect to resolve it shortly.

Hide Details
Error Summary
400 Bad Request
The redirect URI you provided has not been whitelisted for your application. Please add your redirect URI in the 'Allowed Return URLs' section under 'Web Settings' for your Security Profile on Amazon Developer Portal.
Request Details
scope_data=%7B%22alexa%3Aall%22%3A+%7B%22productInstanceAttributes%22%3A+%7B%22deviceSerialNumber%22%3A+%221%22%7D%2C+%22productID%22%3A+%22HerokuforApp%22%7D%7D
scope=alexa%3Aall
response_type=code
client_id=amzn1.application-oa2-client.xxxxxxxxxxxx
redirect_uri=http%3A%2F%2Fwebappalexa.herokuapp.com%2Fcode

Why is this happening even though I have added the endpoint uri? (https://webappalexa.herokuapp.com)

German language

Hi,
Do you maybe know how to switch your demo to German Alexa?

Anyhow,
thanks a lot for this one!

Local instance of Alexa Web

Sam,

Thanks a ton for putting this together. The last few days I've been playing around with the Alex Java client and finally happened to stumble onto your web client.

I am trying to deploy the web client on my RasPi but i can't seem to get it to work. The Raspi is hosted at 192.168.1.13 and I've added the following URLs to the device configuration.

Allowed Origins
Your website origin, when using Login with Amazon.
http://localhost:5000
http://192.168.1.13:5000

Allowed Return URLs
If you make HTTPs calls to Login with Amazon with redirect_uris, specify them here.
http://localhost:5000/code
http://192.168.1.13:5000/code

I've also installed Redis on the RasPI and configured credspi as -

Alexa

Security_Profile_Description ="tangowhisky37web"
Security_Profile_ID = "xxx"
Client_ID = "xxxx"
Client_Secret = "xxx"

Redis

redis_url = "127.0.0.1:6379"

I get to the screen where I am asked by Amazon if i want to authorize my device and I say yes. On the next page I see an error -

"We're sorry! An error occurred when we tried to process your request. Rest assured, we're already working on the problem and expect to resolve it shortly.
Go to Amazon.com's Home Page"

I can't get any debug messages to show up on the code either. I wish I had better Python skills but as you've guessed I don't. Am trying to work out where the code is falling over and what is it that I might have over looked.

Any pointers would be appreciated Sam.

Change locale

Feature Request:
I started playing around with the Alexa API recently now that Echo and Dot are announced for Germany and the UK. As I'm debugging a multi language Alexa Skills, it would be extremely cool if there would be a way to switch language on the webpage.

localhost ERR_TIMED_OUT

when i click 'Allow' to sign in my Security Profile, it shows localhost ERR_TIMED_OUT,
someone knows why???
thanks:)

Running in Heroku

Anyone have any experience with running this in Heroku? I cannot seem to get around the 400 Bad Request issue.

screen shot 2016-06-22 at 11 15 04 am

App is currently running here, but I don't seem to be able to get the redirects work. Are there issues with the end-points being HTTPS based as opposed to HTTP?

Documentation To Use Demo Needed

Hi , I want to know how can i use it i opened the demo link you provided but circle shows colors what does that means how can i use it . I asked for my microphone access but didn't catch anything

redis URL

SO, there is a section in creds for "redis URL"...

I have redis installed on my heoku app as a resource....but what URL do I put in that item?

Python Version Error

I discovered this error while trying this out. The fix is in my forked repository. You need to add a file called "runtime.txt" with python version information. Check my fork out!

Response not playing back

I seem to have gotten it to a point where I can speak a question and there's a response coming back from amazon but the circle color remains green and I don't hear anything.
Here's the header of the response back from Amazon:
{'x-amzn-requestid': '7ec24100-c530-11e5-8418-bb38a9b1baf4', 'content-encoding': 'gzip', 'transfer-encoding': 'chunked', 'vary': 'Accept-Encoding,User-Agent', 'server': 'Server', 'connection': 'keep-alive', 'date': 'Wed, 27 Jan 2016 19:59:40 GMT', 'content-type': 'multipart/related; boundary=e10a23ee-cc0f-47d1-b41f-852cda67da38; start=metadata.1453924780183; type="application/json"'}

Sending Multipart Body to APIs

Any information, examples or directions on how to create a multipart body?
On the code comments of hype i found body its about a file-like object or bytestring

        v2_url = 'service.example.api.com'
        conn = HTTP20Connection(v2_url)
        conn.request('POST', '/events', headers=headers, body='NOTHING_HERE_YET')
        resp = conn.get_response()
        return resp.read()

Im getting this error exception when accessing a external api that expects a multipart body.

{"code":"INVALID_REQUEST_EXCEPTION","description":"No multipart body found in the payload."}

Any help, links to samples or hint would be appreciated.

Error on line app.py line 75

Missing a slash "/" that makes you to have an internal error 500 (because the return path isn't correct)

It should be:

callback = path+"/code"

Best regards!

Error Posting Audio to /audio

I am trying to run your app locally and I am receiving a 404 error when trying to post my audio to the /audio directory that does not exist. I believe I read somewhere in your blog that you have a server side javascript that processes the audio. Am I receiving this error because I am missing that file and/or directory?

I am receiving the error on line 107 of the record.js file. Any help would greatly appreciated.
Thank you in advance.

Redirect URI

Using the clone method, deployed alexa web to a heroku. It comes up but when attempting to login through amazon I get a redirect error and the url doesn't appear to be https. I am new to heroku so I can certainly be missing something.

Thanks for the great scripts.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.