Closed norberttech closed 2 years ago
I'm getting the same error as well. I am also using &version=beta.
Hello @norberttech
Thank you for raising this issue.
Can you share the OAuth authorization URL being created for this test so we can reproduce the issue on our end?
Thanks, Shivika Khare Selling Partner API Developer Support
Hey please find website authorization workflow url for my app below:
My app will reject redirect from amazon due to invalid_state but I never managed to get that far because of the "Confirm" button JavaScript error.
In the page where we define the redirect URL, there is also another field above that. When I left the field above blank, I get this error. But once I put in a URL for it (just a website URL), I managed to get the Confirm button working.
@LukeLim81 the second URL is there for Marketplace Authorization Workflow, which is not always something you want/need.
@ShivikaK were you able to reproduce this?
I'm having exact same issue. Getting a nice access request page, but confirm button does nothing, only "Cannot read property 'endsWith' of undefined" appears in browser's developer console.
Our callback URI does not receive any requests.
@wkrsz providing both URLs as suggested by @LukeLim81 solves the problem
Also with both URLs Authorization API that is allowing to exchange MWS Token for SP API LWA Code works as expected without throwing any errors about missing OAuth configuration. Maybe both fields are actually mandatory but the form validation is invalid?
Yup. That was it. Thanks @norberttech @LukeLim81 – that saved me some gray hair.
Hello everyone,
As stated in the thread, it is required to have both OAuth Login and redirect URI information added to the app for the Confirm button to work correctly.
If the issue persists even after updating this information, please let me know.
Thanks, Shivika Khare Selling Partner API Developer Support
This is a very old issue that is probably not getting as much attention as it deserves. We encourage you to check if this is still an issue after the latest release and if you find that this is still a problem, please feel free to open a new issue and make a reference to this one.
Hey so I'm trying to test Website Authorization Workflow. I was able to successfully generate OAuth URL, I'm using
&version=beta
flat to test my app in draft mode and when my app redirects me to Amazon I'm unable to click "Confirm" button. It looks that the button is broken due to JS errors. Screenshot attachedIs there any other way to test this process?