ianmarmour / nvidia-clerk

A cross-platform go bot that tracks for availability of stock from Nvidia's store and adds a cart to your checkout.
BSD 3-Clause "New" or "Revised" License
222 stars 63 forks source link

Panic Runtime Error #85

Closed CoffeyJ83 closed 4 years ago

CoffeyJ83 commented 4 years ago

Version 2.4 Windows 10 Running into error: panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]: main.main() /home/runner/work/nvidia-clerk/nvidia-clerk/main.go:99 +0xed3

Ran for a good couple hours and then got this error

longgaminghours commented 4 years ago

Yeah I am getting the same thing on Mac

CoffeyJ83 commented 4 years ago

I just restarted it twice and it fixed the issue for now

longgaminghours commented 4 years ago

It’ll work for a few mins after restarting and do it again.

CoffeyJ83 commented 4 years ago

Now getting them more frequently

ianmarmour commented 4 years ago

@CoffeyJ83 I'm assuming this is due to a response from NVIDIA that doesn't flag as an exception. I'm pushing a change for this right now.

CoffeyJ83 commented 4 years ago

Thank you so much, I know you got your card yesterday, and you continuing to help out for the rest of us is amazing

Fly1ngSquid commented 4 years ago

@ianmarmour Unfortunately V 2.5 did not fix this issue for me. If anything it's popping up faster now.

Bandaid fix I'm running is a script to just restart the program if it runs into an error.

ianmarmour commented 4 years ago

https://github.com/ianmarmour/nvidia-clerk/releases/tag/v2.6

@CoffeyJ83 @Fly1ngSuid

Fly1ngSquid commented 4 years ago

Damn that was fast. Trying now. Thanks for all your hard work on this man.

CoffeyJ83 commented 4 years ago

Running like a dream for me so far, many thanks again