jotform / jotform-api-python

JotForm API - Python Client
GNU General Public License v2.0
39 stars 48 forks source link

urllib.error.HTTPError: HTTP Error 403: Forbidden #23

Closed DanielSkalar closed 2 years ago

DanielSkalar commented 2 years ago

I was getting always Error 403: Forbidden

To fix add 'User-Agent': 'Mozilla/5.0' on the headers. line 57

headers = { 'apiKey': self.__apiKey, 'User-Agent': 'Mozilla/5.0' }

ehawman commented 2 years ago

This is happening for me as well. Adding that header didn't fix the issue, unfortunately.

EDIT: Adding a user agent did fix the issue once I discovered that it was using my global packages instead of my virtual env.

ehawman commented 2 years ago

I created a pull request #24. Hopefully bugging support will get action taken.

uelmalioglu commented 2 years ago

Fixed with https://github.com/jotform/jotform-api-python/commit/462e7e644586828da846324e0d83cb3b8ef2bb1d