sammachin / alexaweb Goto Github PK
View Code? Open in Web Editor NEWAlexa in the Browser
License: MIT License
Alexa in the Browser
License: MIT License
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!
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
Can We edit it by passing Clientid and client_secret in code instead getting logged for user every time . Please confirm me about this
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.
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.
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:5000Allowed 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 -
Security_Profile_Description ="tangowhisky37web"
Security_Profile_ID = "xxx"
Client_ID = "xxxx"
Client_Secret = "xxx"
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.
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"'}
Would be great to have alexa on the go!
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.
Hi,
Do you maybe know how to switch your demo to German Alexa?
Anyhow,
thanks a lot for this one!
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)
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)
I there any files available to implement it in Javascript or jquey and how can i implement it on my side
when i click 'Allow' to sign in my Security Profile, it shows localhost ERR_TIMED_OUT,
someone knows why???
thanks:)
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.
can we please have this in js format so that it is accessible for all
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?
https://alexaweb.herokuapp.com
says: error capturing audio!!
I see that this is deployed via git. So the aws credentials should be in the git history? Can you explain the security concerns?
It takes some more time for processing .
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!
Hi...
You don't tell what should we put in the redis_url in the creds.py
I've try http://localhost and http://localhost:6379 but this not working.
when I'm tryin to connect I've an error after the amazon login.
ps:I don't use heroku but a vm with debian jessie.
after login its give 500: Internal Server Error
can you please suggest me how can i fix this issue
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.