Expecting value: line 1 column 1 (char 0)
Request Method: | GET |
---|---|
Request URL: | https://hatlastravel.com/widget/photo?lat=39.4741206&lng=-0.3787522&partner=cityzeum |
Django Version: | 3.0.6 |
Exception Type: | JSONDecodeError |
Exception Value: | Expecting value: line 1 column 1 (char 0) |
Exception Location: | /usr/lib/python3.7/json/decoder.py in raw_decode, line 355 |
Python Executable: | /home/lucas/hatlas-vision/hatlas_env_v2/bin/python |
Python Version: | 3.7.5 |
Python Path: | ['/home/lucas/hatlas-vision/hatlas_web', '/home/lucas/hatlas-vision/hatlas_env_v2/bin', '/usr/lib/python37.zip', '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/home/lucas/hatlas-vision/hatlas_env_v2/lib/python3.7/site-packages', '/home/lucas/hatlas-vision/hatlas_env_v2/lib/python3.7/site-packages/stability_sdk/interfaces/gooseai/generation', '/home/lucas/hatlas-vision/hatlas_env_v2/lib/python3.7/site-packages/stability_sdk/interfaces/src/tensorizer/tensors'] |
Server time: | Fri, 29 Mar 2024 10:42:33 +0000 |
/usr/lib/python3.7/json/decoder.py
in raw_decode
representation and the index in ``s`` where the document ended.
This can be used to decode a JSON document from a string that may
have extraneous data at the end.
"""
try:
obj, end = self.scan_once(s, idx)…
except StopIteration as err:
raise JSONDecodeError("Expecting value", s, err.value) from None
return obj, end
Variable | Value |
---|---|
idx | 0 |
s | '' |
self | <json.decoder.JSONDecoder object at 0x7fc8b5fc6f10> |
/home/lucas/hatlas-vision/hatlas_env_v2/lib/python3.7/site-packages/django/core/handlers/exception.py
in inner
This decorator is automatically applied to all middleware to ensure that
no middleware leaks an exception and that the next middleware in the stack
can rely on getting a response instead of an exception.
"""
@wraps(get_response)
def inner(request):
try:
response = get_response(request)…
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
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 0x7fc8b19ef910>> |
request | <WSGIRequest: GET '/widget/photo?lat=39.4741206&lng=-0.3787522&partner=cityzeum'> |
/home/lucas/hatlas-vision/hatlas_env_v2/lib/python3.7/site-packages/django/core/handlers/base.py
in _get_response
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)
except Exception as e:
response = self.process_exception_by_middleware(e, request)…
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
view_name = callback.__name__
else: # CBV
Variable | Value |
---|---|
callback | <function photo at 0x7fc88fe365f0> |
callback_args | () |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fc8b1948f90>> |
request | <WSGIRequest: GET '/widget/photo?lat=39.4741206&lng=-0.3787522&partner=cityzeum'> |
resolver | <URLResolver 'hatlas_web.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=widget.views.photo, args=(), kwargs={}, url_name=photo, app_names=[], namespaces=[], route=widget/photo) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fc8b19ef910> |
wrapped_callback | <function photo at 0x7fc88fe365f0> |
/home/lucas/hatlas-vision/hatlas_env_v2/lib/python3.7/site-packages/django/core/handlers/base.py
in _get_response
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)…
except Exception as e:
response = self.process_exception_by_middleware(e, request)
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
Variable | Value |
---|---|
callback | <function photo at 0x7fc88fe365f0> |
callback_args | () |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fc8b1948f90>> |
request | <WSGIRequest: GET '/widget/photo?lat=39.4741206&lng=-0.3787522&partner=cityzeum'> |
resolver | <URLResolver 'hatlas_web.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=widget.views.photo, args=(), kwargs={}, url_name=photo, app_names=[], namespaces=[], route=widget/photo) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fc8b19ef910> |
wrapped_callback | <function photo at 0x7fc88fe365f0> |
/home/lucas/hatlas-vision/hatlas_env_v2/lib/python3.7/site-packages/django/views/decorators/clickjacking.py
in wrapped_view
XFrameOptionsMiddleware to NOT set the X-Frame-Options HTTP header. Usage:
@xframe_options_exempt
def some_view(request):
...
"""
def wrapped_view(*args, **kwargs):
resp = view_func(*args, **kwargs)…
resp.xframe_options_exempt = True
return resp
return wraps(view_func)(wrapped_view)
Variable | Value |
---|---|
args | (<WSGIRequest: GET '/widget/photo?lat=39.4741206&lng=-0.3787522&partner=cityzeum'>,) |
kwargs | {} |
view_func | <function photo at 0x7fc88fe36680> |
/home/lucas/hatlas-vision/hatlas_web/widget/views.py
in photo
partner_id = "hatlas"
partner_booking = "2054886"
partner_flight = "hatlashatlastravel"
if lat != None and lng != None:
geo_info = reverse_osm(lat, lng)
dic = return_4_pic(lat, lng, request)…
else:
geo_info = osm_geo(loc)
if geo_info["type"] == "country":
dic = return_4_country(geo_info["name"], request)
Variable | Value |
---|---|
geo_info | {'country': 'Spain', 'lat': '39.4697065', 'lng': '-0.3763353', 'name': 'Valencia'} |
lang | 'en' |
lat | 39.4741206 |
lng | -0.3787522 |
loc | None |
partner | 'cityzeum' |
partner_booking | '2092101' |
partner_flight | 'hatlascityzeum' |
partner_id | 'cityzeum' |
partner_obj | <Affiliates: Cityzeum> |
request | <WSGIRequest: GET '/widget/photo?lat=39.4741206&lng=-0.3787522&partner=cityzeum'> |
/home/lucas/hatlas-vision/hatlas_web/photogallery/views.py
in return_4_pic
"lat": post.lat,
"lng": post.lng
}
final[len(final)] = dic
ip = get_client_ip(request)
r = requests.get("http://ip-api.com/json/{0}".format(ip))
data = json.loads(r.text)…
r.close()
country_ip = data["countryCode"]
final["ip"] = {"country": country_ip}
Variable | Value |
---|---|
R | 6373.0 |
about_place_obj | <Google_graph: Cullera> |
dic | {'alt': 'white architectural photography', 'category': 'Landmark', 'description': 'Valencia, officially València, is the capital of the ' 'autonomous community of Valencia and the third-largest city ' 'in Spain after Madrid and Barcelona, with around 800,000 ' 'inhabitants in the municipality', 'distance': 3.0, 'experience': 'Point of Interest', 'img': 'https://images.unsplash.com/photo-1534166287108-181e69a3e7d8?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjE2MDExMn0', 'img_id': 'fOz4KmozTJ4', 'lat': 39.4557434680155, 'lng': -0.353135271783458, 'name': 'Valencia'} |
dist | 36.2 |
distance_check | [<Unsplash_pictures: https://unsplash.com/photos/Lk4M-VYRhOY>, <Unsplash_pictures: https://unsplash.com/photos/fOz4KmozTJ4>, <Unsplash_pictures: https://unsplash.com/photos/HT5p9JHxTHI>, <Unsplash_pictures: https://unsplash.com/photos/zji6iOfQY7A>, <Unsplash_pictures: https://unsplash.com/photos/zMksCt_qxYQ>, <Unsplash_pictures: https://unsplash.com/photos/SjzXNtaqvSg>, <Unsplash_pictures: https://unsplash.com/photos/_uGI-ImEs0Q>, <Unsplash_pictures: https://unsplash.com/photos/F5uMqm4gGBo>, <Unsplash_pictures: https://unsplash.com/photos/nRAXTImpm4k>, <Unsplash_pictures: https://unsplash.com/photos/dlDyGgshZYg>, <Unsplash_pictures: https://unsplash.com/photos/G9mIphZiYN4>, <Unsplash_pictures: https://unsplash.com/photos/BC_1Ukb9vXk>, <Unsplash_pictures: https://unsplash.com/photos/tKGU3Next9Y>, <Unsplash_pictures: https://unsplash.com/photos/41ySbWkof24>, <Unsplash_pictures: https://unsplash.com/photos/GO3U8ucRMdc>, <Unsplash_pictures: https://unsplash.com/photos/B9EN3dgtopc>, <Unsplash_pictures: https://unsplash.com/photos/iKBWJ27MDAo>, <Unsplash_pictures: https://unsplash.com/photos/z8dQwTseVoo>, <Unsplash_pictures: https://unsplash.com/photos/8ONIOOSSUM4>, <Unsplash_pictures: https://unsplash.com/photos/fiAdrWivDpw>, <Unsplash_pictures: https://unsplash.com/photos/hG8M15Q6H04>, <Unsplash_pictures: https://unsplash.com/photos/0SUN0ZgSmIY>] |
elat | 0.6835267158038731 |
elon | -0.004429471108636409 |
final | {0: {'alt': 'aerial photography of high rise buildings', 'category': 'Town', 'description': 'The Metropolitan Cathedral–Basilica of the Assumption of ' "Our Lady of Valencia, alternatively known as Saint Mary's " 'Cathedral or Valencia Cathedral, is a Roman Catholic ' 'parish church in Valencia, Spain.\n', 'distance': 0.3, 'experience': 'Point of Interest', 'img': 'https://images.unsplash.com/photo-1526578664097-be6599f42415?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjE2MDExMn0', 'img_id': 'G9mIphZiYN4', 'lat': 39.47528611, 'lng': -0.37556389, 'name': 'Catedral de Valencia'}, 1: {'alt': 'brown and white concrete buildings under white clouds during ' 'daytime', 'category': 'Town', 'description': 'The Serrans Gate or Serranos Gate, also known as Serrans ' 'Towers or Serranos Towers is one of the twelve gates that ' 'formed part of the ancient city wall, the Christian Wall, ' 'of the city of Valencia, Spain', 'distance': 0.6, 'experience': 'Point of Interest', 'img': 'https://images.unsplash.com/photo-1590184297364-3fa92ed0d833?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjE2MDExMn0', 'img_id': '8ONIOOSSUM4', 'lat': 39.479053, 'lng': -0.374823, 'name': 'Torres De Serrano'}, 2: {'alt': 'white and gray bridge over blue sea under blue sky during daytime', 'category': 'Bridge', 'description': 'Palau de les Arts Reina Sofía is an opera house, ' 'performing arts centre, and urban landmark designed by ' 'Santiago Calatrava to anchor the northwest end of the ' 'City of Arts and Sciences in Valencia, Spain', 'distance': 2.9, 'experience': 'Outdoor Activities', 'img': 'https://images.unsplash.com/photo-1583265225542-9198fbe0b5ef?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjE2MDExMn0', 'img_id': 'B9EN3dgtopc', 'lat': 39.456546, 'lng': -0.353647, 'name': 'Ciutat de les Arts i les Ciències'}, 3: {'alt': 'white architectural photography', 'category': 'Landmark', 'description': 'Valencia, officially València, is the capital of the ' 'autonomous community of Valencia and the third-largest ' 'city in Spain after Madrid and Barcelona, with around ' '800,000 inhabitants in the municipality', 'distance': 3.0, 'experience': 'Point of Interest', 'img': 'https://images.unsplash.com/photo-1534166287108-181e69a3e7d8?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjE2MDExMn0', 'img_id': 'fOz4KmozTJ4', 'lat': 39.4557434680155, 'lng': -0.353135271783458, 'name': 'Valencia'}} |
ip | '3.235.76.155' |
lang | 'en' |
lat | 39.4741206 |
lat_dwn | 38.4741206 |
lat_up | 40.4741206 |
lng | -0.3787522 |
lng_dwn | -1.3787522 |
lng_up | 0.6212478 |
pic | <Unsplash_pictures: https://unsplash.com/photos/ZlrHppFtI4c> |
pic_final | [<Unsplash_pictures: https://unsplash.com/photos/G9mIphZiYN4>, <Unsplash_pictures: https://unsplash.com/photos/8ONIOOSSUM4>, <Unsplash_pictures: https://unsplash.com/photos/B9EN3dgtopc>, <Unsplash_pictures: https://unsplash.com/photos/fOz4KmozTJ4>] |
place_name_check | ["Benidorm is a city and municipality in the province of Alicante, on Spain's " 'Mediterranean coast', 'Valencia, officially València, is the capital of the autonomous community of ' 'Valencia and the third-largest city in Spain after Madrid and Barcelona, ' 'with around 800,000 inhabitants in the municipality', 'Calp is a coastal town located in the comarca of Marina Alta, in the ' 'province of Alicante, Valencian Community, Spain, by the Mediterranean Sea', 'Dénia, is a historical coastal city in the province of Alicante, Spain, on ' 'the Costa Blanca halfway between Alicante and Valencia, and the capital and ' 'judicial seat of the comarca of Marina Alta', 'Peníscola or Peñíscola, anglicised as Peniscola, is a municipality in the ' 'Province of Castellón, Valencian Community, Spain', 'Finestrat is a municipality in the comarca of Marina Baixa, Alicante in the ' 'Valencian Community, Spain', 'Chera is a municipality in the comarca of Requena-Utiel in the Valencian ' 'Community, Spain', 'The Museu de les Ciències Príncipe Felipe is an important visitor attraction ' 'in Valencia, Spain', "L'Oceanogràfic is an oceanarium situated on the dry Turia River bed to the " 'southeast of the city center of Valencia, Spain, where different marine ' 'habitats are represented', 'Busot is a municipality in the comarca of Alacantí in the Valencian ' 'Community, Spain', 'The Metropolitan Cathedral–Basilica of the Assumption of Our Lady of ' "Valencia, alternatively known as Saint Mary's Cathedral or Valencia " 'Cathedral, is a Roman Catholic parish church in Valencia, Spain', 'Bicorp is a municipality in the comarca of Canal de Navarrés in the ' 'Valencian Community, Spain', "Bocairent is a municipality in the comarca of Vall d'Albaida in the " 'Valencian Community, Spain', 'La Matanza de Acentejo is a town near the north coast of Tenerife, Canary ' 'Islands, Spain', 'El Castell de Guadalest or simply Guadalest is a Valencian town and ' 'municipality located in a mountainous area of the comarca of Marina Baixa, ' 'in the province of Alicante, Spain', 'Palau de les Arts Reina Sofía is an opera house, performing arts centre, and ' 'urban landmark designed by Santiago Calatrava to anchor the northwest end of ' 'the City of Arts and Sciences in Valencia, Spain', 'Biarritz is a city on the Bay of Biscay, on the Atlantic coast in the ' 'Pyrénées-Atlantiques department in the French Basque Country in southwestern ' 'France', 'Alboraya or Alboraia is a town and municipality of the province of Valencia, ' 'Spain', 'The Serrans Gate or Serranos Gate, also known as Serrans Towers or Serranos ' 'Towers is one of the twelve gates that formed part of the ancient city wall, ' 'the Christian Wall, of the city of Valencia, Spain', 'Altea is a city and municipality located in the Valencian Community, Spain, ' 'on the section of Mediterranean coast called the Costa Blanca', 'Chulilla is a municipality in the comarca of Los Serranos in the Valencian ' 'Community, Spain', 'Cullera is a city and municipality of Spain located in the Valencian ' 'Community'] |
poi_check | ['Benidorm', 'Ciudad de las Artes y las Ciencias', 'Valencia', 'Calp', 'Dénia', 'Peniscola', 'Finestrat', 'Cala Moraig', 'Calpe', 'Chera', 'Museu de les Ciències Príncipe Felipe', 'Camping Los Botijos.', 'Oceanográfico', 'Av. del Professor López Piñero', 'Busot', 'Av. Dr. Severo Ochoa', 'Catedral de Valencia', 'Av. Ferrandis Salvador', 'Bicorp', 'Balcón del Mediterráneo', 'CV-20', 'Calle Cuesta', 'Sella', 'Bocairent', 'Calle de Oslo', 'Calle Larga', 'Carrer de la Ermita', 'Partida Manzanera', 'Guadalest', 'Illa del Portitxol', 'Calle Laredo', 'Ciutat de les Arts i les Ciències', 'Biar', 'Alboraya', 'Jardín del Turia', 'Torres De Serrano', 'Valencia Cathedral', 'Altea', 'Calle de Torrevieja', 'Port Saplaya', 'Xulilla', 'Cullera'] |
post | <Unsplash_pictures: https://unsplash.com/photos/fOz4KmozTJ4> |
r | <Response [429]> |
request | <WSGIRequest: GET '/widget/photo?lat=39.4741206&lng=-0.3787522&partner=cityzeum'> |
results | [<Unsplash_pictures: https://unsplash.com/photos/Lk4M-VYRhOY>, <Unsplash_pictures: https://unsplash.com/photos/8RRklCkQj5Q>, <Unsplash_pictures: https://unsplash.com/photos/pYS0LyNDhsg>, <Unsplash_pictures: https://unsplash.com/photos/fOz4KmozTJ4>, <Unsplash_pictures: https://unsplash.com/photos/HT5p9JHxTHI>, <Unsplash_pictures: https://unsplash.com/photos/zji6iOfQY7A>, <Unsplash_pictures: https://unsplash.com/photos/zMksCt_qxYQ>, <Unsplash_pictures: https://unsplash.com/photos/SjzXNtaqvSg>, <Unsplash_pictures: https://unsplash.com/photos/LSLgoPFucRQ>, <Unsplash_pictures: https://unsplash.com/photos/mHV7lxgV0yg>, <Unsplash_pictures: https://unsplash.com/photos/ComYA7Qa47c>, <Unsplash_pictures: https://unsplash.com/photos/OWvYsqYJ2fg>, <Unsplash_pictures: https://unsplash.com/photos/4sugmGPR0IU>, <Unsplash_pictures: https://unsplash.com/photos/fhCDJ1lTCRk>, <Unsplash_pictures: https://unsplash.com/photos/l7Q5wvKd4I4>, <Unsplash_pictures: https://unsplash.com/photos/bLBrjMXw-5k>, <Unsplash_pictures: https://unsplash.com/photos/BCgvdeHH0co>, <Unsplash_pictures: https://unsplash.com/photos/7b0EXl2NaE8>, <Unsplash_pictures: https://unsplash.com/photos/LFUO8vk0A5Q>, <Unsplash_pictures: https://unsplash.com/photos/rLHJpj8dQCw>, <Unsplash_pictures: https://unsplash.com/photos/3jlUF7-3-4E>, <Unsplash_pictures: https://unsplash.com/photos/l8BWufmQqio>, <Unsplash_pictures: https://unsplash.com/photos/JVbjN9lNHb8>, <Unsplash_pictures: https://unsplash.com/photos/_uGI-ImEs0Q>, <Unsplash_pictures: https://unsplash.com/photos/F5uMqm4gGBo>, <Unsplash_pictures: https://unsplash.com/photos/XJzcNpRCCQc>, <Unsplash_pictures: https://unsplash.com/photos/bLVP2Jt_PNw>, <Unsplash_pictures: https://unsplash.com/photos/SKsf4V9qujM>, <Unsplash_pictures: https://unsplash.com/photos/-kFBs7CP_Oo>, <Unsplash_pictures: https://unsplash.com/photos/mz5LH-MfWtg>, <Unsplash_pictures: https://unsplash.com/photos/nRAXTImpm4k>, <Unsplash_pictures: https://unsplash.com/photos/xYyOSwCHP5I>, <Unsplash_pictures: https://unsplash.com/photos/ls2vGs4sLCU>, <Unsplash_pictures: https://unsplash.com/photos/dlDyGgshZYg>, <Unsplash_pictures: https://unsplash.com/photos/KZZANekr0UU>, <Unsplash_pictures: https://unsplash.com/photos/Ozs91czcs44>, <Unsplash_pictures: https://unsplash.com/photos/G9mIphZiYN4>, <Unsplash_pictures: https://unsplash.com/photos/WDpLMOHsrCE>, <Unsplash_pictures: https://unsplash.com/photos/WcA54swEcw8>, <Unsplash_pictures: https://unsplash.com/photos/GUl-C7YQIp4>, <Unsplash_pictures: https://unsplash.com/photos/y0oYHsamVjI>, <Unsplash_pictures: https://unsplash.com/photos/Yr1-wDTJXj4>, <Unsplash_pictures: https://unsplash.com/photos/9g6XMPD2UeI>, <Unsplash_pictures: https://unsplash.com/photos/uqCbEwFMEp0>, <Unsplash_pictures: https://unsplash.com/photos/N_9VmHVEGPw>, <Unsplash_pictures: https://unsplash.com/photos/D8y1zrQMfuQ>, <Unsplash_pictures: https://unsplash.com/photos/icIOnrdkTHY>, <Unsplash_pictures: https://unsplash.com/photos/dFz3hKQidzE>, <Unsplash_pictures: https://unsplash.com/photos/BC_1Ukb9vXk>, <Unsplash_pictures: https://unsplash.com/photos/dV8LvakvXww>, <Unsplash_pictures: https://unsplash.com/photos/dQHClJKoOpk>, <Unsplash_pictures: https://unsplash.com/photos/noIUygVxkpA>, <Unsplash_pictures: https://unsplash.com/photos/ZonhfqYHlE0>, <Unsplash_pictures: https://unsplash.com/photos/9nbuHkVrKHU>, <Unsplash_pictures: https://unsplash.com/photos/MCupFjvApO0>, <Unsplash_pictures: https://unsplash.com/photos/8p8SMv1dEwY>, <Unsplash_pictures: https://unsplash.com/photos/tKGU3Next9Y>, <Unsplash_pictures: https://unsplash.com/photos/qUwRcLuEhts>, <Unsplash_pictures: https://unsplash.com/photos/UwYiwM9CxdU>, <Unsplash_pictures: https://unsplash.com/photos/qTbsa29yq8E>, <Unsplash_pictures: https://unsplash.com/photos/w7oNcfFCn04>, <Unsplash_pictures: https://unsplash.com/photos/41ySbWkof24>, <Unsplash_pictures: https://unsplash.com/photos/DTOn-B-oPj8>, <Unsplash_pictures: https://unsplash.com/photos/-OHQ0V40CBE>, <Unsplash_pictures: https://unsplash.com/photos/SjAuKOZBpOg>, … <trimmed 6866 bytes string> |
slat | 0.6889533737993195 |
slon | -0.0066104729391720666 |
/usr/lib/python3.7/json/__init__.py
in loads
raise TypeError(f'the JSON object must be str, bytes or bytearray, '
f'not {s.__class__.__name__}')
s = s.decode(detect_encoding(s), 'surrogatepass')
if (cls is None and object_hook is None and
parse_int is None and parse_float is None and
parse_constant is None and object_pairs_hook is None and not kw):
return _default_decoder.decode(s)…
if cls is None:
cls = JSONDecoder
if object_hook is not None:
kw['object_hook'] = object_hook
if object_pairs_hook is not None:
kw['object_pairs_hook'] = object_pairs_hook
Variable | Value |
---|---|
cls | None |
encoding | None |
kw | {} |
object_hook | None |
object_pairs_hook | None |
parse_constant | None |
parse_float | None |
parse_int | None |
s | '' |
/usr/lib/python3.7/json/decoder.py
in decode
def decode(self, s, _w=WHITESPACE.match):
"""Return the Python representation of ``s`` (a ``str`` instance
containing a JSON document).
"""
obj, end = self.raw_decode(s, idx=_w(s, 0).end())…
end = _w(s, end).end()
if end != len(s):
raise JSONDecodeError("Extra data", s, end)
return obj
def raw_decode(self, s, idx=0):
Variable | Value |
---|---|
_w | <built-in method match of re.Pattern object at 0x7fc8b5fc53f0> |
s | '' |
self | <json.decoder.JSONDecoder object at 0x7fc8b5fc6f10> |
/usr/lib/python3.7/json/decoder.py
in raw_decode
This can be used to decode a JSON document from a string that may
have extraneous data at the end.
"""
try:
obj, end = self.scan_once(s, idx)
except StopIteration as err:
raise JSONDecodeError("Expecting value", s, err.value) from None…
return obj, end
Variable | Value |
---|---|
idx | 0 |
s | '' |
self | <json.decoder.JSONDecoder object at 0x7fc8b5fc6f10> |
AnonymousUser
Variable | Value |
---|---|
lat | '39.4741206' |
lng | '-0.3787522' |
partner | 'cityzeum' |
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'hatlastravel.com' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '3.235.76.155' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_REAL_IP | '3.235.76.155' |
PATH_INFO | '/widget/photo' |
QUERY_STRING | 'lat=39.4741206&lng=-0.3787522&partner=cityzeum' |
RAW_URI | '/widget/photo?lat=39.4741206&lng=-0.3787522&partner=cityzeum' |
REMOTE_ADDR | '' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | 'hatlastravel.com' |
SERVER_PORT | '443' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/20.0.4' |
gunicorn.socket | <socket.socket fd=8, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0, laddr=/home/lucas/hatlas-vision/hatlas_web.sock> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7fc88245f990> |
wsgi.file_wrapper | '' |
wsgi.input | <gunicorn.http.body.Body object at 0x7fc88245ff90> |
wsgi.input_terminated | True |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
hatlas_web.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ACCOUNT_AUTHENTICATED_LOGIN_REDIRECTS | False |
ACCOUNT_EMAIL_CONFIRMATION_HMAC | False |
ACCOUNT_UNIQUE_EMAIL | True |
ACCOUNT_USERNAME_REQUIRED | False |
ADMINS | [] |
ALLOWED_HOSTS | ['*'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ('django.contrib.auth.backends.ModelBackend', 'allauth.account.auth_backends.AuthenticationBackend') |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/home/lucas/hatlas-vision/hatlas_web' |
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.postgresql_psycopg2', 'HOST': 'localhost', 'NAME': 'hatlasdb', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'admin'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 52428800 |
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', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y'] |
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_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'smtp.zoho.eu' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'contact@hatlastravel.com' |
EMAIL_PORT | 465 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | True |
EMAIL_USE_TLS | False |
FILE_CHARSET | 'utf-8' |
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' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['jobleads.apps.JobleadsConfig', 'stablediffusion.apps.StablediffusionConfig', 'blog.apps.BlogConfig', 'visitesio.apps.VisitesioConfig', 'instagramspots.apps.InstagramspotsConfig', 'roadtrip.apps.RoadtripConfig', 'seo.apps.SeoConfig', 'forms.apps.FormsConfig', 'story.apps.StoryConfig', 'search.apps.SearchConfig', 'instagram.apps.InstagramConfig', 'marketplace.apps.MarketplaceConfig', 'payments.apps.PaymentsConfig', 'getproducts.apps.GetproductsConfig', 'web_pictures.apps.WebPicturesConfig', 'photogallery.apps.PhotogalleryConfig', 'nearby.apps.NearbyConfig', 'widget.apps.WidgetConfig', 'map.apps.MapConfig', 'index.apps.IndexConfig', 'spot.apps.SpotConfig', 'travel_guide.apps.TravelGuideConfig', 'discover.apps.DiscoverConfig', 'users.apps.UsersConfig', 'Booking.apps.BookingConfig', 'api.apps.ApiConfig', 'Partners.apps.PartnersConfig', 'places.apps.PlacesConfig', 'maps.apps.MapsConfig', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'django.contrib.sitemaps', 'corsheaders', 'allauth', 'allauth.account', 'allauth.socialaccount', 'allauth.socialaccount.providers.facebook', 'allauth.socialaccount.providers.google'] |
INTERNAL_IPS | [] |
LANGUAGES | [('af', 'Afrikaans'), ('ar', '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'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('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'), ('th', 'Thai'), ('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', '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 | '/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', 'corsheaders.middleware.CorsMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'whitenoise.middleware.WhiteNoiseMiddleware', 'django.middleware.locale.LocaleMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
ROOT_URLCONF | 'hatlas_web.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 | None |
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 | 'hatlas_web.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_ID | 1 |
SOCIALACCOUNT_PROVIDERS | {'facebook': {'FIELDS': ['id', 'email', 'name', 'first_name', 'last_name', 'verified', 'locale', 'timezone', 'link', 'gender', 'updated_time', 'picture.type(large)'], 'INIT_PARAMS': {'cookie': True}, 'SCOPE': ['email', 'public_profile']}, 'google': {'SCOPE': ['profile', 'email']}} |
SOCIALACCOUNT_QUERY_EMAIL | True |
STATICFILES_DIRS | ['/home/lucas/hatlas-vision/hatlas_web/hatlas_web/assets'] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/home/lucas/hatlas-vision/hatlas_web/staticfiles' |
STATIC_URL | '/assets/' |
STRIPE_PUBLISHABLE_KEY | '********************' |
STRIPE_SECRET_KEY | '********************' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/home/lucas/hatlas-vision/hatlas_web/hatlas_web/templates'], '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 | 'hatlas_web.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.