Untitled

 avatar
unknown
plain_text
3 years ago
14 kB
4
Indexable
2022-02-10 21:14:10,717 22740 INFO Production werkzeug: 172.18.1.29 - - [10/Feb/2022 21:14:10] "POST /longpolling/poll HTTP/1.0" 200 - 1 0.000 0.003
2022-02-10 21:14:10,720 13451 INFO Production longpolling: 154.160.64.114 - - [2022-02-10 21:14:10] "POST /longpolling/poll HTTP/1.0" 200 383 50.013158 
2022-02-10 21:14:10,857 22785 INFO Production ZPL NetsuiteConnection ________.PurchaseOrder: : status: 200 
2022-02-10 21:14:10,857 22785 INFO Production ZPL NetsuiteConnection ________.PurchaseOrder: : result count: 0 
2022-02-10 21:14:10,857 22785 INFO Production ZPL NetsuiteConnection ________.PurchaseOrder: : did not find purchase order with po_number: P04133 
2022-02-10 21:14:10,857 22785 INFO Production ZPL NetsuiteConnection ________.Employee: : 

 
2022-02-10 21:14:10,857 22785 INFO Production ZPL NetsuiteConnection ________.Employee: : Get item by employee name ____ 
2022-02-10 21:14:10,857 22785 INFO Production ZPL NetsuiteConnection ________.Employee: : name: Michael A Manion 
2022-02-10 21:14:10,857 22785 INFO Production ZPL NetsuiteConnection ________.Employee: : params: {'q': 'entityId IS "Michael A Manion"'} 
2022-02-10 21:14:11,084 22785 INFO Production ZPL NetsuiteConnection ________.Employee: : status: 200 
2022-02-10 21:14:11,084 22785 INFO Production Purchase_Order:___ : creater: [{'links': [{'rel': 'self', 'href': 'https://3606935.suitetalk.api.netsuite.com/services/rest/record/v1/employee/605179'}], 'id': '605179'}] 
2022-02-10 21:14:11,084 22785 INFO Production ZPL NetsuiteConnection ________.Employee: : 

 
2022-02-10 21:14:11,084 22785 INFO Production ZPL NetsuiteConnection ________.Employee: : Get item by employee name ____ 
2022-02-10 21:14:11,084 22785 INFO Production ZPL NetsuiteConnection ________.Employee: : name: Michael A Manion 
2022-02-10 21:14:11,084 22785 INFO Production ZPL NetsuiteConnection ________.Employee: : params: {'q': 'entityId IS "Michael A Manion"'} 
2022-02-10 21:14:11,089 22665 ERROR Production odoo.http: Exception during JSON request handling. 
Traceback (most recent call last):
  File "/odoo/odoo-server/odoo/http.py", line 619, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/odoo/odoo-server/odoo/http.py", line 309, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/odoo/odoo-server/odoo/tools/pycompat.py", line 14, in reraise
    raise value
  File "/odoo/odoo-server/odoo/http.py", line 664, in dispatch
    result = self._call_function(**self.params)
  File "/odoo/odoo-server/odoo/http.py", line 345, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/odoo/odoo-server/odoo/service/model.py", line 93, in wrapper
    return f(dbname, *args, **kwargs)
  File "/odoo/odoo-server/odoo/http.py", line 338, in checked_call
    result = self.endpoint(*a, **kw)
  File "/odoo/odoo-server/odoo/http.py", line 909, in __call__
    return self.method(*args, **kw)
  File "/odoo/odoo-server/odoo/http.py", line 510, in response_wrap
    response = f(*args, **kw)
  File "/usr/lib/python3/dist-packages/odoo/addons/bus/controllers/main.py", line 35, in poll
    raise Exception("bus.Bus unavailable")
Exception: bus.Bus unavailable
2022-02-10 21:14:11,090 22665 INFO Production werkzeug: 152.44.135.26 - - [10/Feb/2022 21:14:11] "POST /longpolling/poll HTTP/1.0" 200 - 1 0.000 0.003
2022-02-10 21:14:11,283 22785 INFO Production ZPL NetsuiteConnection ________.Employee: : status: 200 
2022-02-10 21:14:11,283 22785 INFO Production Purchase_Order:___ : purchaser: [{'links': [{'rel': 'self', 'href': 'https://3606935.suitetalk.api.netsuite.com/services/rest/record/v1/employee/605179'}], 'id': '605179'}] 
2022-02-10 21:14:11,283 22785 INFO Production ZPL NetsuiteConnection ________.Currency: : 

 
2022-02-10 21:14:11,283 22785 INFO Production ZPL NetsuiteConnection ________.Currency: : Get item by symbol ____ 
2022-02-10 21:14:11,283 22785 INFO Production ZPL NetsuiteConnection ________.Currency: : symbol: USD 
2022-02-10 21:14:11,283 22785 INFO Production ZPL NetsuiteConnection ________.Currency: : params: {'q': 'symbol IS "USD"'} 
2022-02-10 21:14:11,472 22785 INFO Production ZPL NetsuiteConnection ________.Currency: : status: 200 
2022-02-10 21:14:11,472 22785 INFO Production Purchase_Order:___ : currency: [{'links': [{'rel': 'self', 'href': 'https://3606935.suitetalk.api.netsuite.com/services/rest/record/v1/currency/1'}], 'id': '1'}] 
2022-02-10 21:14:11,472 22785 INFO Production Purchase_Order:___ : Netsuite ID not found, creating if not exist _____________ 
2022-02-10 21:14:11,472 22785 INFO Production ZPL NetsuiteConnection ________: 

 
2022-02-10 21:14:11,472 22785 INFO Production ZPL NetsuiteConnection ________: Create item in netsuite if not exists ____ 
2022-02-10 21:14:11,472 22785 INFO Production ZPL NetsuiteConnection ________: 

 
2022-02-10 21:14:11,472 22785 INFO Production ZPL NetsuiteConnection ________: Check if item exists in Netsuite ____ 
2022-02-10 21:14:11,472 22785 INFO Production ZPL NetsuiteConnection ________: _________________________product type: product 
2022-02-10 21:14:11,472 22785 INFO Production ZPL NetsuiteConnection ________.InventoryItem: : 

 
2022-02-10 21:14:11,472 22785 INFO Production ZPL NetsuiteConnection ________.InventoryItem: : Check if item exists in Netsuite ____ 
2022-02-10 21:14:11,472 22785 INFO Production ZPL NetsuiteConnection ________.InventoryItem: : item: {'id': 18344, 'qty': 1000.0, '_is_closed': False, 'price_unit': 0.0, 'type': 'product', 'barcode': '09435-000', 'part_name': 'SPARROW, MOTOR POD, MOTOR THERMISTER CONNECTOR ', 'netsuite_id': False} 
2022-02-10 21:14:11,472 22785 INFO Production ZPL NetsuiteConnection ________.InventoryItem: : netsuite_id: False 
2022-02-10 21:14:11,473 22785 INFO Production ZPL NetsuiteConnection ________.InventoryItem: : part_name: SPARROW, MOTOR POD, MOTOR THERMISTER CONNECTOR  
2022-02-10 21:14:11,473 22785 INFO Production ZPL NetsuiteConnection ________.InventoryItem: : product_type: product 
2022-02-10 21:14:11,473 22785 INFO Production ZPL NetsuiteConnection ________.InventoryItem: : odoo_id: 18344 
2022-02-10 21:14:11,473 22785 INFO Production ZPL NetsuiteConnection ________.InventoryItem: : Path B: search by barcode: 09435-000 
2022-02-10 21:14:11,473 22785 INFO Production ZPL NetsuiteConnection ________.InventoryItem: : 

 
2022-02-10 21:14:11,473 22785 INFO Production ZPL NetsuiteConnection ________.InventoryItem: : Get item by barcode ____ 
2022-02-10 21:14:11,473 22785 INFO Production ZPL NetsuiteConnection ________.InventoryItem: : barcode: 09435-000 
2022-02-10 21:14:11,473 22785 INFO Production ZPL NetsuiteConnection ________.InventoryItem: : params: {'q': 'itemid IS "09435-000"'} 
2022-02-10 21:14:11,502 22718 ERROR Production odoo.http: Exception during JSON request handling. 
Traceback (most recent call last):
  File "/odoo/odoo-server/odoo/http.py", line 619, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/odoo/odoo-server/odoo/http.py", line 309, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/odoo/odoo-server/odoo/tools/pycompat.py", line 14, in reraise
    raise value
  File "/odoo/odoo-server/odoo/http.py", line 664, in dispatch
    result = self._call_function(**self.params)
  File "/odoo/odoo-server/odoo/http.py", line 345, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/odoo/odoo-server/odoo/service/model.py", line 93, in wrapper
    return f(dbname, *args, **kwargs)
  File "/odoo/odoo-server/odoo/http.py", line 338, in checked_call
    result = self.endpoint(*a, **kw)
  File "/odoo/odoo-server/odoo/http.py", line 909, in __call__
    return self.method(*args, **kw)
  File "/odoo/odoo-server/odoo/http.py", line 510, in response_wrap
    response = f(*args, **kw)
  File "/usr/lib/python3/dist-packages/odoo/addons/bus/controllers/main.py", line 35, in poll
    raise Exception("bus.Bus unavailable")
