robertjdominguez / ez-resy

Quickly and easily snipe reservations with just a bit of configuration.
15 stars 9 forks source link

502 Bad Gateway and TypeError in JavaScript Code #5

Closed jiawei-zhang-a closed 4 months ago

jiawei-zhang-a commented 4 months ago

Description

I am experiencing a 502 Bad Gateway error when accessing the resy. The issue appears to be related to the backend service, which is using nginx as a proxy server.

image

.env

VENUE_ID=4287 DATE=2024-07-03 EARLIEST=12:00 LATEST=20:00 PARTY_SIZE=3 PAYMENT_ID= 'I get it from the X-Amz-Cf-Id: in payment_method object' AUTH_TOKEN='I get it from the cookie auth_token

robertjdominguez commented 4 months ago

I believe your issue is that you've selected the wrong value for PAYMENT_ID. You should:

  1. Open the Network tab
  2. Authenticate to Resy
  3. Find a request to https://api.resy.com/2/user
  4. Within that, search for payment_methods and take the id value 👈 this is what you want.
jiawei-zhang-a commented 4 months ago

Hi Rob, thank you so much! I have successfully booked a reservation. Very much thanks to your project! It is so important to me. BTW, I found the id in api.resy.com/3/auth not in https://api.resy.com/2/user which is kind of weird.

image
robertjdominguez commented 4 months ago

Glad you got yourself sorted 👍