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

Can't iterate through my tags #244

Open
Rob192 opened this issue Mar 22, 2023 · 0 comments
Open

Can't iterate through my tags #244

Rob192 opened this issue Mar 22, 2023 · 0 comments

Comments

@Rob192
Copy link

Rob192 commented Mar 22, 2023

Hello !
Thank you for the library :)
I cannot iterate through the tags I have in my Workspace. When I do
` # find all tags using the Intercom API
alltags = intercom.tags.all()

# collect all tag names
tag_names = [tag.name for tag in alltags]`

I get this error :
Traceback (most recent call last):
File "C:\Users\Utilisateur\AppData\Local\Programs\Python\Python310\lib\code.py", line 90, in runcode
exec(code, self.locals)
File "", line 5, in
File "", line 5, in
File "C:\Users\Utilisateur\OneDrive\Documents\code_perifit\ai_intercom_tag\venv\lib\site-packages\intercom\collection_proxy.py", line 46, in next
self.get_first_page()
File "C:\Users\Utilisateur\OneDrive\Documents\code_perifit\ai_intercom_tag\venv\lib\site-packages\intercom\collection_proxy.py", line 67, in get_first_page
return self.get_page(self.finder_url, self.finder_params)
File "C:\Users\Utilisateur\OneDrive\Documents\code_perifit\ai_intercom_tag\venv\lib\site-packages\intercom\collection_proxy.py", line 85, in get_page
collection = response[self.collection]
KeyError: 'tags'

Using directly the Intercom API works though

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