log
This commit is contained in:
@@ -1884,3 +1884,49 @@ TypeError: 'NoneType' object is not iterable
|
||||
[2025-11-05 08:57:41,355] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0
|
||||
[2025-11-05 08:57:41,954] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 3431
|
||||
[2025-11-05 09:08:43,547] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader
|
||||
[2025-11-05 09:09:03,683] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0
|
||||
[2025-11-05 09:09:03,906] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 135
|
||||
[2025-11-05 09:10:36,751] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0
|
||||
[2025-11-05 09:10:37,388] ERROR django.request | IP: 127.0.0.1 | Path: /product/pos/api/v1/distributions/rancher_distributions/ | Internal Server Error: /product/pos/api/v1/distributions/rancher_distributions/
|
||||
Traceback (most recent call last):
|
||||
File "D:\Software\env\Lib\site-packages\django\core\handlers\exception.py", line 55, in inner
|
||||
response = get_response(request)
|
||||
^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\django\core\handlers\base.py", line 197, in _get_response
|
||||
response = wrapped_callback(request, *callback_args, **callback_kwargs)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\django\views\decorators\csrf.py", line 65, in _view_wrapper
|
||||
return view_func(request, *args, **kwargs)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\viewsets.py", line 125, in view
|
||||
return self.dispatch(request, *args, **kwargs)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 515, in dispatch
|
||||
response = self.handle_exception(exc)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 472, in handle_exception
|
||||
response = exception_handler(exc, context)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 512, in dispatch
|
||||
response = handler(request, *args, **kwargs)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\viewsets\quota_distribution_api.py", line 119, in rancher_distributions
|
||||
return self.get_paginated_response(serializer.data)
|
||||
^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 797, in data
|
||||
ret = super().data
|
||||
^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 251, in data
|
||||
self._data = self.to_representation(self.instance)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 716, in to_representation
|
||||
self.child.to_representation(item) for item in iterable
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\serializers\quota_distribution_serializers.py", line 124, in to_representation
|
||||
'base_prices': quota_pricing_items_by_type(instance.quota, sharing=sharing_list)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Project\Rasaddam_Backend\apps\product\services\services.py", line 107, in quota_pricing_items_by_type
|
||||
calculate_sharing_total_price = sum(item['amount'] for item in sharing if item['amount'] is not None)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
TypeError: 'NoneType' object is not iterable
|
||||
[2025-11-05 09:10:37,392] ERROR django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 500 149471
|
||||
|
||||
Reference in New Issue
Block a user