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 set be_geo_id #147

Closed
fbradyirl opened this issue Dec 21, 2020 · 2 comments
Closed

Cannot set be_geo_id #147

fbradyirl opened this issue Dec 21, 2020 · 2 comments

Comments

@fbradyirl
Copy link
Contributor

fbradyirl commented Dec 21, 2020

Version 1.6

Trying to set an attribute in the user agent, but I get a key error.

  File "/Users/fibrady/projects/core/venv/lib/python3.9/site-packages/webexteamssdk/api/__init__.py", line 182, in __init__
    self._session = RestSession(
  File "/Users/fibrady/projects/core/venv/lib/python3.9/site-packages/webexteamssdk/restsession.py", line 230, in __init__
    "User-Agent": user_agent(be_geo_id=be_geo_id, caller=caller),
  File "/Users/fibrady/projects/core/venv/lib/python3.9/site-packages/webexteamssdk/restsession.py", line 155, in user_agent
    data["organization"]["be_geo_id"] = be_geo_id
KeyError: 'organization'

data["organization"] does not exist. See https://github.com/CiscoDevNet/webexteamssdk/blob/49a0a0d07d8d7c11abdf599396c814455261cc76/webexteamssdk/restsession.py#L155

@fbradyirl
Copy link
Contributor Author

E.g.

        self.tracking_id = f"{str(uuid.uuid4())}".upper()
        self.teams = WebexTeamsAPI(access_token=access_token,
                                   be_geo_id=self.tracking_id)

fbradyirl added a commit to fbradyirl/webexteamssdk that referenced this issue Mar 26, 2021
sQu4rks added a commit that referenced this issue Apr 8, 2021
@sQu4rks
Copy link
Contributor

sQu4rks commented Apr 8, 2021

Merged the PR. Thanks for the contribution @fbradyirl! Closing the issue.

@sQu4rks sQu4rks closed this as completed Apr 8, 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

2 participants