Open ericblade opened 1 year ago
@ericblade One guess: Is you authorized app a hybrid SP/MWS app? As MWS is shut down now maybe this might be the issue?
Yes, it is a hybrid, but MWS doesn't shutdown until April 2024 at the least.
Not sure what specifically that would have to do with it, either.
It was working until mid December at least, which is when I started doing some work on the app again (coincidentally, updating some things to use SPAPI), so I thought perhaps pulling in new versions of this lib might've caused it, but going backwards to priors didn't seem to get there.
I don't really have any ideas as to what might be going on. Or, for that matter, how to diagnose it any further :-S
@ericblade I have the same issue...did you solve it?
I do not have any further information at t his time @nicolasheady .. this is not my day job, so I haven't really had much time to poke at it. It is something that i need to get together, though, I'd like to be able to get this fixed so I can go public someday :D
If you happen to have any ideas/find anything out, I'd love to hear. I will also come back here and report back if I find anything that seems to get through it.
Came here to say that this was happening to me as well. However, it happened when I was copying the query string from my production domain to localhost for local development and testing. As soon as decided to test on the production server, the problem went away! Hard to say if this indeed was the cause, and I'm too lazy to modify my local DNS to point to a non-"localhost" domain and then pass that as the redirect uri, so I'm happy for now! 😄
I'm not sure if this is something that came up with 0.8.0 release, or if it's amazon side, or if something else entirely is wrong, but.. this started recently... when I do an exchange(), i always get invalid grant parameter: code
am i doing something wrong here?
edited to add: the client is sent to authorize at sellercentral site, which then redirects to /login/?spapi_oauth_code=[whatever]&selling_partner_id=[whatever]
client then passes spapi_oauth_code to the above function... which gives me back
and to be clear, this started happening sometime in the last few weeks, after i had put in some other unrelated work to the app, as well as a minor refactoring of the section that handled this client side. I made zero changes to the server side, and as far as I can tell the client is sending the correct thing to the server, and i'm pretty sure i'm sending the correct thing to exchange()
rolling back to 0.7 did not seem to have any net positive effect.