thtsearch.com
Open in
urlscan Pro
2a06:98c1:3120::7
Public Scan
Submitted URL: https://tracking.alerts.thehistorytoday.com/tracking/click?d=ZubdMn0a4M5ik9gbo4REpLJekjT_u0CBLkOSi8CnCs5CGIQ8qRQQiw2t-WiggteN2MZ5SRkEPmC_Q9Q...
Effective URL: https://thtsearch.com/candidates/238+members+of+%22Whiskey+Ring%22+accused+of+anti-US+activities/
Submission: On May 02 via api from US — Scanned from FR
Effective URL: https://thtsearch.com/candidates/238+members+of+%22Whiskey+Ring%22+accused+of+anti-US+activities/
Submission: On May 02 via api from US — Scanned from FR
Form analysis
1 forms found in the DOMName: pasteform — POST http://dpaste.com/
<form action="http://dpaste.com/" name="pasteform" id="pasteform" method="post">
<div id="pastebinTraceback" class="pastebin" style="display: none;">
<input type="hidden" name="language" value="PythonConsole">
<input type="hidden" name="title" value="JSONDecodeError at /candidates/238+members+of+"Whiskey+Ring"+accused+of+anti-US+activities/">
<input type="hidden" name="source" value="Django Dpaste Agent">
<input type="hidden" name="poster" value="Django">
<textarea name="content" id="traceback_area" cols="140" rows="25">Environment:
Request Method: GET
Request URL: http://thtsearch.com/candidates/238+members+of+%22Whiskey+Ring%22+accused+of+anti-US+activities/
Django Version: 3.1.7
Python Version: 3.8.10
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'history']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware']
Traceback (most recent call last):
File "/usr/lib/python3.8/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
During handling of the above exception (0), another exception occurred:
File "/home/ubuntu/.local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/home/ubuntu/.local/lib/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/ubuntu/thtsearch/./history/views.py", line 52, in candidates
list = json.loads(res.content)
File "/usr/lib/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
Exception Type: JSONDecodeError at /candidates/238+members+of+"Whiskey+Ring"+accused+of+anti-US+activities/
Exception Value: Expecting value: line 1 column 1 (char 0)
</textarea>
<br><br>
<input type="submit" value="Share this traceback on a public website">
</div>
</form>
Text Content
JSONDECODEERROR AT /CANDIDATES/238+MEMBERS+OF+"WHISKEY+RING"+ACCUSED+OF+ANTI-US+ACTIVITIES/ Expecting value: line 1 column 1 (char 0) Request Method: GET Request URL: http://thtsearch.com/candidates/238+members+of+%22Whiskey+Ring%22+accused+of+anti-US+activities/ Django Version: 3.1.7 Exception Type: JSONDecodeError Exception Value: Expecting value: line 1 column 1 (char 0) Exception Location: /usr/lib/python3.8/json/decoder.py, line 355, in raw_decode Python Executable: /home/ubuntu/.local/bin/uwsgi Python Version: 3.8.10 Python Path: ['.', '', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/ubuntu/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages'] Server time: Mon, 02 May 2022 14:01:25 +0000 TRACEBACK SWITCH TO COPY-AND-PASTE VIEW * /usr/lib/python3.8/json/decoder.py, line 353, in raw_decode 346. representation and the index in ``s`` where the document ended. 347. 348. This can be used to decode a JSON document from a string that may 349. have extraneous data at the end. 350. 351. """ 352. try: 353. obj, end = self.scan_once(s, idx) … 354. except StopIteration as err: 355. raise JSONDecodeError("Expecting value", s, err.value) from None 356. return obj, end ▶ Local vars Variable Value idx 0 s ('<!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' '<title>Access denied | api.everipedia.org used Cloudflare to restrict ' 'access</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' '<script>\n' '(function(){if(document.addEventListener&&window.XMLHttpRequest&&JSON&&JSON.stringify){var ' 'e=function(a){var ' 'c=document.getElementById("error-feedback-survey"),d=document.getElementById("error-feedback-success"),b=new ' 'XMLHttpRequest;a={event:"feedback ' 'clicked",properties:{errorCode:1015,helpful:a,version:1}};b.open("POST","https://sparrow.cloudflare.com/api/v1/event");b.setRequestHeader("Content-Type","application/json");b.setRequestHeader("Sparrow-Source-Key","c771f0e4b54944bebf4261d44bd79a1e");\n' 'b.send(JSON.stringify(a));c.classList.add("feedback-hidden");d.classList.remove("feedback-hidden")};document.addEventListener("DOMContentLoaded",function(){var ' 'a=document.getElementById("error-feedback"),c=document.getElementById("feedback-button-yes"),d=document.getElementById("feedback-button-no");"classList"in ' 'a&&(a.classList.remove("feedback-hidden"),c.addEventListener("click",function(){e(!0)}),d.addEventListener("click",function(){e(!1)}))})}})();\n' '</script>\n' '<script defer src="https://api.radar.cloudflare.com/beacon.js"></script>\n' '</head>\n' '<body>\n' '<div id="cf-wrapper">\n' '<div class="cf-alert cf-alert-error cf-cookie-error hidden" ' 'id="cookie-alert" data-translate="enable_cookies">Please enable ' 'cookies.</div>\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-15 ' 'antialiased">\n' '<h1 class="inline-block md:block mr-2 md:mb-2 font-light text-60 md:text-3xl ' 'text-black-dark leading-tight">\n' '<span data-translate="error">Error</span>\n' '<span>1015</span>\n' '</h1>\n' '<span class="inline-block md:block heading-ray-id font-mono text-15 ' 'lg:text-sm lg:leading-relaxed">Ray ID: 705149ee685b801e •</span>\n' '<span class="inline-block md:block heading-ray-id font-mono text-15 ' 'lg:text-sm lg:leading-relaxed">2022-05-02 14:01:25 UTC</span>\n' '<h2 class="text-gray-600 leading-1.3 text-3xl lg:text-2xl font-light">You ' 'are being rate limited</h2>\n' '</header>\n' '<section class="w-240 lg:w-full mx-auto mb-8 lg:px-8">\n' '<div id="what-happened-section" class="w-1/2 md:w-full">\n' '<h2 class="text-3xl leading-tight font-normal mb-4 text-black-dark ' 'antialiased" data-translate="what_happened">What happened?</h2>\n' '<p>The owner of this website (api.everipedia.org) has banned you temporarily ' 'from accessing this website.</p>\n' '</div>\n' '</section>\n' '<div class="feedback-hidden py-8 text-center" id="error-feedback">\n' '<div id="error-feedback-survey" class="footer-line-wrapper">\n' 'Was this page helpful?\n' '<button class="border border-solid bg-white cf-button cursor-pointer ml-4 ' 'px-4 py-2 rounded" id="feedback-button-yes" type="button">Yes</button>\n' '<button class="border border-solid bg-white cf-button cursor-pointer ml-4 ' 'px-4 py-2 rounded" id="feedback-button-no" type="button">No</button>\n' '</div>\n' '<div class="feedback-success feedback-hidden" id="error-feedback-success">\n' 'Thank you for your feedback!\n' '</div>\n' '</div>\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="t… <trimmed 5264 bytes string> self <json.decoder.JSONDecoder object at 0x7f2d6fe93250> * DURING HANDLING OF THE ABOVE EXCEPTION (0), ANOTHER EXCEPTION OCCURRED: * /home/ubuntu/.local/lib/python3.8/site-packages/django/core/handlers/exception.py, line 47, in inner 40. response = await sync_to_async(response_for_exception, thread_sensitive=False)(request, exc) 41. return response 42. return inner 43. else: 44. @wraps(get_response) 45. def inner(request): 46. try: 47. response = get_response(request) … 48. except Exception as exc: 49. response = response_for_exception(request, exc) 50. return response 51. return inner 52. 53. ▶ Local vars Variable Value exc JSONDecodeError('Expecting value: line 1 column 1 (char 0)') get_response <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f2d6f6a9220>> request <WSGIRequest: GET '/candidates/238+members+of+%22Whiskey+Ring%22+accused+of+anti-US+activities/'> * /home/ubuntu/.local/lib/python3.8/site-packages/django/core/handlers/base.py, line 181, in _get_response 174. 175. if response is None: 176. wrapped_callback = self.make_view_atomic(callback) 177. # If it is an asynchronous view, run it in a subthread. 178. if asyncio.iscoroutinefunction(wrapped_callback): 179. wrapped_callback = async_to_sync(wrapped_callback) 180. try: 181. response = wrapped_callback(request, *callback_args, **callback_kwargs) … 182. except Exception as e: 183. response = self.process_exception_by_middleware(e, request) 184. if response is None: 185. raise 186. 187. # Complain if the view returned None (a common error). ▶ Local vars Variable Value callback <function candidates at 0x7f2d6dc713a0> callback_args () callback_kwargs {'keyword': '238+members+of+"Whiskey+Ring"+accused+of+anti-US+activities'} middleware_method <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f2d6e9da3d0>> request <WSGIRequest: GET '/candidates/238+members+of+%22Whiskey+Ring%22+accused+of+anti-US+activities/'> response None self <django.core.handlers.wsgi.WSGIHandler object at 0x7f2d6f6a9220> wrapped_callback <function candidates at 0x7f2d6dc713a0> * /home/ubuntu/thtsearch/./history/views.py, line 52, in candidates 45. # "https://en.wikipedia.org/w/api.php?action=opensearch&limit=1&format=json&namespace=0&limit=10&search=" + keyword 46. # "http://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop=content&rvsection=0&titles=Agner_Krarup_Erlang" 47. ) 48. except: 49. # return JsonResponse({}, status=404) 50. return render(request, 'history/page_404.html') 51. 52. list = json.loads(res.content) … 53. 54. real = [] 55. for item in list['articles']: 56. if item['page_note'] is not None: 57. real.append(item) 58. ▶ Local vars Variable Value keyword '238+members+of+"Whiskey+Ring"+accused+of+anti-US+activities' request <WSGIRequest: GET '/candidates/238+members+of+%22Whiskey+Ring%22+accused+of+anti-US+activities/'> res <Response [429]> * /usr/lib/python3.8/json/__init__.py, line 357, in loads 350. stacklevel=2 351. ) 352. del kw['encoding'] 353. 354. if (cls is None and object_hook is None and 355. parse_int is None and parse_float is None and 356. parse_constant is None and object_pairs_hook is None and not kw): 357. return _default_decoder.decode(s) … 358. if cls is None: 359. cls = JSONDecoder 360. if object_hook is not None: 361. kw['object_hook'] = object_hook 362. if object_pairs_hook is not None: 363. kw['object_pairs_hook'] = object_pairs_hook ▶ Local vars Variable Value cls None kw {} object_hook None object_pairs_hook None parse_constant None parse_float None parse_int None s ('<!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' '<title>Access denied | api.everipedia.org used Cloudflare to restrict ' 'access</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' '<script>\n' '(function(){if(document.addEventListener&&window.XMLHttpRequest&&JSON&&JSON.stringify){var ' 'e=function(a){var ' 'c=document.getElementById("error-feedback-survey"),d=document.getElementById("error-feedback-success"),b=new ' 'XMLHttpRequest;a={event:"feedback ' 'clicked",properties:{errorCode:1015,helpful:a,version:1}};b.open("POST","https://sparrow.cloudflare.com/api/v1/event");b.setRequestHeader("Content-Type","application/json");b.setRequestHeader("Sparrow-Source-Key","c771f0e4b54944bebf4261d44bd79a1e");\n' 'b.send(JSON.stringify(a));c.classList.add("feedback-hidden");d.classList.remove("feedback-hidden")};document.addEventListener("DOMContentLoaded",function(){var ' 'a=document.getElementById("error-feedback"),c=document.getElementById("feedback-button-yes"),d=document.getElementById("feedback-button-no");"classList"in ' 'a&&(a.classList.remove("feedback-hidden"),c.addEventListener("click",function(){e(!0)}),d.addEventListener("click",function(){e(!1)}))})}})();\n' '</script>\n' '<script defer src="https://api.radar.cloudflare.com/beacon.js"></script>\n' '</head>\n' '<body>\n' '<div id="cf-wrapper">\n' '<div class="cf-alert cf-alert-error cf-cookie-error hidden" ' 'id="cookie-alert" data-translate="enable_cookies">Please enable ' 'cookies.</div>\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-15 ' 'antialiased">\n' '<h1 class="inline-block md:block mr-2 md:mb-2 font-light text-60 md:text-3xl ' 'text-black-dark leading-tight">\n' '<span data-translate="error">Error</span>\n' '<span>1015</span>\n' '</h1>\n' '<span class="inline-block md:block heading-ray-id font-mono text-15 ' 'lg:text-sm lg:leading-relaxed">Ray ID: 705149ee685b801e •</span>\n' '<span class="inline-block md:block heading-ray-id font-mono text-15 ' 'lg:text-sm lg:leading-relaxed">2022-05-02 14:01:25 UTC</span>\n' '<h2 class="text-gray-600 leading-1.3 text-3xl lg:text-2xl font-light">You ' 'are being rate limited</h2>\n' '</header>\n' '<section class="w-240 lg:w-full mx-auto mb-8 lg:px-8">\n' '<div id="what-happened-section" class="w-1/2 md:w-full">\n' '<h2 class="text-3xl leading-tight font-normal mb-4 text-black-dark ' 'antialiased" data-translate="what_happened">What happened?</h2>\n' '<p>The owner of this website (api.everipedia.org) has banned you temporarily ' 'from accessing this website.</p>\n' '</div>\n' '</section>\n' '<div class="feedback-hidden py-8 text-center" id="error-feedback">\n' '<div id="error-feedback-survey" class="footer-line-wrapper">\n' 'Was this page helpful?\n' '<button class="border border-solid bg-white cf-button cursor-pointer ml-4 ' 'px-4 py-2 rounded" id="feedback-button-yes" type="button">Yes</button>\n' '<button class="border border-solid bg-white cf-button cursor-pointer ml-4 ' 'px-4 py-2 rounded" id="feedback-button-no" type="button">No</button>\n' '</div>\n' '<div class="feedback-success feedback-hidden" id="error-feedback-success">\n' 'Thank you for your feedback!\n' '</div>\n' '</div>\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="t… <trimmed 5264 bytes string> * /usr/lib/python3.8/json/decoder.py, line 337, in decode 330. 331. 332. def decode(self, s, _w=WHITESPACE.match): 333. """Return the Python representation of ``s`` (a ``str`` instance 334. containing a JSON document). 335. 336. """ 337. obj, end = self.raw_decode(s, idx=_w(s, 0).end()) … 338. end = _w(s, end).end() 339. if end != len(s): 340. raise JSONDecodeError("Extra data", s, end) 341. return obj 342. 343. def raw_decode(self, s, idx=0): ▶ Local vars Variable Value _w <built-in method match of re.Pattern object at 0x7f2d7080bdb0> s ('<!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' '<title>Access denied | api.everipedia.org used Cloudflare to restrict ' 'access</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' '<script>\n' '(function(){if(document.addEventListener&&window.XMLHttpRequest&&JSON&&JSON.stringify){var ' 'e=function(a){var ' 'c=document.getElementById("error-feedback-survey"),d=document.getElementById("error-feedback-success"),b=new ' 'XMLHttpRequest;a={event:"feedback ' 'clicked",properties:{errorCode:1015,helpful:a,version:1}};b.open("POST","https://sparrow.cloudflare.com/api/v1/event");b.setRequestHeader("Content-Type","application/json");b.setRequestHeader("Sparrow-Source-Key","c771f0e4b54944bebf4261d44bd79a1e");\n' 'b.send(JSON.stringify(a));c.classList.add("feedback-hidden");d.classList.remove("feedback-hidden")};document.addEventListener("DOMContentLoaded",function(){var ' 'a=document.getElementById("error-feedback"),c=document.getElementById("feedback-button-yes"),d=document.getElementById("feedback-button-no");"classList"in ' 'a&&(a.classList.remove("feedback-hidden"),c.addEventListener("click",function(){e(!0)}),d.addEventListener("click",function(){e(!1)}))})}})();\n' '</script>\n' '<script defer src="https://api.radar.cloudflare.com/beacon.js"></script>\n' '</head>\n' '<body>\n' '<div id="cf-wrapper">\n' '<div class="cf-alert cf-alert-error cf-cookie-error hidden" ' 'id="cookie-alert" data-translate="enable_cookies">Please enable ' 'cookies.</div>\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-15 ' 'antialiased">\n' '<h1 class="inline-block md:block mr-2 md:mb-2 font-light text-60 md:text-3xl ' 'text-black-dark leading-tight">\n' '<span data-translate="error">Error</span>\n' '<span>1015</span>\n' '</h1>\n' '<span class="inline-block md:block heading-ray-id font-mono text-15 ' 'lg:text-sm lg:leading-relaxed">Ray ID: 705149ee685b801e •</span>\n' '<span class="inline-block md:block heading-ray-id font-mono text-15 ' 'lg:text-sm lg:leading-relaxed">2022-05-02 14:01:25 UTC</span>\n' '<h2 class="text-gray-600 leading-1.3 text-3xl lg:text-2xl font-light">You ' 'are being rate limited</h2>\n' '</header>\n' '<section class="w-240 lg:w-full mx-auto mb-8 lg:px-8">\n' '<div id="what-happened-section" class="w-1/2 md:w-full">\n' '<h2 class="text-3xl leading-tight font-normal mb-4 text-black-dark ' 'antialiased" data-translate="what_happened">What happened?</h2>\n' '<p>The owner of this website (api.everipedia.org) has banned you temporarily ' 'from accessing this website.</p>\n' '</div>\n' '</section>\n' '<div class="feedback-hidden py-8 text-center" id="error-feedback">\n' '<div id="error-feedback-survey" class="footer-line-wrapper">\n' 'Was this page helpful?\n' '<button class="border border-solid bg-white cf-button cursor-pointer ml-4 ' 'px-4 py-2 rounded" id="feedback-button-yes" type="button">Yes</button>\n' '<button class="border border-solid bg-white cf-button cursor-pointer ml-4 ' 'px-4 py-2 rounded" id="feedback-button-no" type="button">No</button>\n' '</div>\n' '<div class="feedback-success feedback-hidden" id="error-feedback-success">\n' 'Thank you for your feedback!\n' '</div>\n' '</div>\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="t… <trimmed 5264 bytes string> self <json.decoder.JSONDecoder object at 0x7f2d6fe93250> * /usr/lib/python3.8/json/decoder.py, line 355, in raw_decode 348. This can be used to decode a JSON document from a string that may 349. have extraneous data at the end. 350. 351. """ 352. try: 353. obj, end = self.scan_once(s, idx) 354. except StopIteration as err: 355. raise JSONDecodeError("Expecting value", s, err.value) from None … 356. return obj, end ▶ Local vars Variable Value idx 0 s ('<!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' '<title>Access denied | api.everipedia.org used Cloudflare to restrict ' 'access</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' '<script>\n' '(function(){if(document.addEventListener&&window.XMLHttpRequest&&JSON&&JSON.stringify){var ' 'e=function(a){var ' 'c=document.getElementById("error-feedback-survey"),d=document.getElementById("error-feedback-success"),b=new ' 'XMLHttpRequest;a={event:"feedback ' 'clicked",properties:{errorCode:1015,helpful:a,version:1}};b.open("POST","https://sparrow.cloudflare.com/api/v1/event");b.setRequestHeader("Content-Type","application/json");b.setRequestHeader("Sparrow-Source-Key","c771f0e4b54944bebf4261d44bd79a1e");\n' 'b.send(JSON.stringify(a));c.classList.add("feedback-hidden");d.classList.remove("feedback-hidden")};document.addEventListener("DOMContentLoaded",function(){var ' 'a=document.getElementById("error-feedback"),c=document.getElementById("feedback-button-yes"),d=document.getElementById("feedback-button-no");"classList"in ' 'a&&(a.classList.remove("feedback-hidden"),c.addEventListener("click",function(){e(!0)}),d.addEventListener("click",function(){e(!1)}))})}})();\n' '</script>\n' '<script defer src="https://api.radar.cloudflare.com/beacon.js"></script>\n' '</head>\n' '<body>\n' '<div id="cf-wrapper">\n' '<div class="cf-alert cf-alert-error cf-cookie-error hidden" ' 'id="cookie-alert" data-translate="enable_cookies">Please enable ' 'cookies.</div>\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-15 ' 'antialiased">\n' '<h1 class="inline-block md:block mr-2 md:mb-2 font-light text-60 md:text-3xl ' 'text-black-dark leading-tight">\n' '<span data-translate="error">Error</span>\n' '<span>1015</span>\n' '</h1>\n' '<span class="inline-block md:block heading-ray-id font-mono text-15 ' 'lg:text-sm lg:leading-relaxed">Ray ID: 705149ee685b801e •</span>\n' '<span class="inline-block md:block heading-ray-id font-mono text-15 ' 'lg:text-sm lg:leading-relaxed">2022-05-02 14:01:25 UTC</span>\n' '<h2 class="text-gray-600 leading-1.3 text-3xl lg:text-2xl font-light">You ' 'are being rate limited</h2>\n' '</header>\n' '<section class="w-240 lg:w-full mx-auto mb-8 lg:px-8">\n' '<div id="what-happened-section" class="w-1/2 md:w-full">\n' '<h2 class="text-3xl leading-tight font-normal mb-4 text-black-dark ' 'antialiased" data-translate="what_happened">What happened?</h2>\n' '<p>The owner of this website (api.everipedia.org) has banned you temporarily ' 'from accessing this website.</p>\n' '</div>\n' '</section>\n' '<div class="feedback-hidden py-8 text-center" id="error-feedback">\n' '<div id="error-feedback-survey" class="footer-line-wrapper">\n' 'Was this page helpful?\n' '<button class="border border-solid bg-white cf-button cursor-pointer ml-4 ' 'px-4 py-2 rounded" id="feedback-button-yes" type="button">Yes</button>\n' '<button class="border border-solid bg-white cf-button cursor-pointer ml-4 ' 'px-4 py-2 rounded" id="feedback-button-no" type="button">No</button>\n' '</div>\n' '<div class="feedback-success feedback-hidden" id="error-feedback-success">\n' 'Thank you for your feedback!\n' '</div>\n' '</div>\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="t… <trimmed 5264 bytes string> self <json.decoder.JSONDecoder object at 0x7f2d6fe93250> Environment: Request Method: GET Request URL: http://thtsearch.com/candidates/238+members+of+%22Whiskey+Ring%22+accused+of+anti-US+activities/ Django Version: 3.1.7 Python Version: 3.8.10 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'history'] Installed Middleware: ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] Traceback (most recent call last): File "/usr/lib/python3.8/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) During handling of the above exception (0), another exception occurred: File "/home/ubuntu/.local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) File "/home/ubuntu/.local/lib/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/home/ubuntu/thtsearch/./history/views.py", line 52, in candidates list = json.loads(res.content) File "/usr/lib/python3.8/json/__init__.py", line 357, in loads return _default_decoder.decode(s) File "/usr/lib/python3.8/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None Exception Type: JSONDecodeError at /candidates/238+members+of+"Whiskey+Ring"+accused+of+anti-US+activities/ Exception Value: Expecting value: line 1 column 1 (char 0) REQUEST INFORMATION USER AnonymousUser GET No GET data POST No POST data FILES No FILES data COOKIES No cookie data META Variable Value HTTP_ACCEPT 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' HTTP_ACCEPT_ENCODING 'gzip' HTTP_ACCEPT_LANGUAGE 'fr-FR,fr;q=0.9' HTTP_CACHE_CONTROL 'no-cache' HTTP_CDN_LOOP 'cloudflare' HTTP_CF_CONNECTING_IP '2001:41d0:8:d154::6' HTTP_CF_IPCOUNTRY 'FR' HTTP_CF_RAY '705149edb959998a-CDG' HTTP_CF_VISITOR '{"scheme":"https"}' HTTP_CONNECTION 'close' HTTP_HOST 'thtsearch.com' HTTP_PRAGMA 'no-cache' HTTP_SEC_FETCH_DEST 'document' HTTP_SEC_FETCH_MODE 'navigate' HTTP_SEC_FETCH_SITE 'none' HTTP_SEC_FETCH_USER '?1' HTTP_UPGRADE_INSECURE_REQUESTS '1' HTTP_USER_AGENT ('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like ' 'Gecko) Chrome/101.0.4951.41 Safari/537.36') HTTP_X_FORWARDED_FOR '2001:41d0:8:d154::6, 141.101.69.202' HTTP_X_FORWARDED_PROTO 'http' HTTP_X_REAL_IP '141.101.69.202' PATH_INFO '/candidates/238+members+of+"Whiskey+Ring"+accused+of+anti-US+activities/' QUERY_STRING '' REMOTE_ADDR '127.0.0.1' REMOTE_PORT '26844' REQUEST_METHOD 'GET' REQUEST_URI '/candidates/238+members+of+%22Whiskey+Ring%22+accused+of+anti-US+activities/' SCRIPT_NAME '' SERVER_NAME 'ip-172-31-36-228' SERVER_PORT '8000' SERVER_PROTOCOL 'HTTP/1.0' UWSGI_ROUTER 'http' uwsgi.core 1 uwsgi.node b'ip-172-31-36-228' uwsgi.version b'2.0.19.1' wsgi.errors <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'> wsgi.file_wrapper <built-in function uwsgi_sendfile> wsgi.input <uwsgi._Input object at 0x7f2d6d8e0150> wsgi.multiprocess True wsgi.multithread True wsgi.run_once False wsgi.url_scheme 'http' wsgi.version (1, 0) SETTINGS USING SETTINGS MODULE THTSEARCH.SETTINGS Setting Value ABSOLUTE_URL_OVERRIDES {} ADMINS [] ALLOWED_HOSTS ['*'] APPEND_SLASH True AUTHENTICATION_BACKENDS ['django.contrib.auth.backends.ModelBackend'] AUTH_PASSWORD_VALIDATORS '********************' AUTH_USER_MODEL 'auth.User' BASE_DIR '/home/ubuntu/thtsearch' CACHES {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} CACHE_MIDDLEWARE_ALIAS 'default' CACHE_MIDDLEWARE_KEY_PREFIX '********************' CACHE_MIDDLEWARE_SECONDS 600 CSRF_COOKIE_AGE 31449600 CSRF_COOKIE_DOMAIN None CSRF_COOKIE_HTTPONLY False CSRF_COOKIE_NAME 'csrftoken' CSRF_COOKIE_PATH '/' CSRF_COOKIE_SAMESITE 'Lax' CSRF_COOKIE_SECURE False CSRF_FAILURE_VIEW 'django.views.csrf.csrf_failure' CSRF_HEADER_NAME 'HTTP_X_CSRFTOKEN' CSRF_TRUSTED_ORIGINS [] CSRF_USE_SESSIONS False DATABASES {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': 'localhost', 'NAME': 'thtsearch', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'thtsearch_user'}} DATABASE_ROUTERS [] DATA_UPLOAD_MAX_MEMORY_SIZE 2621440 DATA_UPLOAD_MAX_NUMBER_FIELDS 1000 DATETIME_FORMAT 'N j, Y, P' DATETIME_INPUT_FORMATS ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M'] DATE_FORMAT 'N j, Y' DATE_INPUT_FORMATS ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'] DEBUG True DEBUG_PROPAGATE_EXCEPTIONS False DECIMAL_SEPARATOR '.' DEFAULT_CHARSET 'utf-8' DEFAULT_EXCEPTION_REPORTER 'django.views.debug.ExceptionReporter' DEFAULT_EXCEPTION_REPORTER_FILTER 'django.views.debug.SafeExceptionReporterFilter' DEFAULT_FILE_STORAGE 'django.core.files.storage.FileSystemStorage' DEFAULT_FROM_EMAIL 'webmaster@localhost' DEFAULT_HASHING_ALGORITHM 'sha256' DEFAULT_INDEX_TABLESPACE '' DEFAULT_TABLESPACE '' DISALLOWED_USER_AGENTS [] EMAIL_BACKEND 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST 'smtp.ionos.com' EMAIL_HOST_PASSWORD '********************' EMAIL_HOST_USER 'info@thtsearch.com' EMAIL_PORT 587 EMAIL_SSL_CERTFILE None EMAIL_SSL_KEYFILE '********************' EMAIL_SUBJECT_PREFIX '[Django] ' EMAIL_TIMEOUT None EMAIL_USE_LOCALTIME False EMAIL_USE_SSL False EMAIL_USE_TLS True FILE_UPLOAD_DIRECTORY_PERMISSIONS None FILE_UPLOAD_HANDLERS ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] FILE_UPLOAD_MAX_MEMORY_SIZE 2621440 FILE_UPLOAD_PERMISSIONS 420 FILE_UPLOAD_TEMP_DIR None FIRST_DAY_OF_WEEK 0 FIXTURE_DIRS [] FORCE_SCRIPT_NAME None FORMAT_MODULE_PATH None FORM_RENDERER 'django.forms.renderers.DjangoTemplates' GOOGLE_RECAPTCHA_SECRET_KEY '********************' IGNORABLE_404_URLS [] INSTALLED_APPS ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'history'] INTERNAL_IPS [] LANGUAGES [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ar-dz', 'Algerian Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('hy', 'Armenian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('ig', 'Igbo'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('ky', 'Kyrgyz'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmål'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('tg', 'Tajik'), ('th', 'Thai'), ('tk', 'Turkmen'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('uz', 'Uzbek'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] LANGUAGES_BIDI ['he', 'ar', 'ar-dz', 'fa', 'ur'] LANGUAGE_CODE 'en-us' LANGUAGE_COOKIE_AGE None LANGUAGE_COOKIE_DOMAIN None LANGUAGE_COOKIE_HTTPONLY False LANGUAGE_COOKIE_NAME 'django_language' LANGUAGE_COOKIE_PATH '/' LANGUAGE_COOKIE_SAMESITE None LANGUAGE_COOKIE_SECURE False LOCALE_PATHS [] LOGGING {} LOGGING_CONFIG 'logging.config.dictConfig' LOGIN_REDIRECT_URL '/accounts/profile/' LOGIN_URL '/accounts/login/' LOGOUT_REDIRECT_URL None MANAGERS [] MEDIA_ROOT '' MEDIA_URL '/' MESSAGE_STORAGE 'django.contrib.messages.storage.fallback.FallbackStorage' MIDDLEWARE ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] MIGRATION_MODULES {} MONTH_DAY_FORMAT 'F j' NUMBER_GROUPING 0 PASSWORD_HASHERS '********************' PASSWORD_RESET_TIMEOUT '********************' PASSWORD_RESET_TIMEOUT_DAYS '********************' PREPEND_WWW False ROOT_URLCONF 'thtsearch.urls' SECRET_KEY '********************' SECURE_BROWSER_XSS_FILTER False SECURE_CONTENT_TYPE_NOSNIFF True SECURE_HSTS_INCLUDE_SUBDOMAINS False SECURE_HSTS_PRELOAD False SECURE_HSTS_SECONDS 0 SECURE_PROXY_SSL_HEADER None SECURE_REDIRECT_EXEMPT [] SECURE_REFERRER_POLICY 'same-origin' SECURE_SSL_HOST None SECURE_SSL_REDIRECT False SERVER_EMAIL 'root@localhost' SESSION_CACHE_ALIAS 'default' SESSION_COOKIE_AGE 1209600 SESSION_COOKIE_DOMAIN None SESSION_COOKIE_HTTPONLY True SESSION_COOKIE_NAME 'sessionid' SESSION_COOKIE_PATH '/' SESSION_COOKIE_SAMESITE 'Lax' SESSION_COOKIE_SECURE False SESSION_ENGINE 'django.contrib.sessions.backends.db' SESSION_EXPIRE_AT_BROWSER_CLOSE False SESSION_FILE_PATH None SESSION_SAVE_EVERY_REQUEST False SESSION_SERIALIZER 'django.contrib.sessions.serializers.JSONSerializer' SETTINGS_MODULE 'thtsearch.settings' SHORT_DATETIME_FORMAT 'm/d/Y P' SHORT_DATE_FORMAT 'm/d/Y' SIGNING_BACKEND 'django.core.signing.TimestampSigner' SILENCED_SYSTEM_CHECKS [] STATICFILES_DIRS [] STATICFILES_FINDERS ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] STATICFILES_STORAGE 'django.contrib.staticfiles.storage.StaticFilesStorage' STATIC_ROOT None STATIC_URL '/static/' TEMPLATES [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages']}}] TEST_NON_SERIALIZED_APPS [] TEST_RUNNER 'django.test.runner.DiscoverRunner' THOUSAND_SEPARATOR ',' TIME_FORMAT 'P' TIME_INPUT_FORMATS ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] TIME_ZONE 'UTC' USE_I18N True USE_L10N True USE_THOUSAND_SEPARATOR False USE_TZ True USE_X_FORWARDED_HOST False USE_X_FORWARDED_PORT False WSGI_APPLICATION 'thtsearch.wsgi.application' X_FRAME_OPTIONS 'DENY' YEAR_MONTH_FORMAT 'F Y' You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard page generated by the handler for this status code.