facetoe / zenpy

Python wrapper for the Zendesk API
GNU General Public License v3.0
344 stars 162 forks source link

requests.exceptions.HTTPError: 404 Client Error: Not Found for url: .../api/v2/help_center/categories.json?page... #631

Closed sglebs closed 5 months ago

sglebs commented 5 months ago

I am getting this error:

requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://mydomain.zendesk.com/api/v2/help_center/categories.json?page%5Bsize%5D=100

I have noticed that the Help Center API seems to have changed to have a /hc/ prefix:

https://support.zendesk.com/hc/en-us/articles/5591904358938-New-limits-for-offset-based-pagination

sglebs commented 5 months ago

Code:

            zendesk = Zenpy(subdomain=zendesk_domain, email=zendesk_user, token=zendesk_token)
            categories = zendesk.help_center.categories()

Internally the library builds this URL: 'https://mydomain.zendesk.com/api/v2/help_center/categories.json?page[size]=100'

sglebs commented 5 months ago

It worked on another (older) Zendesk account, so I am closing it for now.