2023-05-15 10:55:37 - INFO - [MainThread:create_tag(): 11] - create tags called
2023-05-15 10:55:37 - INFO - [MainThread:create_tag(): 11] - create tags called
2023-05-15 10:55:37 - INFO - [MainThread:update_name(): 24] - Update name method called
2023-05-15 10:55:37 - INFO - [MainThread:update_name(): 24] - Update name method called
2023-05-15 10:55:37 - INFO - [MainThread:create_tag(): 22] - database updated
2023-05-15 10:55:37 - INFO - [MainThread:create_tag(): 22] - database updated
2023-05-16 13:01:49 - ERROR - [MainThread:<module>(): 10] - error from app cannot import name 'TestUpdate' from 'scripts.schemas.tag_schema' (E:\Asset Manager V2\scripts\schemas\tag_schema.py)
2023-05-16 13:02:00 - ERROR - [MainThread:<module>(): 10] - error from app cannot import name 'TestUpdate' from 'scripts.schemas.tag_schema' (E:\Asset Manager V2\scripts\schemas\tag_schema.py)
2023-05-16 13:02:13 - ERROR - [MainThread:<module>(): 10] - error from app cannot import name 'TestUpdate' from 'scripts.schemas.tag_schema' (E:\Asset Manager V2\scripts\schemas\tag_schema.py)
2023-05-16 13:03:35 - INFO - [MainThread:tag_creation(): 41] - creating new tag api called
2023-05-16 13:03:35 - INFO - [MainThread:tag_details(): 34] - new tag created.....
2023-05-16 13:03:35 - INFO - [MainThread:create_tag(): 37] - creating new tag
2023-05-16 13:03:35 - INFO - [MainThread:tag_details(): 47] - new tag created
2023-05-16 15:10:16 - INFO - [MainThread:tag_creation(): 53] - creating new tag api called
2023-05-16 15:10:16 - INFO - [MainThread:tag_details(): 34] - new tag created.....
2023-05-16 15:10:16 - INFO - [MainThread:create_tag(): 37] - creating new tag
2023-05-16 15:10:16 - INFO - [MainThread:tag_details(): 47] - new tag created
2023-05-16 16:27:25 - INFO - [MainThread:tag_creation(): 52] - creating new tag api called
2023-05-16 16:27:25 - INFO - [MainThread:tag_details(): 34] - new tag created.....
2023-05-16 16:27:25 - INFO - [MainThread:create_tag(): 37] - creating new tag
2023-05-16 16:27:25 - ERROR - [MainThread:update_one(): 147] - Cannot create field 'country' in element {tags: [ "" ]}, full error: {'index': 0, 'code': 28, 'errmsg': 'Cannot create field \'country\' in element {tags: [ "" ]}'}
Traceback (most recent call last):
File "E:\Asset Manager V2\scripts\utils\mongo_tools\mongo_sync.py", line 145, in update_one
pymongo.errors.WriteError: Cannot create field 'country' in element {tags: [ "" ]}, full error: {'index': 0, 'code': 28, 'errmsg': 'Cannot create field \'country\' in element {tags: [ "" ]}'}
2023-05-16 16:27:25 - ERROR - [MainThread:create_tag(): 43] - error from creating new tag Cannot create field 'country' in element {tags: [ "" ]}, full error: {'index': 0, 'code': 28, 'errmsg': 'Cannot create field \'country\' in element {tags: [ "" ]}'}
2023-05-16 16:28:21 - INFO - [MainThread:tag_creation(): 52] - creating new tag api called
2023-05-16 16:28:21 - INFO - [MainThread:tag_details(): 34] - new tag created.....
2023-05-16 16:28:21 - INFO - [MainThread:create_tag(): 37] - creating new tag
2023-05-16 16:28:21 - ERROR - [MainThread:update_one(): 147] - Cannot create field 'country' in element {tags: [ "" ]}, full error: {'index': 0, 'code': 28, 'errmsg': 'Cannot create field \'country\' in element {tags: [ "" ]}'}
Traceback (most recent call last):
File "E:\Asset Manager V2\scripts\utils\mongo_tools\mongo_sync.py", line 145, in update_one
pymongo.errors.WriteError: Cannot create field 'country' in element {tags: [ "" ]}, full error: {'index': 0, 'code': 28, 'errmsg': 'Cannot create field \'country\' in element {tags: [ "" ]}'}
2023-05-16 16:28:21 - ERROR - [MainThread:create_tag(): 43] - error from creating new tag Cannot create field 'country' in element {tags: [ "" ]}, full error: {'index': 0, 'code': 28, 'errmsg': 'Cannot create field \'country\' in element {tags: [ "" ]}'}
2023-05-16 16:35:34 - INFO - [MainThread:tag_creation(): 52] - creating new tag api called
2023-05-16 16:35:34 - INFO - [MainThread:tag_details(): 34] - new tag created.....
2023-05-16 16:35:34 - INFO - [MainThread:create_tag(): 37] - creating new tag
2023-05-16 16:35:35 - ERROR - [MainThread:update_one(): 147] - upsert must be True or False
Traceback (most recent call last):
File "E:\Asset Manager V2\scripts\utils\mongo_tools\mongo_sync.py", line 145, in update_one
File "E:\Anaconda\lib\site-packages\pymongo\mongo_client.py", line 1470, in _retry_internal
return func(session, sock_info, retryable)
File "E:\Anaconda\lib\site-packages\pymongo\collection.py", line 869, in _update
return self._update(
File "E:\Anaconda\lib\site-packages\pymongo\collection.py", line 779, in _update
common.validate_boolean("upsert", upsert)
File "E:\Anaconda\lib\site-packages\pymongo\common.py", line 164, in validate_boolean
raise TypeError("%s must be True or False" % (option,))
TypeError: upsert must be True or False
2023-05-16 16:35:35 - ERROR - [MainThread:create_tag(): 43] - error from creating new tag upsert must be True or False
2023-05-16 16:48:12 - INFO - [MainThread:tag_creation(): 52] - creating new tag api called
2023-05-16 16:48:12 - INFO - [MainThread:tag_details(): 34] - new tag created.....
2023-05-16 16:48:12 - INFO - [MainThread:create_tag(): 37] - creating new tag
2023-05-16 16:48:12 - ERROR - [MainThread:update_one(): 147] - The dollar ($) prefixed field '$push' in '$push' is not allowed in the context of an update's replacement document. Consider using an aggregation pipeline with $replaceWith., full error: {'index': 0, 'code': 52, 'errmsg': "The dollar ($) prefixed field '$push' in '$push' is not allowed in the context of an update's replacement document. Consider using an aggregation pipeline with $replaceWith."}
Traceback (most recent call last):
File "E:\Asset Manager V2\scripts\utils\mongo_tools\mongo_sync.py", line 145, in update_one
pymongo.errors.WriteError: The dollar ($) prefixed field '$push' in '$push' is not allowed in the context of an update's replacement document. Consider using an aggregation pipeline with $replaceWith., full error: {'index': 0, 'code': 52, 'errmsg': "The dollar ($) prefixed field '$push' in '$push' is not allowed in the context of an update's replacement document. Consider using an aggregation pipeline with $replaceWith."}
2023-05-16 16:48:12 - ERROR - [MainThread:create_tag(): 43] - error from creating new tag The dollar ($) prefixed field '$push' in '$push' is not allowed in the context of an update's replacement document. Consider using an aggregation pipeline with $replaceWith., full error: {'index': 0, 'code': 52, 'errmsg': "The dollar ($) prefixed field '$push' in '$push' is not allowed in the context of an update's replacement document. Consider using an aggregation pipeline with $replaceWith."}
2023-05-16 16:53:22 - INFO - [MainThread:tag_creation(): 52] - creating new tag api called
2023-05-16 16:53:22 - INFO - [MainThread:tag_details(): 34] - new tag created.....
2023-05-16 16:53:22 - INFO - [MainThread:create_tag(): 37] - creating new tag
2023-05-16 16:53:22 - ERROR - [MainThread:update_one(): 147] - The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}, full error: {'index': 0, 'code': 2, 'errmsg': "The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}"}
Traceback (most recent call last):
File "E:\Asset Manager V2\scripts\utils\mongo_tools\mongo_sync.py", line 145, in update_one
pymongo.errors.WriteError: The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}, full error: {'index': 0, 'code': 2, 'errmsg': "The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}"}
2023-05-16 16:53:22 - ERROR - [MainThread:create_tag(): 43] - error from creating new tag The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}, full error: {'index': 0, 'code': 2, 'errmsg': "The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}"}
2023-05-16 16:54:46 - INFO - [MainThread:tag_creation(): 52] - creating new tag api called
2023-05-16 16:54:46 - INFO - [MainThread:tag_details(): 34] - new tag created.....
2023-05-16 16:54:46 - INFO - [MainThread:create_tag(): 37] - creating new tag
2023-05-16 16:54:46 - ERROR - [MainThread:update_one(): 147] - The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}, full error: {'index': 0, 'code': 2, 'errmsg': "The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}"}
Traceback (most recent call last):
File "E:\Asset Manager V2\scripts\utils\mongo_tools\mongo_sync.py", line 145, in update_one
pymongo.errors.WriteError: The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}, full error: {'index': 0, 'code': 2, 'errmsg': "The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}"}
2023-05-16 16:54:46 - ERROR - [MainThread:create_tag(): 43] - error from creating new tag The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}, full error: {'index': 0, 'code': 2, 'errmsg': "The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}"}
2023-05-16 16:56:03 - INFO - [MainThread:tag_creation(): 52] - creating new tag api called
2023-05-16 16:56:03 - INFO - [MainThread:tag_details(): 34] - new tag created.....
2023-05-16 16:56:03 - INFO - [MainThread:create_tag(): 37] - creating new tag
2023-05-16 16:56:03 - ERROR - [MainThread:update_one(): 147] - The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}, full error: {'index': 0, 'code': 2, 'errmsg': "The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}"}
Traceback (most recent call last):
File "E:\Asset Manager V2\scripts\utils\mongo_tools\mongo_sync.py", line 145, in update_one
pymongo.errors.WriteError: The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}, full error: {'index': 0, 'code': 2, 'errmsg': "The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}"}
2023-05-16 16:56:03 - ERROR - [MainThread:create_tag(): 43] - error from creating new tag The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}, full error: {'index': 0, 'code': 2, 'errmsg': "The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}"}
2023-05-16 16:56:54 - INFO - [MainThread:tag_creation(): 52] - creating new tag api called
2023-05-16 16:56:54 - INFO - [MainThread:tag_details(): 34] - new tag created.....
2023-05-16 16:56:54 - INFO - [MainThread:create_tag(): 37] - creating new tag
2023-05-16 16:56:54 - ERROR - [MainThread:create_tag(): 43] - error from creating new tag 'Devices' object has no attribute 'update'
2023-05-16 17:36:38 - INFO - [MainThread:tag_creation(): 52] - creating new tag api called
2023-05-16 17:36:38 - INFO - [MainThread:tag_details(): 34] - new tag created.....
2023-05-16 17:36:38 - INFO - [MainThread:create_tag(): 37] - creating new tag
2023-05-16 17:36:38 - ERROR - [MainThread:update_one(): 147] - The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}, full error: {'index': 0, 'code': 2, 'errmsg': "The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}"}
Traceback (most recent call last):
File "E:\Asset Manager V2\scripts\utils\mongo_tools\mongo_sync.py", line 145, in update_one
pymongo.errors.WriteError: The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}, full error: {'index': 0, 'code': 2, 'errmsg': "The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}"}
2023-05-16 17:36:38 - ERROR - [MainThread:create_tag(): 43] - error from creating new tag The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}, full error: {'index': 0, 'code': 2, 'errmsg': "The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}"}
2023-05-16 17:37:25 - INFO - [MainThread:tag_creation(): 52] - creating new tag api called
2023-05-16 17:37:25 - INFO - [MainThread:tag_details(): 34] - new tag created.....
2023-05-16 17:37:25 - INFO - [MainThread:create_tag(): 37] - creating new tag
2023-05-16 17:37:25 - ERROR - [MainThread:update_one(): 147] - The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}, full error: {'index': 0, 'code': 2, 'errmsg': "The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}"}
Traceback (most recent call last):
File "E:\Asset Manager V2\scripts\utils\mongo_tools\mongo_sync.py", line 145, in update_one
pymongo.errors.WriteError: The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}, full error: {'index': 0, 'code': 2, 'errmsg': "The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}"}
2023-05-16 17:37:25 - ERROR - [MainThread:create_tag(): 43] - error from creating new tag The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}, full error: {'index': 0, 'code': 2, 'errmsg': "The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}"}
2023-05-16 18:12:02 - INFO - [MainThread:<module>(): 44] - App Starting at 127.0.0.1:8000 with 1 workers.
2023-05-16 18:12:22 - INFO - [MainThread:tag_creation(): 52] - creating new tag api called
2023-05-16 18:12:22 - INFO - [MainThread:tag_details(): 34] - new tag created.....
2023-05-16 18:12:22 - INFO - [MainThread:create_tag(): 37] - creating new tag
2023-05-16 18:12:22 - ERROR - [MainThread:update_one(): 147] - The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}, full error: {'index': 0, 'code': 2, 'errmsg': "The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}"}
Traceback (most recent call last):
File "E:\Asset Manager V2\scripts\utils\mongo_tools\mongo_sync.py", line 145, in update_one
pymongo.errors.WriteError: The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}, full error: {'index': 0, 'code': 2, 'errmsg': "The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}"}
2023-05-16 18:12:22 - ERROR - [MainThread:create_tag(): 43] - error from creating new tag The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}, full error: {'index': 0, 'code': 2, 'errmsg': "The field 'customer' must be an array but is of type string in document {_id: ObjectId('645cf178f74445e7eff0458b')}"}