[GH-ISSUE #31] [ERROR] Failed to check notifications #24

Closed
opened 2026-02-27 23:03:27 +03:00 by kerem · 3 comments
Owner

Originally created by @JamesHawkinss on GitHub (Oct 3, 2023).
Original GitHub issue: https://github.com/simonmicro/Pritunl-Fake-API/issues/31

Hi there, thanks for making such a great project! Everything is working well, except our logs are being filled up with these errors from all hosts.

We're hosting our own instance of the Fake API server, is this a known error?

Pritunl version: v1.32.3602.80 d1b072

Thanks!

[redacted][2023-10-03 11:49:59,237][ERROR] Failed to check notifications
Traceback (most recent call last):
  File "/usr/lib/pritunl/usr/lib/python3.9/site-packages/pritunl/runners/updates.py", line 25, in _check_updates
    response = urllib.request.urlopen(request, timeout=60)
  File "/usr/lib/pritunl/usr/lib/python3.9/urllib/request.py", line 214, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/pritunl/usr/lib/python3.9/urllib/request.py", line 523, in open
    response = meth(req, response)
  File "/usr/lib/pritunl/usr/lib/python3.9/urllib/request.py", line 632, in http_response
    response = self.parent.error(
  File "/usr/lib/pritunl/usr/lib/python3.9/urllib/request.py", line 561, in error
    return self._call_chain(*args)
  File "/usr/lib/pritunl/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain
    result = func(*args)
  File "/usr/lib/pritunl/usr/lib/python3.9/urllib/request.py", line 641, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden
Originally created by @JamesHawkinss on GitHub (Oct 3, 2023). Original GitHub issue: https://github.com/simonmicro/Pritunl-Fake-API/issues/31 Hi there, thanks for making such a great project! Everything is working well, except our logs are being filled up with these errors from all hosts. We're hosting our own instance of the Fake API server, is this a known error? Pritunl version: v1.32.3602.80 d1b072 Thanks! ``` [redacted][2023-10-03 11:49:59,237][ERROR] Failed to check notifications Traceback (most recent call last): File "/usr/lib/pritunl/usr/lib/python3.9/site-packages/pritunl/runners/updates.py", line 25, in _check_updates response = urllib.request.urlopen(request, timeout=60) File "/usr/lib/pritunl/usr/lib/python3.9/urllib/request.py", line 214, in urlopen return opener.open(url, data, timeout) File "/usr/lib/pritunl/usr/lib/python3.9/urllib/request.py", line 523, in open response = meth(req, response) File "/usr/lib/pritunl/usr/lib/python3.9/urllib/request.py", line 632, in http_response response = self.parent.error( File "/usr/lib/pritunl/usr/lib/python3.9/urllib/request.py", line 561, in error return self._call_chain(*args) File "/usr/lib/pritunl/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain result = func(*args) File "/usr/lib/pritunl/usr/lib/python3.9/urllib/request.py", line 641, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 403: Forbidden ```
kerem closed this issue 2026-02-27 23:03:27 +03:00
Author
Owner

@simonmicro commented on GitHub (Oct 13, 2023):

Hmm, this is strange. It seems like Cloudflare is blocking your requests. I have deployed a rule to soften the WAF (web-application-firewall), I hope this helps.

<!-- gh-comment-id:1761152472 --> @simonmicro commented on GitHub (Oct 13, 2023): Hmm, this is strange. It seems like Cloudflare is blocking your requests. I have deployed a rule to soften the WAF (web-application-firewall), I hope this helps.
Author
Owner

@JamesHawkinss commented on GitHub (Oct 13, 2023):

Hi @simonmicro, we're using a self-hosted version of the API server behind Cloudflare, could you let me know the WAF rule you set so I can duplicate it on our setup? Thanks!

<!-- gh-comment-id:1761620739 --> @JamesHawkinss commented on GitHub (Oct 13, 2023): Hi @simonmicro, we're using a self-hosted version of the API server behind Cloudflare, could you let me know the WAF rule you set so I can duplicate it on our setup? Thanks!
Author
Owner

@simonmicro commented on GitHub (Oct 13, 2023):

Meh - basically, if you access the CNAME of the API: Skip. I therefore just use Cloudflare for acceleration and load balancing...

<!-- gh-comment-id:1761721953 --> @simonmicro commented on GitHub (Oct 13, 2023): Meh - basically, if you access the CNAME of the API: Skip. I therefore just use Cloudflare for acceleration and load balancing...
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Pritunl-Fake-API#24
No description provided.