Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting error when attempting to snipe #88

Open
yarneo opened this issue Feb 20, 2023 · 1 comment
Open

getting error when attempting to snipe #88

yarneo opened this issue Feb 20, 2023 · 1 comment

Comments

@yarneo
Copy link

yarneo commented Feb 20, 2023

[INFO ] 2023-02-20 08:59:58.031-05:00 ResyBookingWorkflow:20 - Attempting to snipe reservation sbt:resy-booking-bot> java.util.NoSuchElementException: head of empty list at scala.collection.immutable.Nil$.head(List.scala:662) at scala.collection.immutable.Nil$.head(List.scala:661) at com.resy.ResyClient.findReservationTime(ResyClient.scala:188) at com.resy.ResyClient.retryFindReservations(ResyClient.scala:172) at com.resy.ResyClient.findReservations(ResyClient.scala:50) at com.resy.ResyBookingWorkflow.runnable(ResyBookingWorkflow.scala:22) at com.resy.ResyBookingWorkflow.run(ResyBookingWorkflow.scala:14) at com.resy.ResyBookingBot$.$anonfun$main$4(ResyBookingBot.scala:51) at akka.actor.Scheduler$$anon$7.run(Scheduler.scala:479) at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1423) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1311) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1840) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1806) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)

I did in my config: resDetails.res-time-types=[] because it's impossible for me to know what are the types of seating they offer to say "6:30 Outside table" etc. Not sure if that's causing the issue

@Alkaar
Copy link
Owner

Alkaar commented Mar 6, 2023

Yea you can't pass an empty list. I suppose I could add a guard here but it's a bit unusual to intentionally pass nothing. If you want to see what reservations are available, you should update the log4j2.properties file values from info to debug. It's a bit verbose but just search the output and you can find it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants