| body |
{"product": {"category_meta_splitter": null, "meta_category": ["Target > Grocery > Snacks > Snack Variety Packs > Cookie Multipacks"], "origin_url": "https://www.target.com/c/cookie-multipacks-snack-variety-packs-snacks-grocery/-/N-v247q", "rating": 4.7, "rating_count": 1218, "brand": "Little Debbie", "name": "Little Debbie Nutty Bars", "description": "<B>Filling:</B> Peanut Butter,\n<B>Dietary Needs:</B> Kosher,\n<B>State of Readiness:</B> Ready to Eat,\n<B>Package Quantity:</B> 12,\n<B>Bakery topping:</B> No Topping,\n<B>Net weight:</B> 12.0 Ounces", "data": {"dataFacets": []}, "categories": ["Grocery > Snacks > Snack Variety Packs > Cookie Multipacks"], "gender": "N/A", "location": "OxfordValley;Neshaminy;PhiladelphiaRooseveltBlvd;AbingtonTownship;PhiladelphiaCottman", "product_images": [], "market_id": 84, "remote_code": "13217400", "is_lost": 0, "variants": [{"remote_code": "13217400", "upc": "024300041204", "remote_url": "https://www.target.com/p/~/-/A-13217400", "size": "12.0oz", "origin_color": "N/A", "price": 3.19, "price_full": null, "variant_images": ["https://target.scene7.com/is/image/Target/GUEST_3f51a281-8bb8-4845-865f-a274ab4e38a0?wid=1200&hei=1200", "https://target.scene7.com/is/image/Target/GUEST_92965384-8733-4798-9791-9f27cae20be1?wid=1200&hei=1200", "https://target.scene7.com/is/image/Target/GUEST_e97e2106-6a4f-4970-9f40-79a45e916ce8?wid=1200&hei=1200", "https://target.scene7.com/is/image/Target/GUEST_caec2add-d288-47e4-b424-8d0daaa8dad1?wid=1200&hei=1200", "https://target.scene7.com/is/image/Target/GUEST_145f4b23-d6e2-4cc7-b4fa-49cd41829c67?wid=1200&hei=1200", "https://target.scene7.com/is/image/Target/GUEST_4fa7d954-31ef-486f-988a-66daa7e18578?wid=1200&hei=1200", "https://target.scene7.com/is/image/Target/GUEST_c10ec377-eb2d-43e2-9e93-d12a6ec2d518?wid=1200&hei=1200"], "stock_count": 1, "data": ["transfer"], "image_url": "https://target.scene7.com/is/image/Target/GUEST_4fa7d954-31ef-486f-988a-66daa7e18578", "description": "Color: N/A; Size: 12.0oz", "colors": ["N/A"]}]}, "remote_url": "https://www.target.com/p/~/-/A-13217400", "parsing_type": "refresh", "finalize": false, "parsing_code": 200, "parsing_text": "[200] Success: Item: '13217400' - 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)
|