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

Update Digikey API Product Information to v4 #586

Open
philm001 opened this issue Apr 4, 2024 · 4 comments
Open

Update Digikey API Product Information to v4 #586

philm001 opened this issue Apr 4, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@philm001
Copy link

philm001 commented Apr 4, 2024

Is your feature request related to a problem? Please describe.
Not related to a problem. But the Digikey API has set v3 to be depreciated and I anticipate that Digikey will remove v3 in the near future. They are currently on v4 and this is the recommended API to use.

Describe the solution you'd like
Part-DB should be updated to use the Digikey v4 API for product information

Describe alternatives you've considered
n/a

Additional context
This is a continuation of the issue #579

@philm001 philm001 added the enhancement New feature or request label Apr 4, 2024
@philm001
Copy link
Author

Any thoughts on this?

@jbtronics
Copy link
Member

I see no urgent need for that right now. The old API is just deprecated and I could not find a timescale on when digikey is planning to remove support for the old one.

Maybe I will look into it, when I have time, but digikey changed some structure of its API so it requires pretty much changes to Part-DB.

@philm001
Copy link
Author

I see I have been experiencing "issues" where every other part that I am entering in via Digikey is giving me an authentication error. I need to re-do the OAuth. Not a big problem because I do it and it works again. I am wondering if it is related to the v4 vs v3. I am also wondering if other users might experiencing issues related to this as well.

@hillsandales
Copy link

hillsandales commented May 10, 2024

I cannot get OAuth to work. I've setup the env vars and all, but when I click the OAuth button, I get the following error from Digikey. I've checked that I have the correct client_id set as an ENV VAR.

{
"ErrorResponseVersion": "3.0.0.0",
"StatusCode": 401,
"ErrorMessage": "Invalid clientId",
"ErrorDetails": "client_id query parameter has incorrect value. Send valid client_id",
"RequestId": "<redacted>",
"ValidationErrors": []
}

I'm running part-db inside Docker. I've tried running it internally on my network, as well as behind a reverse proxy. I'm using API v3.

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

No branches or pull requests

3 participants