Skip to content

Did Digikey change their oauth API? #912

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

Open
bson opened this issue Apr 16, 2025 · 1 comment
Open

Did Digikey change their oauth API? #912

bson opened this issue Apr 16, 2025 · 1 comment

Comments

@bson
Copy link

bson commented Apr 16, 2025

This used to work fine, but as of about a week ago I'm getting this error when trying to obtain info from DigiKey... It looks like the redirect callback URL is now maybe missing an expected http parameter?

{"message":"Uncaught PHP Exception InvalidArgumentException: \"Required option not passed: \"access_token\"\" at AccessToken.php line 96","context":{"exception":{"class":"InvalidArgumentException","message":"Required option not passed: \"access_token\"","code":0,"file":"/var/www/html/vendor/league/oauth2-client/src/Token/AccessToken.php:96","trace":["/var/www/html/vendor/league/oauth2-client/src/Provider/AbstractProvider.php:844","/var/www/html/vendor/league/oauth2-client/src/Provider/AbstractProvider.php:642","/var/www/html/vendor/knpuniversity/oauth2-client-bundle/src/Client/OAuth2Client.php:125","/var/www/html/src/Services/OAuth/OAuthTokenManager.php:110","/var/www/html/src/Services/OAuth/OAuthTokenManager.php:141","/var/www/html/src/Services/InfoProviderSystem/Providers/DigikeyProvider.php:110","/var/www/html/src/Services/InfoProviderSystem/PartInfoRetriever.php:82","/var/www/html/vendor/symfony/cache/LockRegistry.php:111","/var/www/html/vendor/symfony/cache/Traits/ContractsTrait.php:104","/var/www/html/
vendor/symfony/cache-contracts/CacheTrait.php:64","/var/www/html/vendor/symfony/cache/Traits/ContractsTrait.php:111","/var/www/html/vendor/symfony/cache-contracts/CacheTrait.php:30","/var/www/html/src/Services/InfoProviderSystem/PartInfoRetriever.php:83","/var/www/html/src/Services/InfoProviderSystem/PartInfoRetriever.php:64","/var/www/html/src/Controller/InfoProviderController.php:83","/var/www/html/vendor/symfony/http-kernel/HttpKernel.php:181","/var/www/html/vendor/symfony/http-kernel/HttpKernel.php:76","/var/www/html/vendor/symfony/http-kernel/Kernel.php:197","/var/www/html/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35","/var/www/html/vendor/autoload_runtime.php:29","/var/www/html/public/index.php:5"]}},"level":500,"level_name":"CRITICAL","channel":"request","datetime":"2025-04-16T01:05:57.059317+00:00","extra":{"token":{"authenticated":true,"roles":["ROLE_USER"],"user_identifier":"bson"},"url":"/en/tools/info_providers/update/513","ip":"172.17.0.1","http_method":"POST","server":"partdb.r
ockgarden.net","referrer":"https://partdb.rockgarden.net/en/tools/info_providers/update/513"}}
{"message":"User Deprecated: Since nelmio/security-bundle 3.4.0: The \"Nelmio\\SecurityBundle\\EventListener\\XssProtectionListener\" class is deprecated, use Content Security Policy without allowing \"unsafe-inline\" scripts instead.","context":{"exception":{"class":"ErrorException","message":"User Deprecated: Since nelmio/security-bundle 3.4.0: The \"Nelmio\\SecurityBundle\\EventListener\\XssProtectionListener\" class is deprecated, use Content Security Policy without allowing \"unsafe-inline\" scripts instead.","code":0,"file":"/var/www/html/vendor/nelmio/security-bundle/src/EventListener/XssProtectionListener.php:35","trace":["/var/www/html/vendor/nelmio/security-bundle/src/EventListener/XssProtectionListener.php:80","/var/www/html/var/cache/docker/ContainerGuFYBbY/App_KernelDockerContainer.php:2051","/var/www/html/var/cache/docker/ContainerGuFYBbY/App_KernelDockerContainer.php:500","/var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php:257","/var/www/html/vendor/symfony/event-dispatcher/Even
tDispatcher.php:220","/var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php:56","/var/www/html/vendor/symfony/http-kernel/HttpKernel.php:214","/var/www/html/vendor/symfony/http-kernel/HttpKernel.php:202","/var/www/html/vendor/symfony/http-kernel/HttpKernel.php:76","/var/www/html/vendor/symfony/http-kernel/EventListener/ErrorListener.php:117","/var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php:260","/var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php:220","/var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php:56","/var/www/html/vendor/symfony/http-kernel/HttpKernel.php:239","/var/www/html/vendor/symfony/http-kernel/HttpKernel.php:91","/var/www/html/vendor/symfony/http-kernel/Kernel.php:197","/var/www/html/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35","/var/www/html/vendor/autoload_runtime.php:29","/var/www/html/public/index.php:5"]}},"level":200,"level_name":"INFO","channel":"deprecation","datetime":"2025-04-16T01:05:57.078986+00:00","extra
":{"token":{"authenticated":true,"roles":["ROLE_USER"],"user_identifier":"bson"},"url":"/en/tools/info_providers/update/513","ip":"172.17.0.1","http_method":"POST","server":"partdb.rockgarden.net","referrer":"https://partdb.rockgarden.net/en/tools/info_providers/update/513"}}
{"message":"Stored the security token in the session.","context":{"key":"_security_main"},"level":100,"level_name":"DEBUG","channel":"security","datetime":"2025-04-16T01:05:57.080243+00:00","extra":{"token":{"authenticated":true,"roles":["ROLE_USER"],"user_identifier":"bson"},"url":"/en/tools/info_providers/update/513","ip":"172.17.0.1","http_method":"POST","server":"partdb.rockgarden.net","referrer":"https://partdb.rockgarden.net/en/tools/info_providers/update/513"}}
172.17.0.1 - - [16/Apr/2025:01:05:51 +0000] "POST /en/tools/info_providers/update/513 HTTP/1.1" 500 4277 "https://partdb.rockgarden.net/en/tools/info_providers/update/513" "Mozilla/5.0 (X11; Linux x86_64; rv:137.0) Gecko/20100101 Firefox/137.0"
- -  16/Apr/2025:01:05:51 +0000 "POST /index.php" 500
@bson
Copy link
Author

bson commented Apr 16, 2025

By the way, this is version: 1.13.2

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

No branches or pull requests

1 participant