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

ebay changing Certification Authority - using Finding API #366

Open
DancingGuy opened this issue Nov 11, 2021 · 0 comments
Open

ebay changing Certification Authority - using Finding API #366

DancingGuy opened this issue Nov 11, 2021 · 0 comments

Comments

@DancingGuy
Copy link

I am trying to comply with an ebay notice to developers to test endpoints in the sandbox to get ready for the switch in Certification Authority in January.

My python ebaysdk version is 1.13.0. My python version 3.8.5

When I follow the instructions to use svcs,sandbox.ebay.com with my sandbox appid, I get the following error:

Python exception:
InvalidHeader: Value for header {X-EBAY-SOA-SECURITY-APPNAME: None} must be of type str or bytes, not <class 'NoneType'>

response = api.execute('findItemsByCategory', request)

api: <ebaysdk.finding.Connection object>
request: {'categoryId': 260, 'itemFilter': {'name': 'S...}  | len(request): 5

Exception raised on line 949 of file 'PYTHON:\site-packages\requests-2.24.0-py3.8.egg\requests\utils.py'.

   947:             raise InvalidHeader("Invalid return character or leading space in header: %s" % name)
   948:     except TypeError:
-->949:         raise InvalidHeader("Value for header {%s: %s} must be of type str or "

global InvalidHeader: <class 'requests.exceptions.InvalidHeader'>

My exact same script with this call in production mode yaml file works as normal.

api = Connection(config_file='C:\Users\eBay_Sandbox\Documents\Finding\ebay.yaml', siteid="EBAY-US")

I'm confused as to what I need to change in my ebay.yaml or api call to test and confirm.

Thanks for any advice.

@DancingGuy DancingGuy changed the title ebay changing Certification Authority ebay changing Certification Authority - using Finding API Nov 11, 2021
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