Error occurred while processing {{ request.method }} {{ request.url.path }}
Method | {{ request.method }} |
---|---|
URL | {{ request.url }} |
Path | {{ request.url.path }} |
Status Code | 500 |
Client IP |
{{ request.client.host if request.client else 'Unknown'
}}
|
User Agent | {{ request.headers.get('user-agent')[:100] }}{% if request.headers.get('user-agent')|length > 100 %}...{% endif %} |
JSON Serialization Error:
set()
objects in your data - use
list()
instead
json.dumps(data, default=str)
for complex objects
Attribute Error:
hasattr(object, 'attribute')
to safely check for
attributes
Import Error:
pip install module_name
Key Error:
dict.get('key', default_value)
for safe access
print(dict.keys())
Index Error:
len(list)
to verify the list sizeGeneral Debugging Tips:
{{ traceback }}