-
Notifications
You must be signed in to change notification settings - Fork 98
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
Cannot request new token with auth code for the Digi-key API #556
Comments
Disable the sandbox |
Thank you for your return. But even disabling the sandbox in the config.txt I'm getting the same error. Here is the config.txt:
And the log while running
|
I run into the same problem. It looks like with GUI the DigiKey is configured twice - once with sandbox from setting and second time with sandbox disabled. It works from commandline but breaks with GUI. This is stacktrace of second configure:
(Line 105 is the one I added) I think somewhere string |
Hi @uzytkownik ! I can't reproduce it. Can you send the traceback for the first configuration call? In my system the API is configured just once. |
I have a similar (the same?) issue: kicost would only query the sandbox api, even if sandbox env variable is set False. When commenting out the respective lines to get the environment variables in api.py it works for me: Btw: If I register a sandbox API on digikey and give those credentials in the config.yaml, it successfully calls the sandbox API with the original code. |
Hi @clwe ! |
yes, it even said |
Double check your configuration file says |
Sorry for the delay. I had
|
Again, commenting out the portion of code that calls the sandbox api in |
Issue / Problem report
kicost --version
at terminal.The tool works well with the Mouser and Nexar API and the problem occurs when enabling Digi-Key API.
To isolate the problem, I created a fresh virtual env with Python 3.9.16 (same version as in KiCAD 7.0 installation) and installed just the
kicost-digikey-api-v3
.Steps to reproduce:
conda create -n fresh python=3.9.16
and activate itkicost-digikey-api-v3
following the procedure herekicost-digikey-api-v3
folder and run the test withpython test_production.py
SSL: CERTIFICATE_VERIFY_FAILED
so I installpython -m pip install pip-system-certs
to solvepython test_production.py
againhttps://localhost:8139/digikey_callback?code=XXXX&scope=
PS.:

Before clicking in the "Allow" buttom this two certificate files are saved in the
~./.cache/kicost/Digi-Key
folder.And after the error occurs the certificate files in the
~./.cache/kicost/Digi-Key
folder are gone.The file
config.txt
:The text was updated successfully, but these errors were encountered: