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

Fails for products that are unavailable (i.e. out of stock) #28

Open
DanCousins opened this issue Sep 26, 2023 · 0 comments
Open

Fails for products that are unavailable (i.e. out of stock) #28

DanCousins opened this issue Sep 26, 2023 · 0 comments

Comments

@DanCousins
Copy link

Trying to monitor for iPhone 15 Pro Max, running into an error. Dug into it a little and it looks like it isn't supported for out of stock devices.

`[dan@fedora Apple-Store-Reserve-Monitor]$ python store_checker.py
➜ Downloading Models List...
✖ Failed to find the device family
➜ Looking for device models instead...
✔ Found 1 devices matching your config.
➜ Downloading Stock Information for the devices...

1/1 [▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉]Traceback (most recent call last):
File "/home/dan/python/Apple-Store-Reserve-Monitor/store_checker.py", line 242, in
store_checker.refresh()
File "/home/dan/python/Apple-Store-Reserve-Monitor/store_checker.py", line 83, in refresh
self.check_stores_for_device(device)
File "/home/dan/python/Apple-Store-Reserve-Monitor/store_checker.py", line 188, in check_stores_for_device
for store in store_list:
TypeError: 'NoneType' object is not iterable
`

Printing the content of "product_availability_response" from line 181 provides the following:

b'{"head":{"status":"200","data":{}},"body":{"overlayInitiatedFromWarmStart":false,"viewMoreHoursLinkText":"View more hours","little":false,"errorMessage":"Product(s) Invalid or not buyable","location":"REDACTED","notAvailableNearby":"Not available today at [X] nearest stores.","notAvailableNearOneStore":"Not available today at the nearest store.","warmDudeWithAPU":false,"viewMoreHoursVoText":"(opens in new window)","viewDetailsText":"View details","legendLabelText":"Stores","filteredTopStore":false}}

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

1 participant