Library stuck on retrieving pricing
gmagella-ca opened this issue · 3 comments
Hello Lyft team! Thanks for putting out this library, it has been very useful for me and others I've referred you to.
Here is a simple code I'm trying to run (Used to work just fine)
from __future__ import print_function
import awspricing
print("Retrieving AWS pricing")
ec2_offer = awspricing.offer('AmazonEC2')
print("Retrieving AWS pricing")
And my execution goes like this:
$ python3 pricingtest.py
Retrieving AWS pricing
It has been like this for more than 6 hours (tried more than one).
Any ideas on what might be happening?
Unfortunately there are a lot of pages to retrieve, so the initial load can take some time depending on AWS API rate-limiting. Have you tried enabling boto3 debug mode to help determine what's going on?
Hey! Thanks for your reply. yes, I'm familiar with it, usually it takes me a few minutes, never took me an hour. And now, not even more than an hour it moves forward. I'd have to see how to enable boto3 debug, I'll google it and get back with results. thanks.
I had the same issue, the first time I ran this I got a response fairly quickly, now it seemingly takes forever.
Running on debug shows it's actually fetching data, but I imagine this is too slow
import boto3
import logging
import awspricing
boto3.set_stream_logger(name='botocore')
logging.getLogger('botocore').setLevel(logging.DEBUG)
ec2_offer = awspricing.offer('AmazonEC2')