Skip to content

Trading API headers issue #376

@slonopot

Description

@slonopot

There's an issue with Trading API and maybe with the configs themselves. When building headers, some values are being pulled from config and Connection parameters. As we don't need anything other than appid and token, other values (such as devid, keys/certs) are not required. The issue is that these values are None in config, and when config.get(val, default) is being called, it returns None. Later the header check fails. There's probably a better way to deal with this, but as a hotfix one can use:

/ebaysdk/config.py

def get(self, cKey, defaultValue=None):
    val = self.values.get(cKey, defaultValue)
    if val is None:
        return defaultValue
    return val

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