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 64 forks source link

Client Timedout exceeded while awaiting headers error #116

Closed Hosua101 closed 3 years ago

Hosua101 commented 3 years ago

image

Sadge-spec commented 3 years ago

It looks like they changed the API again. They did this before they released another set of batch two days ago.

gamingarena23 commented 3 years ago

Yeah same problem: ""https://api-prod.nvidia.com/direct-sales-shop/DR/products/en_us/USD/5438481600": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"

CPYY commented 3 years ago

Same issue

m9x3mos commented 3 years ago

Yeah I think even their site isn't updated fully. The option for out of stock or buy is missing from the 3090 page and the 2060 buy now button doesn't show up and just has a spinner.

ianmarmour commented 3 years ago

I don't think they changed their API most likely just the website is down from traffic (not positive about that but it's possible) we're just getting client timeouts which means increased latency (meaning nvidia server issues) I'll track this to see if the API changes again though it's possible. This project is open source so if they're monitoring it they could be trying to patch things as I use them.... "shrug"

zulrang commented 3 years ago

Need to increase the timeout:

var timeTillContextDeadline = time.Now().Add(3 * time.Second)

ctx, ctxCancelFunc = context.WithDeadline(context.Background(), timeTillContextDeadline)
ibot4fun commented 3 years ago

\nvidia-clerk-3.6>nvidia-clerk-windows.exe -sms 2020/09/25 17:00:51 invalid character '<' looking for beginning of value 2020/09/25 17:00:51 Error getting session token from NVIDIA retrying...

ibot4fun commented 3 years ago

From observation. the in stock status is taking 10-15 seconds after the page loads to visually appear. I don't know if this is caused by a delay to present stock status to the user or if it's just delay/lag.

ianmarmour commented 3 years ago

https://shop.nvidia.com is down for maintenance right now.

We get the session token from this API at the start of the application therefor monitoring is broken right now (checkout probably is to)

That being said we could move the monitoring code outside of this loop to monitor even when the store is down.

m9x3mos commented 3 years ago

From observation. the in stock status is taking 10-15 seconds after the page loads to visually appear. I don't know if this is caused by a delay to present stock status to the user or if it's just delay/lag.

I think this might be some form of rate limiting. I saw this on my computer as well. When I attempt to load it on my cell phone (not on wifi) it loads much faster. Just my 2 cents (not jayz).

ianmarmour commented 3 years ago

It's not rate limiting as far as I can tell, I haven't hit the site at all today and now if I attempt to go to the shop I can't get a valid session, and on-top of that I can't can't hit the direct session token generation endpoint as well. Either their changing their session logic or their API is falling over not sure which yet.

ianmarmour commented 3 years ago

For those of you that already have a valid session maybe the API will continue to work (generally for up to 24 hours after you token is generated) but I doubt that.

Fly1ngSquid commented 3 years ago

Worth noting that there's definitely something changing on Nvidia's end. Attempting to access store support from this page leads to an under maintenance page.

I have an NV link in my cart from previously in the day that I cannot remove, or checkout either.

ianmarmour commented 3 years ago

They're probably doing a deployment of some kind, not sure if it will impact clerk yet, I'll keep an eye out as the changes roll out we make use of the API heavily right now so who knows what it's going to do.

HiramIII commented 3 years ago

@ianmarmour Is it fine to use a previous release if a newer one isn't working? The v3.7.2 is giving me the runtime unknown error again, while v3.6 stills works it just gives this error: 2020/09/25 17:20:15 invalid character '<' looking for beginning of value 2020/09/25 17:20:15 Error getting session token from NVIDIA retrying...

POD319 commented 3 years ago

Still an issue for others? As of 2AM EST I am getting the Client.Timeout exceeded while awaiting headers

EtienneK commented 3 years ago

Yes, still experiencing it using the NL store.

ianmarmour commented 3 years ago

See discord, nvidia is still down

mickyg33 commented 3 years ago

Looks like it's just come back

warrengc3 commented 3 years ago

yup at 12:10 EDT

warrengc3 commented 3 years ago

Screen Shot 2020-09-26 at 1 08 42 PM

redstone2019 commented 3 years ago

This issue has been fixed by nvidia