question

Sainath avatar image
Sainath asked

Error after completing authentication process

Hi Amazon DRS Team, I am getting this error after completing authentication process, My redirect URL is http://localhost%3A3000%2Fauth%2Famazon%2Fcallback.

capture.png

dash replenishment service
capture.png (42.7 KiB)
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Mohamed Hassan avatar image
Mohamed Hassan answered

I believe you can't use local host as a redirect URL

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sainath avatar image
Sainath answered

img-20161214-154528.jpg

Hi Hassan , Thanks for reply , I have referred from mentioned snap ,

Could suggest another way to get solve i.e I want to get authorisation code from redirect URL


10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Mohamed Hassan avatar image
Mohamed Hassan answered

I mean you need to host your page on server to have URL that DRS can return token to it. DRS can't now what is your local host is. for example you can host this page on any blog if your code is javascript only.

1 comment
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hi Mohammed , Amazon can redirect localhost , even recognizes private IP in LAN , I have implemented page on server in LAN and successfully replenish products

Check out here https://www.hackster.io/sainath-komakula/smart-vendy-cd197e

0 Likes 0 ·
ravi-butani avatar image
ravi-butani answered

have a look at product registration webpage part of my project... I have used Java Script with my blog for LWA...

https://www.hackster.io/ravi-butani/drs-for-sanitization-needs-of-baby-25b391?ref=challenge&ref_id=78&offset=3

4 comments
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hi ravi-butani, thanks for sharing your projects with the developer community, greatly appreciated!

0 Likes 0 ·

thanks... Is there a way to write article at this forum..? So I can share more Amazon DRS projects.. Two completed and many are about to complete..

0 Likes 0 ·

Thanks Ravi, we haven't done that before, and I am trying to find out how to best approach it, however in the meantime please feel free to post your article(s) here on this forum. Thank you again for sharing your knowledge!

0 Likes 0 ·

hii Levon..

We have published few of our Amazon DRS projects on our university Hackster Page..

https://www.hackster.io/marwadi-university-maker-lab

More projects are coming soon..

Thanks,

Ravi

1 Like 1 ·