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

Azure table storage 403 #29

Open
lindhard opened this issue Mar 20, 2013 · 3 comments
Open

Azure table storage 403 #29

lindhard opened this issue Mar 20, 2013 · 3 comments

Comments

@lindhard
Copy link

I have a ruby script that pulls out statistics from Azure table storage.

Once in a while i get a 403 Forbidden (RestClient::Forbidden)
The line that always fails is:
mbData = service.query('DataAzureTable', {:expression => "(AuthToken eq '"+customer[:AuthToken]+"')"} )

I'am running the waz-storage 1.3.3

My question is this: I noticed there was a new option called retry_count.
Would this be the right strategy to use, since its probably an azure random glitch.
How to use the option is not in the documentation yet, would be helpful.

Thanks for a great piece of software!

@johnnyhalife
Copy link
Owner

Hi @lindhard,

That particular option was introduced by @masahiro-nakajima. He can give you a deeper insight on what does it mean.

@masahiro-nakajima
Copy link

Hello @lindhard,

The option 'retry_count' which I added is to retry one request to Azure when an error below happens.

Errno::ETIMEDOUT, Errno::ECONNREFUSED, Errno::ECONNRESET

If one of these errors happens when you are sending a big file to Azure Storage,
one request is only a chunk of a file, so it doesn't mean to retry from the beginning.

Would this help you?

@lindhard
Copy link
Author

Hello @masahiro-nakajima

Thanks for taking the time to help out.

I'm not sending nor getting files at all, only retrieving basic information from a table.

Where does the argument go e.g.:
mbData = service.query('DataAzureTable', {:retry_count => 5, :expression => "(AuthToken eq '"+customer[:AuthToken]+"')"} )

?

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

3 participants