502 Bad Gateway and TypeError in JavaScript Code
Closed this issue · 3 comments
jiawei-zhang-a commented
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.

.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
I believe your issue is that you've selected the wrong value for PAYMENT_ID
. You should:
- Open the Network tab
- Authenticate to Resy
- Find a request to
https://api.resy.com/2/user
- Within that, search for
payment_methods
and take theid
value 👈 this is what you want.
jiawei-zhang-a commented
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.
robertjdominguez commented
Glad you got yourself sorted 👍