Exception: bus.Bus unavailable
2022-02-10 21:14:11,503 22718 INFO Production werkzeug: 152.44.135.26 - - [10/Feb/2022 21:14:11] "POST /longpolling/poll HTTP/1.0" 200 - 1 0.000 0.003
2022-02-10 21:14:11,704 22785 INFO Production ZPL NetsuiteConnection ________.InventoryItem: : status: 200 
2022-02-10 21:14:11,704 22785 INFO Production ZPL NetsuiteConnection ________.InventoryItem: : result count: 1 
2022-02-10 21:14:11,704 22785 INFO Production ZPL NetsuiteConnection ________.InventoryItem: : found inventory item with barcode: 09435-000 
2022-02-10 21:14:11,704 22785 INFO Production Purchase_Order:___ : item found or created in netuiste: {'links': [{'rel': 'self', 'href': 'https://3606935.suitetalk.api.netsuite.com/services/rest/record/v1/inventoryitem/290133'}], 'id': '290133'} 
2022-02-10 21:14:11,704 22785 INFO Production Purchase_Order:___ : Update product netsuite id ____ 
2022-02-10 21:14:11,707 22785 INFO Production Purchase_Order:___ : po line item: [{'id': 18344, 'order_id': (5850, 'P04133'), 'display_type': False, 'product_id': (906, '[09435-000] SPARROW, MOTOR POD, MOTOR THERMISTER CONNECTOR '), 'product_qty': 1000.0, 'price_unit': 0.0, 'name': '[09435-000] SPARROW, MOTOR POD, MOTOR THERMISTER CONNECTOR '}] 
2022-02-10 21:14:11,707 22785 INFO Production Purchase_Order:___ : product id: 906 
2022-02-10 21:14:11,709 22785 INFO Production Purchase_Order:___ : product: product.product(906,) 
2022-02-10 21:14:11,732 22785 INFO Production Purchase_Order:___ : write response: True 
2022-02-10 21:14:11,732 22785 INFO Production ZPL NetsuiteConnection ________.PurchaseOrder: : 

 
2022-02-10 21:14:11,732 22785 INFO Production ZPL NetsuiteConnection ________.PurchaseOrder: : Create purchase order ____ 
2022-02-10 21:14:11,852 22718 ERROR Production odoo.http: Exception during JSON request handling. 
Traceback (most recent call last):
  File "/odoo/odoo-server/odoo/http.py", line 619, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/odoo/odoo-server/odoo/http.py", line 309, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/odoo/odoo-server/odoo/tools/pycompat.py", line 14, in reraise
    raise value
  File "/odoo/odoo-server/odoo/http.py", line 664, in dispatch
    result = self._call_function(**self.params)
  File "/odoo/odoo-server/odoo/http.py", line 345, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/odoo/odoo-server/odoo/service/model.py", line 93, in wrapper
    return f(dbname, *args, **kwargs)
  File "/odoo/odoo-server/odoo/http.py", line 338, in checked_call
    result = self.endpoint(*a, **kw)
  File "/odoo/odoo-server/odoo/http.py", line 909, in __call__
    return self.method(*args, **kw)
  File "/odoo/odoo-server/odoo/http.py", line 510, in response_wrap
    response = f(*args, **kw)
  File "/usr/lib/python3/dist-packages/odoo/addons/bus/controllers/main.py", line 35, in poll
    raise Exception("bus.Bus unavailable")
