Advertisement
dimon-torchila

Untitled

May 8th, 2023
727
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.99 KB | None | 0 0
  1. [
  2.     {
  3.         "courier_type": "FOOT",
  4.         "regions": [51, 55, 56],
  5.         "working_hours": ["19:00-20:00"]
  6.     },
  7.     {
  8.         "courier_type": "BIKE",
  9.         "regions": [52, 54, 56],
  10.         "working_hours": ["19:30-20:00"]
  11.     },
  12.     {
  13.         "courier_type": "AUTO",
  14.         "regions": [52, 54, 57],
  15.         "working_hours": ["19:00-21:00", "21:30-22:00"]
  16.     }
  17. ]
  18.  
  19. //error
  20.  
  21. ERROR    [POST /v1/set_couriers] Fatal error occured: ERROR:  syntax error at or near "{"\nLINE 1: ...(courier_type, regions, working_hours)VALUES ($1, {$2}, {$3}...\n                                                             ^\n
  22. DEBUG    [POST /v1/set_couriers] Ready to throw
  23. ERROR    [POST /v1/set_couriers] exception in 'handler-set-couriers' handler in handle_request: ERROR:  syntax error at or near "{"\nLINE 1: ...(courier_type, regions, working_hours)VALUES ($1, {$2}, {$3}...\n                                                             ^\n (userver::storages::postgres::SyntaxError)
  24. ERROR    [POST /v1/set_couriers] Response finished meta_code=500 response_body=
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement