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

Shopping API, Token not found, yet included in YAML #375

Open
amrakrr opened this issue Mar 21, 2023 · 4 comments
Open

Shopping API, Token not found, yet included in YAML #375

amrakrr opened this issue Mar 21, 2023 · 4 comments

Comments

@amrakrr
Copy link

amrakrr commented Mar 21, 2023

using the Shopping API Class, I've constructed the YAML as so :

open.api.ebay.com:
iaf_token: myToken
appid: myappid
certid : mycertid
version: 799

Yet I received this error:

'GetSingleItem: Class: RequestError, Severity: Error, Code: 1.33, Token not available in request. Token not available in request. Please specify a valid token as HTTP header.'
{'Timestamp': '2023-03-21T23:08:05.329Z', 'Ack': 'Failure', 'Errors': {'ShortMessage': 'Token not available in request.', 'LongMessage': 'Token not available in request. Please specify a valid token as HTTP header.', 'ErrorCode': '1.33', 'SeverityCode': 'Error', 'ErrorClassification': 'RequestError'}, 'Build': 'E1199_CORE_APILW_19146596_R1', 'Version': '1199'}

Would anyone be able to help?

@amrakrr
Copy link
Author

amrakrr commented Mar 26, 2023

When I hard code the iaf token in the headers of the shopping init.py file (I know, not the best practice) the call works and returns data!

The init file doesn't pick up the iaf token correctly from the yaml file.

I can use this: s.config.values and it returns the variables, including the iaf token from the yaml file. But the init file doesn't pick it up.

@tekgecko
Copy link

tekgecko commented Apr 5, 2023

When I hard code the iaf token in the headers of the shopping init.py file (I know, not the best practice) the call works and returns data!

The init file doesn't pick up the iaf token correctly from the yaml file.

I can use this: s.config.values and it returns the variables, including the iaf token from the yaml file. But the init file doesn't pick it up.

Thanks, this also worked for me.

@sndao
Copy link

sndao commented Jul 1, 2023

This fix was committed but never made it into the latest release.

Since it seems this library isn't being maintained anymore, here's a workaround to include the fix:

pip uninstall ebaysdk # uninstalls 2.2.0 -- latest release

pip install ebayskgit+https://github.com/timotheus/ebaysdk-python.git --no-cache-dir

You can also include in your requirements.txt (although you may hit an error if ebaysdk is in pip cache):

git+https://github.com/timotheus/ebaysdk-python.git

@Nazzcodek
Copy link

When I hard code the iaf token in the headers of the shopping init.py file (I know, not the best practice) the call works and returns data!

The init file doesn't pick up the iaf token correctly from the yaml file.

I can use this: s.config.values and it returns the variables, including the iaf token from the yaml file. But the init file doesn't pick it up.

please can you elaborate on what you do

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

4 participants