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

cannot use the SDK with sandbox - error even on getting authenticated -- works ok direct via requests. #25

Open
salmanmarvasti opened this issue Mar 6, 2024 · 1 comment
Assignees

Comments

@salmanmarvasti
Copy link

Every time I try to use the sandbox with correct client id and secrete I get a strange error on access
doing this directly with httpx or other module in python works fine but then I have to formulate all the REST commands manually and I get error.
Based on docs for sandbox I set base_url = "https://api.ingrammicro.com:443/sandbox" following your access example.

'Reason: Not Found\n'
"HTTP response headers: HTTPHeaderDict({'Date': 'Wed, 06 Mar 2024 00:52:49 "
"GMT', 'Content-Type': 'application/json', 'Content-Length': '186', "
"'Connection': 'keep-alive', 'X-Frame-Options': 'DENY', "
"'Strict-Transport-Security': 'max-age=86400', 'X-Content-Type-Options': "
''nosniff', 'Content-Security-Policy': "frame-ancestors 'none'", '
"'X-XSS-Protection': '1'})\n"
'HTTP response body: {"fault":{"faultstring":"Unable to identify proxy for '
'host: default and url: '
'\/sandbox\/oauth\/oauth20\/token","detail":{"errorcode":"messaging.adaptors.http.flow.ApplicationNotFound"}}}\n'

@salmanmarvasti salmanmarvasti changed the title cannot use the SDK with sandbox - error even on getting code. cannot use the SDK with sandbox - error even on getting authenticated -- works ok direct via requests. Mar 6, 2024
@im-deviprakash im-deviprakash self-assigned this Mar 6, 2024
@im-deviprakash
Copy link
Contributor

To obtain the access token, please use the base path: https://api.ingrammicro.com:443 for both sandbox and production environments. This should resolve the access issue. Please ensure that the base path remains the same only for the get-access-token operation. Thank you for your attention.

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

2 participants