lgrees / resy-cli

A CLI to easily schedule restaurant reservations in advance.
MIT License
37 stars 12 forks source link

403 when trying to book #15

Open edenman opened 5 months ago

edenman commented 5 months ago

This is more of a question than a bug report: does a 403 just mean that the booking slot has already been claimed? Seems weird that the slots are still available when the job retries.

{"level":"info","booking_details":{"reservation_times":"19:00:00,19:15:00,19:30:00,19:45:00,20:00:00,18:45:00,18:30:00,18:15:00,18:00:00,20:15:00,20:30:00,20:45:00,21:00:00,21:15:00,21:30:00,17:45:00,17:30:00,17:15:00,17:00:00","reservation_types":"","reservation_date":"2024-07-19","party_size":"2","venue_id":"65452","booking_datetime":"2024-06-22 12:00:00"},"time":"2024-06-22T11:59:00-04:00","message":"starting book job"}
{"level":"info","time":"2024-06-22T11:59:00-04:00","message":"waiting 59 seconds until booking time: 2024-06-22 12:00:00"}
{"level":"info","available_slots":[{"reservation_time":"2024-07-19 17:00:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 17:15:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 17:30:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 17:45:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 19:15:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 19:30:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 19:45:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 21:00:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 21:15:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 21:30:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 21:45:00","reservation_type":"Dining Room"}],"time":"2024-06-22T12:00:00-04:00","message":"found available slots"}
{"level":"info","matching_slots":[{"reservation_time":"2024-07-19 17:00:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 17:15:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 17:30:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 17:45:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 19:15:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 19:30:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 19:45:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 21:00:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 21:15:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 21:30:00","reservation_type":"Dining Room"}],"time":"2024-06-22T12:00:00-04:00","message":"found matching slots"}
{"level":"info","slot":{"reservation_time":"2024-07-19 17:00:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:00-04:00","message":"attempting to book slot"}
{"level":"warn","error":"failed to get booking details, status code: 403","slot":{"reservation_time":"2024-07-19 17:00:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:00-04:00","message":"booking slot failed"}
{"level":"info","slot":{"reservation_time":"2024-07-19 17:15:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:00-04:00","message":"attempting to book slot"}
{"level":"warn","error":"failed to get booking details, status code: 403","slot":{"reservation_time":"2024-07-19 17:15:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:00-04:00","message":"booking slot failed"}
{"level":"info","slot":{"reservation_time":"2024-07-19 17:30:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:00-04:00","message":"attempting to book slot"}
{"level":"warn","error":"failed to get booking details, status code: 403","slot":{"reservation_time":"2024-07-19 17:30:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:00-04:00","message":"booking slot failed"}
{"level":"info","slot":{"reservation_time":"2024-07-19 17:45:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:00-04:00","message":"attempting to book slot"}
{"level":"warn","error":"failed to get booking details, status code: 403","slot":{"reservation_time":"2024-07-19 17:45:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:00-04:00","message":"booking slot failed"}
{"level":"info","slot":{"reservation_time":"2024-07-19 19:15:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:00-04:00","message":"attempting to book slot"}
{"level":"warn","error":"failed to get booking details, status code: 403","slot":{"reservation_time":"2024-07-19 19:15:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:00-04:00","message":"booking slot failed"}
{"level":"info","slot":{"reservation_time":"2024-07-19 19:30:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:00-04:00","message":"attempting to book slot"}
{"level":"warn","error":"failed to get booking details, status code: 403","slot":{"reservation_time":"2024-07-19 19:30:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:00-04:00","message":"booking slot failed"}
{"level":"info","slot":{"reservation_time":"2024-07-19 19:45:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:00-04:00","message":"attempting to book slot"}
{"level":"warn","error":"failed to get booking details, status code: 403","slot":{"reservation_time":"2024-07-19 19:45:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:00-04:00","message":"booking slot failed"}
{"level":"info","slot":{"reservation_time":"2024-07-19 21:00:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:00-04:00","message":"attempting to book slot"}
{"level":"warn","error":"failed to get booking details, status code: 403","slot":{"reservation_time":"2024-07-19 21:00:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:00-04:00","message":"booking slot failed"}
{"level":"info","slot":{"reservation_time":"2024-07-19 21:15:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:00-04:00","message":"attempting to book slot"}
{"level":"warn","error":"failed to get booking details, status code: 403","slot":{"reservation_time":"2024-07-19 21:15:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:00-04:00","message":"booking slot failed"}
{"level":"info","slot":{"reservation_time":"2024-07-19 21:30:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:00-04:00","message":"attempting to book slot"}
{"level":"warn","error":"failed to get booking details, status code: 403","slot":{"reservation_time":"2024-07-19 21:30:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:00-04:00","message":"booking slot failed"}
{"level":"error","error":"could not book any matching slots","time":"2024-06-22T12:00:00-04:00","message":"no booking occurred"}
{"level":"info","time":"2024-06-22T12:00:00-04:00","message":"retrying book job"}
{"level":"info","available_slots":[{"reservation_time":"2024-07-19 17:00:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 17:15:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 17:30:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 17:45:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 19:15:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 19:30:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 19:45:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 21:00:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 21:15:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 21:30:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 21:45:00","reservation_type":"Dining Room"}],"time":"2024-06-22T12:00:01-04:00","message":"found available slots"}
{"level":"info","matching_slots":[{"reservation_time":"2024-07-19 17:00:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 17:15:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 17:30:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 17:45:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 19:15:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 19:30:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 19:45:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 21:00:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 21:15:00","reservation_type":"Dining Room"},{"reservation_time":"2024-07-19 21:30:00","reservation_type":"Dining Room"}],"time":"2024-06-22T12:00:01-04:00","message":"found matching slots"}
{"level":"info","slot":{"reservation_time":"2024-07-19 17:00:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:01-04:00","message":"attempting to book slot"}
{"level":"warn","error":"failed to get booking details, status code: 403","slot":{"reservation_time":"2024-07-19 17:00:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:01-04:00","message":"booking slot failed"}
{"level":"info","slot":{"reservation_time":"2024-07-19 17:15:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:01-04:00","message":"attempting to book slot"}
{"level":"warn","error":"failed to get booking details, status code: 403","slot":{"reservation_time":"2024-07-19 17:15:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:01-04:00","message":"booking slot failed"}
{"level":"info","slot":{"reservation_time":"2024-07-19 17:30:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:01-04:00","message":"attempting to book slot"}
{"level":"warn","error":"failed to get booking details, status code: 403","slot":{"reservation_time":"2024-07-19 17:30:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:01-04:00","message":"booking slot failed"}
{"level":"info","slot":{"reservation_time":"2024-07-19 17:45:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:01-04:00","message":"attempting to book slot"}
{"level":"warn","error":"failed to get booking details, status code: 403","slot":{"reservation_time":"2024-07-19 17:45:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:01-04:00","message":"booking slot failed"}
{"level":"info","slot":{"reservation_time":"2024-07-19 19:15:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:01-04:00","message":"attempting to book slot"}
{"level":"warn","error":"failed to get booking details, status code: 403","slot":{"reservation_time":"2024-07-19 19:15:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:01-04:00","message":"booking slot failed"}
{"level":"info","slot":{"reservation_time":"2024-07-19 19:30:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:01-04:00","message":"attempting to book slot"}
{"level":"warn","error":"failed to get booking details, status code: 403","slot":{"reservation_time":"2024-07-19 19:30:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:01-04:00","message":"booking slot failed"}
{"level":"info","slot":{"reservation_time":"2024-07-19 19:45:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:01-04:00","message":"attempting to book slot"}
{"level":"warn","error":"failed to get booking details, status code: 403","slot":{"reservation_time":"2024-07-19 19:45:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:01-04:00","message":"booking slot failed"}
{"level":"info","slot":{"reservation_time":"2024-07-19 21:00:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:01-04:00","message":"attempting to book slot"}
{"level":"warn","error":"failed to get booking details, status code: 403","slot":{"reservation_time":"2024-07-19 21:00:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:01-04:00","message":"booking slot failed"}
{"level":"info","slot":{"reservation_time":"2024-07-19 21:15:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:01-04:00","message":"attempting to book slot"}
{"level":"warn","error":"failed to get booking details, status code: 403","slot":{"reservation_time":"2024-07-19 21:15:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:01-04:00","message":"booking slot failed"}
{"level":"info","slot":{"reservation_time":"2024-07-19 21:30:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:01-04:00","message":"attempting to book slot"}
{"level":"warn","error":"failed to get booking details, status code: 403","slot":{"reservation_time":"2024-07-19 21:30:00","reservation_type":"Dining Room"},"time":"2024-06-22T12:00:01-04:00","message":"booking slot failed"}
{"level":"error","error":"could not book any matching slots","time":"2024-06-22T12:00:01-04:00","message":"no booking occurred"}
hirefrank commented 5 months ago

received the same error last week.

resy ping still returns "success"

hirefrank commented 4 months ago

Anyone figure this out?