Skip to content

X-DIGIKEY-Client-Id invalid for requested resource #53

@fl4p

Description

@fl4p

Hi,

The OAuth authentication worked, now I get error 401 for all requests. (product_details(), keyword_search())

Exception when calling product_details_with_http_info: (401)
Reason: Unauthorized
HTTP response headers: HTTPHeaderDict({'Date': 'Fri, 21 Feb 2025 10:35:16 GMT', 'Content-Type': 'application/json', 'Content-Length': '228', 'Connection': 'keep-alive', 'Access-Control-Allow-Origin': '', 'Access-Control-Allow-Headers': 'origin, x-requested-with, accept, content-type, authorization,x-digikey-client-id, x-digikey-locale-site, x-digikey-locale-language, x-digikey-locale-currency, x-digikey-locale-shiptocountry, x-digikey-customer-id', 'Access-Control-Max-Age': '3628800', 'Access-Control-Allow-Methods': 'GET, POST', 'X-DIGIKEY-REQUEST-ID': 'd9745ccd-cfbc-46e8-9426-xxxxx', 'Set-Cookie': 'xxxx=yyyy; Path=/; Secure; HTTPOnly'})
HTTP response body: {"ErrorResponseVersion":"3.0.0.0","StatusCode": 401,"ErrorMessage":"Invalid Client-Id","ErrorDetails":"X-DIGIKEY-Client-Id invalid for requested resource","RequestId":"d9745ccd-cfbc-46e8-9426-xxxxx","ValidationErrors":[]}

The API Key at Digikey is approved.

APIs
ProductInformation V4  Enabled
Quote.  Enabled
SupplyChainAPI.  Enabled

Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions