75 lines
8.0 KiB
Groff
75 lines
8.0 KiB
Groff
Exception on /store/categories [GET]
|
|
Traceback (most recent call last):
|
|
File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\flask\app.py", line 1473, in wsgi_app
|
|
response = self.full_dispatch_request()
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\flask\app.py", line 882, in full_dispatch_request
|
|
rv = self.handle_user_exception(e)
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\flask_cors\extension.py", line 178, in wrapped_function
|
|
return cors_after_request(app.make_response(f(*args, **kwargs)))
|
|
^^^^^^^^^^^^^^^^^^
|
|
File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\flask\app.py", line 880, in full_dispatch_request
|
|
rv = self.dispatch_request()
|
|
^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\flask\app.py", line 865, in dispatch_request
|
|
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "C:\Users\edwar\OneDrive\Documents\Programming\Visual Studio 2022\PARTS_Web\app\controllers\store\product_category.py", line 57, in categories
|
|
return render_template('pages/store/_product_categories.html', model = model)
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\flask\templating.py", line 150, in render_template
|
|
return _render(app, template, context)
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\flask\templating.py", line 131, in _render
|
|
rv = template.render(context)
|
|
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\jinja2\environment.py", line 1304, in render
|
|
self.environment.handle_exception()
|
|
File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\jinja2\environment.py", line 939, in handle_exception
|
|
raise rewrite_traceback_stack(source=source)
|
|
File "C:\Users\edwar\OneDrive\Documents\Programming\Visual Studio 2022\PARTS_Web\app\templates\pages\store\_product_categories.html", line 1, in top-level template code
|
|
{% extends 'layouts/layout.html' %}
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "C:\Users\edwar\OneDrive\Documents\Programming\Visual Studio 2022\PARTS_Web\app\templates\layouts\layout.html", line 316, in top-level template code
|
|
{% block page_body %}{% endblock %}
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "C:\Users\edwar\OneDrive\Documents\Programming\Visual Studio 2022\PARTS_Web\app\templates\pages\store\_product_categories.html", line 99, in block 'page_body'
|
|
var currencies = {{ model.convert_list_objects_to_dict_json_by_attribute_key_default(model.access_levels) | tojson | safe }};
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "C:\Users\edwar\OneDrive\Documents\Programming\Visual Studio 2022\PARTS_Web\app\models\model_view_base.py", line 330, in convert_list_objects_to_dict_json_by_attribute_key_default
|
|
return Model_View_Base.convert_list_objects_to_dict_json_by_attribute_key(list_objects, getattr(obj_class, obj_class.FLAG_NAME_ATTR_OPTION_VALUE))
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "C:\Users\edwar\OneDrive\Documents\Programming\Visual Studio 2022\PARTS_Web\app\models\model_view_base.py", line 318, in convert_list_objects_to_dict_json_by_attribute_key
|
|
return {getattr(obj, key): obj.to_json() for obj in list_objects}
|
|
^^^^^^^^^^^^^
|
|
File "C:\Users\edwar\OneDrive\Documents\Programming\Visual Studio 2022\PARTS_Web\app\business_objects\store\access_level.py", line 66, in to_json
|
|
self.FLAG_ACTIVE: av.input_bool(self.active, self.FLAG_ACTIVE, f'{self.__class__.__name__}.to_json')
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "C:\Users\edwar\OneDrive\Documents\Programming\Visual Studio 2022\PARTS_Web\app\lib\argument_validation.py", line 493, in input_bool
|
|
raise ValueError(error_msg)
|
|
ValueError: Invalid Access_Level.to_json <class 'bool'> argument active. Type = <class 'str'>. Value = 2
|
|
Server Error: 500 Internal Server Error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
|
|
Request: 127.0.0.1 GET http /store/categories? Host: 127.0.0.1:5000
|
|
|
|
Connection: keep-alive
|
|
|
|
Pragma: no-cache
|
|
|
|
Cache-Control: no-cache
|
|
|
|
Sec-Ch-Ua: "Chromium";v="128", "Not;A=Brand";v="24", "Google Chrome";v="128"
|
|
|
|
Sec-Ch-Ua-Mobile: ?0
|
|
|
|
Sec-Ch-Ua-Platform: "Windows"
|
|
|
|
Dnt: 1
|
|
|
|
Upgrade-Insecure-Requests: 1
|
|
|
|
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
|
|
|
|
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.7
|
|
|
|
Sec-Fetch-Site: same-origin
|
|
|
|
Sec-Fetch-Mode: navigate
|
|
|
|
Sec-Fetch-User: ?1
|
|
|
|
Sec-Fetch-Dest: document
|
|
|
|
Referer: http://127.0.0.1:5000/store/categories
|
|
|
|
Accept-Encoding: gzip, deflate, br, zstd
|
|
|
|
Accept-Language: en-GB,en-US;q=0.9,en;q=0.8
|
|
|
|
Cookie: session=.eJytVlnTqkgS_SsdRnQ_tV5WgS_ixgyKoAioyP5iQBXIDrIp9Nz_PoXf7b790LNFTIQLVZlknqw8mZW_Lfy-i6smaUNotmGz-PhtAfzy5sMiKW9tVzXh4qNr-vDXP233b8XP3bDwk3zxsQjh02_gqkggzMOuKtsi6eK_32fpClTF4tdFlDRtV_oFMrgwQghHtJfAG-ibJizBeINh5Pd5t_go-zx_i5rwnlTlXwg-AeB_PN_mIDBk9_3_jzXNEgFHA5ajIcb5DBb4OBaF0eywvb0R34awSaIkhIuPyM_b8C1JSpD3MIQ3izd-eP2ME4nbvkau_hx82zffA1J_j3t5nQNffEPn1TbRrauysETyiGQIwFI050MqBCzJQJZZQ5JiYQQ53McjjgoRYogg9t_T4AMQtu0fFsJRjgMJJKdEznznkChbOQ8KdV5v1NQkdEzTDskz8R1tOqRV4u91DOzVtTJymee4XVDC2J8OTy31ci_1qpOUU0FC42CkY-jolbql04DAhkOJrVZ4n9zgPW_UttIjONSrmOV8heXutnKHMDvZjkRs4HXq8UySz1WP1W5xZ578UPS15lgaOHpFFrG3K2-KwrkYwUYfDLspeyqv24yIb0dSiGzHMXL2pGwd7jCFnJDLRXxWjnz5jGi60A1XXPO3IfBUoTT6uN_YJWljzLLFqaOQtnbKBDl8SntNI240lsbTeCJt3uaNc6B4JXO-hcNdleCVnKjWL4FYAckglMEQlmFaVje-60VR3lmVIk92l7g7esc1k8jDfkjOHhsMBK33ob08W8fA7yMI9zUjMolNWGIlc85u34mH55otmlTcFOmpF9fPnhwjke8LhhP7ZVNuhh31YEnV5ze2fIkC6wLxQ2zuy3tXPTi2bBrBXPlKoC1v2qSbxnEa6Gc7HXfiBdEgfNVJE7Y3H1EQZ4j1mmFxjvmxnyBSsGsKw95V8BcsuZrTAdeSQ3sodRpsD-tDVj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