Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not getting a refresh token #6

Open
Gariantroll opened this issue Nov 9, 2017 · 4 comments
Open

Not getting a refresh token #6

Gariantroll opened this issue Nov 9, 2017 · 4 comments

Comments

@Gariantroll
Copy link

Gariantroll commented Nov 9, 2017

I am not receiving a refresh token. I am getting this error in the terminal.

Initializing DRS... connecting to WiFi
.
Connected to 360i_Guest
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................processing Refresh token response
HTTP/1.1 400 Bad Request
Server: Server
Date: Thu, 09 Nov 2017 00:51:33 GMT
Content-Type: application/json
Content-Length: 97
Connection: keep-alive
x-amzn-RequestId: 21ad94f8-c4e8-11e7-bc39-9383a26ad364
X-Amz-Date: Thu, 09 Nov 2017 00:51:33 GMT
x-amzn-ErrorType: OA2InvalidGrantException:http://internal.amazon.com/coral/com.amazon.panda/
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
Vary: Accept-Encoding,User-Agent

{"error_description":"The request has an invalid grant parameter : code","error":"invalid_grant"}

Tokens updated!
processing Refresh token response
HTTP/1.1 400 Bad Request
Server: Server
Date: Thu, 09 Nov 2017 00:51:37 GMT
Content-Type: application/json
Content-Length: 109
Connection: keep-alive
x-amzn-RequestId: 24518b9c-c4e8-11e7-a681-8b01537511ee
X-Amz-Date: Thu, 09 Nov 2017 00:51:37 GMT
x-amzn-ErrorType: OA2InvalidRequestException:http://internal.amazon.com/coral/com.amazon.panda/
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
Vary: Accept-Encoding,User-Agent

{"error_description":"The request is missing a required parameter : refresh_token","error":"invalid_request"}

Tokens updated!
Updating subscription info for all slots!
HTTP/1.1 400 Bad Request
Server: Server
Date: Thu, 09 Nov 2017 00:51:39 GMT
Content-Type: application/json
Content-Length: 28
Connection: close
x-amzn-RequestId: 25329c3f-c4e8-11e7-8776-d142e7655e9b
x-amzn-ErrorType: InvalidTokenException:http://internal.amazon.com/coral/com.amazon.parkeraccioservice/
Vary: Accept-Encoding,User-Agent

{"message":"Invalid token!"}parseObject() failed
Copy everything below...

I could use some help.

@Gariantroll
Copy link
Author

Hey, I solved the issue. This is awesome tech.

@briancarbs
Copy link
Contributor

Hey @Gariantroll, glad you were able to solve the issue, and thanks! Any chance you could comment what you did to fix? Just for anyone who might stumble upon this thread and has a similar issue it could be helpful.

@Gariantroll
Copy link
Author

Gariantroll commented Dec 6, 2017 via email

@briancarbs
Copy link
Contributor

Hey Alexis, last I checked (nearly a year ago) Amazon's DRS API doesn't support multiple successive orders. In order to use the same button you need to wait until the order has shippied (or the demo order times out). Immediate successive button pushes will just receive an "Order in progress" response.

--Brian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants