print debugs so i can check if i can get qrcode data not gotten by mail
This commit is contained in:
parent
6da22801c8
commit
a100af05de
1 changed files with 3 additions and 0 deletions
|
|
@ -86,6 +86,7 @@ class BookingClient:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
data = booking.json().get("data", {})
|
data = booking.json().get("data", {})
|
||||||
|
print(booking.text)
|
||||||
except (ValueError, JSONDecodeError):
|
except (ValueError, JSONDecodeError):
|
||||||
if "Bad Request" in booking.text and "400" in booking.text:
|
if "Bad Request" in booking.text and "400" in booking.text:
|
||||||
print("❌ Bad Request 400 on Booking request.")
|
print("❌ Bad Request 400 on Booking request.")
|
||||||
|
|
@ -109,6 +110,7 @@ class BookingClient:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
customer = checkout.json().get("default", {}).get("customer", {})
|
customer = checkout.json().get("default", {}).get("customer", {})
|
||||||
|
print(checkout.text)
|
||||||
except (ValueError, JSONDecodeError):
|
except (ValueError, JSONDecodeError):
|
||||||
print(f"❌ Invalid JSON response from checkout form: {checkout.text}")
|
print(f"❌ Invalid JSON response from checkout form: {checkout.text}")
|
||||||
# print(f"❌ Invalid JSON response from checkout form: {checkout.text[:200]}")
|
# print(f"❌ Invalid JSON response from checkout form: {checkout.text[:200]}")
|
||||||
|
|
@ -131,6 +133,7 @@ class BookingClient:
|
||||||
)
|
)
|
||||||
|
|
||||||
if final.ok:
|
if final.ok:
|
||||||
|
print(final.text)
|
||||||
print("✅ Reservation successful!")
|
print("✅ Reservation successful!")
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue