peeter123 / digikey-api

Python module for the Digikey PartSearch API
GNU General Public License v3.0
85 stars 35 forks source link

Invalid redirect request #31

Closed aaronw2 closed 2 years ago

aaronw2 commented 2 years ago

I'm trying to use Ki-nTree's digikey function which makes use of this API. It brings up the authentication web page in Google Chrome and when I select to enable the app using my key and URL, https://localhost, I always get the error message: {"ErrorCode" : "invalid_request", "Error" :"Invalid redirection uri https://localhost:8139/digikey_callback"}

When I run a packet trace, I do not see any attempt to access port 8139 on my localhost from the redirection. I do see traffic to 8139 if I manually attempt to connect a web browser to that URL right after I get the failure message. This indicates that there is something in Google Chrome that is preventing redirection to localhost from working.

aaronw2 commented 2 years ago

I deleted my API key and recreated it and now it appears to be working.

aaronw2 commented 2 years ago

Recreating the Digikey keys fixed the problem.