Exception: bus.Bus unavailable
2022-02-10 21:14:11,853 22718 INFO Production werkzeug: 152.44.135.26 - - [10/Feb/2022 21:14:11] "POST /longpolling/poll HTTP/1.0" 200 - 1 0.001 0.003
2022-02-10 21:14:11,890 13451 INFO Production longpolling: 172.18.1.29 - - [2022-02-10 21:14:11] "POST /longpolling/poll HTTP/1.0" 200 382 50.014548 
2022-02-10 21:14:12,286 13451 INFO Production longpolling: 172.18.1.29 - - [2022-02-10 21:14:12] "POST /longpolling/poll HTTP/1.0" 200 383 50.013784 
2022-02-10 21:14:12,812 22785 ERROR Production ZPL NetsuiteConnection ________.PurchaseOrder: : error creating purchase item: 400 Client Error: Bad Request for url: https://3606935.suitetalk.api.netsuite.com/services/rest/record/v1/purchaseOrder, response error: {'type': 'https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1', 'title': 'Bad Request', 'status': 400, 'o:errorDetails': [{'detail': 'Error while accessing a resource. You have entered an Invalid Field Value 1 for the following field: currency.', 'o:errorCode': 'USER_ERROR'}]} 
2022-02-10 21:14:12,813 22785 ERROR Production ZPL NetsuiteConnection ________.PurchaseOrder: : Traceback (most recent call last):
  File "/var/lib/odoo/custom/addons/zip_common_utils/api/netsuite/services/purchase_order.py", line 168, in create
    response.raise_for_status()
  File "/usr/local/lib/python3.6/dist-packages/requests/models.py", line 953, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://3606935.suitetalk.api.netsuite.com/services/rest/record/v1/purchaseOrder
 
2022-02-10 21:14:12,813 22785 ERROR Production Purchase_Order:___ : error in PO create workflow: (HTTPError('400 Client Error: Bad Request for url: https://3606935.suitetalk.api.netsuite.com/services/rest/record/v1/purchaseOrder',), {'type': 'https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1', 'title': 'Bad Request', 'status': 400, 'o:errorDetails': [{'detail': 'Error while accessing a resource. You have entered an Invalid Field Value 1 for the following field: currency.', 'o:errorCode': 'USER_ERROR'}]}) 
2022-02-10 21:14:12,813 22785 ERROR Production Purchase_Order:___ : failed for payload: {'terms_name': False, 'purchaser': 'Michael A Manion', 'creater': 'Michael A Manion', 'department': '11', 'requester': False, 'shipping_method': False, 'currency': 'USD', 'po_type_id': 6, 'po_type_name': 'NPI', 'vendor_name': 'Component Electronics Inc.', 'vendor_id': '772736', 'po_number': 'P04133', 'id': 5850, 'date_order': '2022-02-10T20:52:30', 'line_items': [{'id': 18344, 'qty': 1000.0, '_is_closed': False, 'price_unit': 0.0, 'type': 'product', 'barcode': '09435-000', 'part_name': 'SPARROW, MOTOR POD, MOTOR THERMISTER CONNECTOR ', 'netsuite_id': False}]} 
Editor is loading...