Skip to content

Instantly share code, notes, and snippets.

@tronyx
Created September 18, 2024 14:22
Show Gist options
  • Save tronyx/e9a667a7d76fc4df638739f7c84873ca to your computer and use it in GitHub Desktop.
Save tronyx/e9a667a7d76fc4df638739f7c84873ca to your computer and use it in GitHub Desktop.
[2024-09-18 10:16:31,721] [config.py:530] [INFO] |====================================================================================================|
[2024-09-18 10:16:31,721] [config.py:534] [INFO] | Connecting to Notifiarr... |
[2024-09-18 10:16:31,951] [config.py:545] [INFO] | Notifiarr Connection Successful |
[2024-09-18 10:16:31,951] [config.py:565] [INFO] | gotify attribute not found |
[2024-09-18 10:17:32,127] [notifiarr.py:28] [DEBUG] | Content: b'<!DOCTYPE html>\n<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->\n<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en-US"> <![endif]-->\n<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en-US"> <![endif]-->\n<!--[if gt IE 8]><!--> <html class="no-js" lang="en-US"> <!--<![endif]-->\n<head>\n\n\n<title>notifiarr.com | 504: Gateway time-out</title>\n<meta charset="UTF-8" />\n<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\n<meta http-equiv="X-UA-Compatible" content="IE=Edge" />\n<meta name="robots" content="noindex, nofollow" />\n<meta name="viewport" content="width=device-width,initial-scale=1" />\n<link rel="stylesheet" id="cf_styles-css" href="/cdn-cgi/styles/main.css" />\n\n\n</head>\n<body>\n<div id="cf-wrapper">\n <div id="cf-error-details" class="p-0">\n <header class="mx-auto pt-10 lg:pt-6 lg:px-8 w-240 lg:w-full mb-8">\n <h1 class="inline-block sm:block sm:mb-2 font-light text-60 lg:text-4xl text-black-dark leading-tight mr-2">\n <span class="inline-block">Gateway time-out</span>\n <span class="code-label">Error code 504</span>\n </h1>\n <div>\n Visit <a href="https://www.cloudflare.com/5xx-error-landing?utm_source=errorcode_504&utm_campaign=notifiarr.com" target="_blank" rel="noopener noreferrer">cloudflare.com</a> for more information.\n </div>\n <div class="mt-3">2024-09-18 14:17:32 UTC</div>\n </header>\n <div class="my-8 bg-gradient-gray">\n <div class="w-240 lg:w-full mx-auto">\n <div class="clearfix md:px-8">\n \n<div id="cf-browser-status" class=" relative w-1/3 md:w-full py-15 md:p-0 md:py-8 md:text-left md:border-solid md:border-0 md:border-b md:border-gray-400 overflow-hidden float-left md:float-none text-center">\n <div class="relative mb-10 md:m-0">\n \n <span class="cf-icon-browser block md:hidden h-20 bg-center bg-no-repeat"></span>\n <span class="cf-icon-ok w-12 h-12 absolute left-1/2 md:left-auto md:right-0 md:top-0 -ml-6 -bottom-4"></span>\n \n </div>\n <span class="md:block w-full truncate">You</span>\n <h3 class="md:inline-block mt-3 md:mt-0 text-2xl text-gray-600 font-light leading-1.3">\n \n Browser\n \n </h3>\n <span class="leading-1.3 text-2xl text-green-success">Working</span>\n</div>\n\n<div id="cf-cloudflare-status" class=" relative w-1/3 md:w-full py-15 md:p-0 md:py-8 md:text-left md:border-solid md:border-0 md:border-b md:border-gray-400 overflow-hidden float-left md:float-none text-center">\n <div class="relative mb-10 md:m-0">\n <a href="https://www.cloudflare.com/5xx-error-landing?utm_source=errorcode_504&utm_campaign=notifiarr.com" target="_blank" rel="noopener noreferrer">\n <span class="cf-icon-cloud block md:hidden h-20 bg-center bg-no-repeat"></span>\n <span class="cf-icon-ok w-12 h-12 absolute left-1/2 md:left-auto md:right-0 md:top-0 -ml-6 -bottom-4"></span>\n </a>\n </div>\n <span class="md:block w-full truncate">Newark</span>\n <h3 class="md:inline-block mt-3 md:mt-0 text-2xl text-gray-600 font-light leading-1.3">\n <a href="https://www.cloudflare.com/5xx-error-landing?utm_source=errorcode_504&utm_campaign=notifiarr.com" target="_blank" rel="noopener noreferrer">\n Cloudflare\n </a>\n </h3>\n <span class="leading-1.3 text-2xl text-green-success">Working</span>\n</div>\n\n<div id="cf-host-status" class="cf-error-source relative w-1/3 md:w-full py-15 md:p-0 md:py-8 md:text-left md:border-solid md:border-0 md:border-b md:border-gray-400 overflow-hidden float-left md:float-none text-center">\n <div class="relative mb-10 md:m-0">\n \n <span class="cf-icon-server block md:hidden h-20 bg-center bg-no-repeat"></span>\n <span class="cf-icon-error w-12 h-12 absolute left-1/2 md:left-auto md:right-0 md:top-0 -ml-6 -bottom-4"></span>\n \n </div>\n <span class="md:block w-full truncate">notifiarr.com</span>\n <h3 class="md:inline-block mt-3 md:mt-0 text-2xl text-gray-600 font-light leading-1.3">\n \n Host\n \n </h3>\n <span class="leading-1.3 text-2xl text-red-error">Error</span>\n</div>\n\n </div>\n </div>\n </div>\n\n <div class="w-240 lg:w-full mx-auto mb-8 lg:px-8">\n <div class="clearfix">\n <div class="w-1/2 md:w-full float-left pr-6 md:pb-10 md:pr-0 leading-relaxed">\n <h2 class="text-3xl font-normal leading-1.3 mb-4">What happened?</h2>\n <p>The web server reported a gateway time-out error.</p>\n </div>\n <div class="w-1/2 md:w-full float-left leading-relaxed">\n <h2 class="text-3xl font-normal leading-1.3 mb-4">What can I do?</h2>\n <p class="mb-6">Please try again in a few minutes.</p>\n </div>\n </div>\n </div>\n\n <div class="cf-error-footer cf-wrapper w-240 lg:w-full py-10 sm:py-4 sm:px-8 mx-auto text-center sm:text-left border-solid border-0 border-t border-gray-300">\n <p class="text-13">\n <span class="cf-footer-item sm:block sm:mb-1">Cloudflare Ray ID: <strong class="font-semibold">8c51f44fc94e4339</strong></span>\n <span class="cf-footer-separator sm:hidden">&bull;</span>\n <span id="cf-footer-item-ip" class="cf-footer-item hidden sm:block sm:mb-1">\n Your IP:\n <button type="button" id="cf-footer-ip-reveal" class="cf-footer-ip-reveal-btn">Click to reveal</button>\n <span class="hidden" id="cf-footer-ip">73.165.180.79</span>\n <span class="cf-footer-separator sm:hidden">&bull;</span>\n </span>\n <span class="cf-footer-item sm:block sm:mb-1"><span>Performance &amp; security by</span> <a rel="noopener noreferrer" href="https://www.cloudflare.com/5xx-error-landing?utm_source=errorcode_504&utm_campaign=notifiarr.com" id="brand_link" target="_blank">Cloudflare</a></span>\n \n </p>\n <script>(function(){function d(){var b=a.getElementById("cf-footer-item-ip"),c=a.getElementById("cf-footer-ip-reveal");b&&"classList"in b&&(b.classList.remove("hidden"),c.addEventListener("click",function(){c.classList.add("hidden");a.getElementById("cf-footer-ip").classList.remove("hidden")}))}var a=document;document.addEventListener&&a.addEventListener("DOMContentLoaded",d)})();</script>\n</div><!-- /.error-footer -->\n\n\n </div>\n</div>\n</body>\n</html>\n' |
[2024-09-18 10:17:32,127] [notifiarr.py:29] [ERROR] | Expecting value: line 1 column 1 (char 0) |
[2024-09-18 10:17:32,133] [config.py:581] [DEBUG] | Traceback (most recent call last): |
| File "/lsiopy/lib/python3.12/site-packages/requests/models.py", line 974, in json |
| return complexjson.loads(self.text, **kwargs) |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| File "/usr/lib/python3.12/json/__init__.py", line 346, in loads |
| return _default_decoder.decode(s) |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| File "/usr/lib/python3.12/json/decoder.py", line 337, in decode |
| obj, end = self.raw_decode(s, idx=_w(s, 0).end()) |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| File "/usr/lib/python3.12/json/decoder.py", line 355, in raw_decode |
| raise JSONDecodeError("Expecting value", s, err.value) from None |
| json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) |
| |
| During handling of the above exception, another exception occurred: |
| |
| Traceback (most recent call last): |
| File "/app/kometa/modules/notifiarr.py", line 26, in _request |
| response_json = response.json() |
| ^^^^^^^^^^^^^^^ |
| File "/lsiopy/lib/python3.12/site-packages/requests/models.py", line 978, in json |
| raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) |
| requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0) |
| |
| During handling of the above exception, another exception occurred: |
| |
| Traceback (most recent call last): |
| File "/app/kometa/modules/config.py", line 577, in __init__ |
| self.Webhooks.start_time_hooks(self.start_time) |
| File "/app/kometa/modules/webhooks.py", line 79, in start_time_hooks |
| self._request(self.run_start_webhooks, {"event": "run_start", "start_time": start_time.strftime("%Y-%m-%d %H:%M:%S")}) |
| File "/app/kometa/modules/webhooks.py", line 32, in _request |
| response = self.notifiarr.notification(json) |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| File "/app/kometa/modules/notifiarr.py", line 20, in notification |
| return self._request(json=json) |
| ^^^^^^^^^^^^^^^^^^^^^^^^ |
| File "/lsiopy/lib/python3.12/site-packages/tenacity/__init__.py", line 336, in wrapped_f |
| return copy(f, *args, **kw) |
| ^^^^^^^^^^^^^^^^^^^^ |
| File "/lsiopy/lib/python3.12/site-packages/tenacity/__init__.py", line 475, in __call__ |
| do = self.iter(retry_state=retry_state) |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| File "/lsiopy/lib/python3.12/site-packages/tenacity/__init__.py", line 376, in iter |
| result = action(retry_state) |
| ^^^^^^^^^^^^^^^^^^^ |
| File "/lsiopy/lib/python3.12/site-packages/tenacity/__init__.py", line 398, in <lambda> |
| self._add_action_func(lambda rs: rs.outcome.result()) |
| ^^^^^^^^^^^^^^^^^^^ |
| File "/usr/lib/python3.12/concurrent/futures/_base.py", line 449, in result |
| return self.__get_result() |
| ^^^^^^^^^^^^^^^^^^^ |
| File "/usr/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result |
| raise self._exception |
| File "/lsiopy/lib/python3.12/site-packages/tenacity/__init__.py", line 478, in __call__ |
| result = fn(*args, **kwargs) |
| ^^^^^^^^^^^^^^^^^^^ |
| File "/app/kometa/modules/notifiarr.py", line 30, in _request |
| raise Failed("Notifiarr Error: Invalid JSON response received") |
| modules.util.Failed: Notifiarr Error: Invalid JSON response received |
| |
[2024-09-18 10:17:32,140] [config.py:582] [ERROR] | Webhooks Error: Notifiarr Error: Invalid JSON response received |
[2024-09-18 10:17:32,140] [config.py:585] [INFO] |====================================================================================================|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment