gravesjohnr / AlexaNotificationCurl

Some curl scripts to allow interfacing with Alexa using text as input.
119 stars 34 forks source link

Keyerror with access and refresh tokens #6

Closed Nathan1123 closed 7 years ago

Nathan1123 commented 7 years ago

Hi, I got to the point of running "auth_token.sh" and I consistently get this error:

File "<string>", line 1, in <module>
KeyError: 'auth_token'

Playing around with the code, I find that the request for the refresh token is giving the exact same error.
When I try running "alexa.sh" anyway, I get this error: play FAIL formats: no handler for given file typemp3'` I'm not sure what the problem is. Has Amazon changed their security system, so this type of request is no longer valid? Or could there be something wrong with the version of curl I'm using? Thanks, Nathan

Nathan1123 commented 7 years ago

Solved it myself. Did not include the serial number in the "auth_code.sh" script. I don't think the README file mentions having to use the serial number anywhere.

gravesjohnr commented 7 years ago

Nathan,

I'm glad this is sorted. If you think the doco can be improved, please update it.

Thanks.

-John


From: Nathan1123 Sent: Thursday, May 18, 2017 8:36AM To: Gravesjohnr/alexanotificationcurl Cc: Subscribed Subject: Re: [gravesjohnr/AlexaNotificationCurl] Keyerror with access and refresh tokens (#6)

Solved it myself. Did not include the serial number in the "auth_code.sh" script. I don't think the README file mentions having to use the serial number anywhere.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_gravesjohnr_AlexaNotificationCurl_issues_6-23issuecomment-2D302250672&d=DwMFaQ&c=RoP1YumCXCgaWHvlZYR8PQcxBKCX5YTpkKY057SbK10&r=MFgxPaDwyaQor0xHsV4pdBgb2c8w0X46eQubSO-HaQ0&m=knUU1JdF5ZGEjcNUxgrEVKPPoVVjdfI-ttRvE3rr4WQ&s=SGiGu_LvfDhxoLjOmimGpcV2OsEvL1b0-ozpJ6dxL7U&e=, or mute the thread https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_ANCZvTX9M3F19xKOObQ2QjnIeEzbpoKjks5r63ZmgaJpZM4NdUfn&d=DwMFaQ&c=RoP1YumCXCgaWHvlZYR8PQcxBKCX5YTpkKY057SbK10&r=MFgxPaDwyaQor0xHsV4pdBgb2c8w0X46eQubSO-HaQ0&m=knUU1JdF5ZGEjcNUxgrEVKPPoVVjdfI-ttRvE3rr4WQ&s=LTXyXwKq3uhi9tLy59ngj-B2Cdk1gHuyNO-xzKCdjOU&e=.