| body |
{"product": {"rating": null, "rating_count": null, "brand": "On", "name": "Men's Club Hoodie Smash", "description": "A versatile hoodie that's ideal for downtime and days off. With a stylish tennis-inspired graphic on the back.", "data": {"dataFacets": []}, "categories": ["Mens > Apparel > Hoodies and Sweatshirts > Hoodie"], "gender": "Mens", "product_images": [], "market_id": 139, "remote_code": "1MF30803503", "is_lost": 0, "variants": [{"remote_code": "7615537406275", "upc": "", "remote_url": "https://www.on.com/products/club-hoodie-smash-m-1mf3080/mens/grey-heather-apparel-1MF30803503?variant=L", "size": "L", "origin_color": "Grey Heather", "price": 95.0, "email_meta": null, "price_full": 140.0, "variant_images": ["https://images.ctfassets.net/hnk2vsx53n6l/5y3HvwGQtUySG8VxPVgPfU/71857d66f60c12b282d5d68c777cf77e/f8f4a330e13542ec8d26a940bbe6dd863729e965.jpg", "https://images.ctfassets.net/hnk2vsx53n6l/3U32xYbT27TdFETK4VVd7s/677da52c000e9c691e5bb7658e97abeb/c93967f7dc5160684167b42c5e20feda9345a9ea.jpg", "https://images.ctfassets.net/hnk2vsx53n6l/12nyty5VzQSqF1JbRepdm0/0be068d65302e46aed6eece8ec151d3a/ab3c6c7a6420b4ef4715d368509938fd6dc3dd56.jpg", "https://images.ctfassets.net/hnk2vsx53n6l/40FBev3bT5iCfS642tnZuw/4f52d0a64a54e79d4e1af77fec292634/31cd45139f690445742fbf3ecff68f03e2edf9cf.jpg", "https://images.ctfassets.net/hnk2vsx53n6l/AF2L9mV89caKUFmgR1ywK/564eb0e617d842f3a102bb16d8f110dc/e4453a04237aed0c4c09b29999d0cb8e17fbe9fc.jpg", "https://images.ctfassets.net/hnk2vsx53n6l/21cJf0a05lcsik3qiRFJlz/168e622ba6807d6c3ff1c7cc68807150/017a2ac11907897cfda31a6132f4b610e1b1515d.jpg"], "stock_count": 13, "data": ["transfer"], "image_url": "https://upload.on-running.com/spree/products/7457/product/499cf31dabfbac55a30fabe5e19945f589c7b69d.png?1766714817", "description": "Color: Grey Heather; Size: L", "colors": ["Grey Heather"]}, {"remote_code": "7615537406510", "upc": "", "remote_url": "https://www.on.com/products/club-hoodie-smash-m-1mf3080/mens/grey-heather-apparel-1MF30803503?variant=XL", "size": "XL", "origin_color": "Grey Heather", "price": 95.0, "email_meta": null, "price_full": 140.0, "variant_images": ["https://images.ctfassets.net/hnk2vsx53n6l/5y3HvwGQtUySG8VxPVgPfU/71857d66f60c12b282d5d68c777cf77e/f8f4a330e13542ec8d26a940bbe6dd863729e965.jpg", "https://images.ctfassets.net/hnk2vsx53n6l/3U32xYbT27TdFETK4VVd7s/677da52c000e9c691e5bb7658e97abeb/c93967f7dc5160684167b42c5e20feda9345a9ea.jpg", "https://images.ctfassets.net/hnk2vsx53n6l/12nyty5VzQSqF1JbRepdm0/0be068d65302e46aed6eece8ec151d3a/ab3c6c7a6420b4ef4715d368509938fd6dc3dd56.jpg", "https://images.ctfassets.net/hnk2vsx53n6l/40FBev3bT5iCfS642tnZuw/4f52d0a64a54e79d4e1af77fec292634/31cd45139f690445742fbf3ecff68f03e2edf9cf.jpg", "https://images.ctfassets.net/hnk2vsx53n6l/AF2L9mV89caKUFmgR1ywK/564eb0e617d842f3a102bb16d8f110dc/e4453a04237aed0c4c09b29999d0cb8e17fbe9fc.jpg", "https://images.ctfassets.net/hnk2vsx53n6l/21cJf0a05lcsik3qiRFJlz/168e622ba6807d6c3ff1c7cc68807150/017a2ac11907897cfda31a6132f4b610e1b1515d.jpg"], "stock_count": 18, "data": ["transfer"], "image_url": "https://upload.on-running.com/spree/products/7457/product/499cf31dabfbac55a30fabe5e19945f589c7b69d.png?1766714817", "description": "Color: Grey Heather; Size: XL", "colors": ["Grey Heather"]}, {"remote_code": "7615537406558", "upc": "", "remote_url": "https://www.on.com/products/club-hoodie-smash-m-1mf3080/mens/grey-heather-apparel-1MF30803503?variant=XXL", "size": "XXL", "origin_color": "Grey Heather", "price": 95.0, "email_meta": null, "price_full": 140.0, "variant_images": ["https://images.ctfassets.net/hnk2vsx53n6l/5y3HvwGQtUySG8VxPVgPfU/71857d66f60c12b282d5d68c777cf77e/f8f4a330e13542ec8d26a940bbe6dd863729e965.jpg", "https://images.ctfassets.net/hnk2vsx53n6l/3U32xYbT27TdFETK4VVd7s/677da52c000e9c691e5bb7658e97abeb/c93967f7dc5160684167b42c5e20feda9345a9ea.jpg", "https://images.ctfassets.net/hnk2vsx53n6l/12nyty5VzQSqF1JbRepdm0/0be068d65302e46aed6eece8ec151d3a/ab3c6c7a6420b4ef4715d368509938fd6dc3dd56.jpg", "https://images.ctfassets.net/hnk2vsx53n6l/40FBev3bT5iCfS642tnZuw/4f52d0a64a54e79d4e1af77fec292634/31cd45139f690445742fbf3ecff68f03e2edf9cf.jpg", "https://images.ctfassets.net/hnk2vsx53n6l/AF2L9mV89caKUFmgR1ywK/564eb0e617d842f3a102bb16d8f110dc/e4453a04237aed0c4c09b29999d0cb8e17fbe9fc.jpg", "https://images.ctfassets.net/hnk2vsx53n6l/21cJf0a05lcsik3qiRFJlz/168e622ba6807d6c3ff1c7cc68807150/017a2ac11907897cfda31a6132f4b610e1b1515d.jpg"], "stock_count": 11, "data": ["transfer"], "image_url": "https://upload.on-running.com/spree/products/7457/product/499cf31dabfbac55a30fabe5e19945f589c7b69d.png?1766714817", "description": "Color: Grey Heather; Size: XXL", "colors": ["Grey Heather"]}, {"remote_code": "7615537405957", "upc": "", "remote_url": "https://www.on.com/products/club-hoodie-smash-m-1mf3080/mens/black-orchid-apparel-1MF30804428?variant=XXL", "size": "XXL", "origin_color": "Black | Orchid", "price": 110.0, "email_meta": null, "price_full": 140.0, "variant_images": ["https://images.ctfassets.net/hnk2vsx53n6l/18fJ6mr5uP9Vabnn8JSMXs/529d1fce2046128605381aa7dde95aa2/4a8e49f6f467dc85d1812ffccdfad832fdc0d105.jpg", "https://images.ctfassets.net/hnk2vsx53n6l/3pIv6Fu6qLZEKgTm122M8s/329a186def2bf79b564650fd83d619ea/8719f638ad9fa2c60576b0ebe7526b7f50b42f13.jpg", "https://images.ctfassets.net/hnk2vsx53n6l/BFiMuHn4rF2D39GWGuB3g/682166e93237a1bf8c0961d5399e6a1c/ae5bfedab639fe0417fb89e9255869e58321b44c.jpg", "https://images.ctfassets.net/hnk2vsx53n6l/e1tuhlsNxrPSo0iktneAh/ed54bdd49bea72c7f4467c67d7721312/0cfd7f2a003f257e44755fef12c32b02f2f7824d.jpg", "https://images.ctfassets.net/hnk2vsx53n6l/76x5uhXK0URyYzrrOJtySq/3f71c8a4bc36dfdb11d47333374acfd9/c49657d358a1d5e17673561b20a69bd2da89fd46.jpg", "https://images.ctfassets.net/hnk2vsx53n6l/6zlLFmPGV2b3BWl99UAGnI/ec3d7c3953252b4f46658b0460e3eddd/d047408a09d1f8a1ca9ba37fa1da7eb125f70985.jpg", "https://images.ctfassets.net/hnk2vsx53n6l/75MFgxGlnU3a8iO3rQF7Y7/273bafb49baf6874cd3a72a7d3481b01/e66434262b234e7a01c754f6eb1d250c0a02690a.jpg"], "stock_count": 5, "data": ["transfer"], "image_url": "https://upload.on-running.com/spree/products/7458/product/9437e14738e627e5a9797d19dcb10a9a8fa12d93.png?1766714818", "description": "Color: Black | Orchid; Size: XXL", "colors": ["Black | Orchid"]}]}, "remote_url": "https://www.on.com/en-us/products/club-hoodie-smash-m-1mf3080/mens/grey-heather-apparel-1MF30803503", "type_parsing": "refresh", "parsing_type": "refresh", "finalize": false, "parsing_code": 200, "parsing_text": "[200] Success: Item: '1MF30803503' - parsed successfully. additional_error_text=''"} |
| error_text |
File "/opt/working_folder/middlewares/catch_errors_middleware/catch_500_errors.py", line 15, in dispatch
response = await call_next(request)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 84, in call_next
raise app_exc
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 70, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 83, in __call__
await self.app(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
raise exc
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
await self.app(scope, receive, sender)
File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
raise e
File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
await self.app(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 718, in __call__
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle
await self.app(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 66, in app
response = await func(request)
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 274, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 193, in run_endpoint_function
return await run_in_threadpool(dependant.call, **values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/starlette/concurrency.py", line 41, in run_in_threadpool
return await anyio.to_thread.run_sync(func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/working_folder/api/logging_router/api/product_logging.py", line 495, in log_product_upload
add_product_history(db, market_id, remote_code, json_data)
File "/opt/working_folder/api/logging_router/api/product_logging.py", line 319, in add_product_history
.first()
^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/query.py", line 2728, in first
return self.limit(1)._iter().first() # type: ignore
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/query.py", line 2827, in _iter
result: Union[ScalarResult[_T], Result[_T]] = self.session.execute(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 2362, in execute
return self._execute_internal(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 2247, in _execute_internal
result: Result[Any] = compile_state_cls.orm_execute_statement(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/context.py", line 305, in orm_execute_statement
result = conn.execute(
^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1418, in execute
return meth(
^^^^^
File "/usr/local/lib/python3.11/site-packages/sqlalchemy/sql/elements.py", line 515, in _execute_on_connection
return connection._execute_clauseelement(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1640, in _execute_clauseelement
ret = self._execute_context(
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1846, in _execute_context
return self._exec_single_context(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1986, in _exec_single_context
self._handle_dbapi_exception(
File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 2355, in _handle_dbapi_exception
raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context
self.dialect.do_execute(
File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/default.py", line 941, in do_execute
cursor.execute(statement, parameters)
|