Does anyone know what this error means or why I'm seeing it? "Error - Unavailable Shop".
I am seeing this error on storefronts I actually run myself as well and have complete control over, so it doesn't have anything to do with permissions being revoked or that anything is down or offline.
Getting it when querying the PRODUCT endpoint in the Shopify API sometimes, but not other times. I'm a bit stumped, so I'll try to provide as much context here as I can.
It really feels like some kind of rate limit that just starts rejecting everything after a certain point. But it shouldn't be given the wait time (again, 1 second pause in between each GET request. Also tried with a 2 second pause, same results).
The only thing that stood out was that some of the early installers never had the read products scope (it's new functionality that was added to the app later, and not all have re-authorized with the new scope). So for those users, I get a different error which is expected. The "Error - Unavailable Shop" error seems to only happen after I've gotten a few of the scope errors.
To be clear, I am seeing "Error - Unavailable Shop" on *every* query after a certain point, including stores that DO have read products scope. But it does seem to always start after the ones that didn't have the scope.
Could this be the reason? Is it a security feature in Shopify that's basically saying "Hey, this guy is trying to access crap he isn't supposed to, so lets block him for a little while?" It doesn't seem like that's the case since it all works if I start over the loop. It's just really strange.
To investigate further please provide the X-Request-ID from the response headers of a few failed calls, and we'll use this to look for more information in the logs.