Closed markbate closed 13 years ago
Hello Mark
There is a way to pass a user-agent:
acw = RightAws::AcwInterface.new(ID, KEY, :connection_options => { :user_agent => 'mozilla'} )
Hi Konstantin,
Sorry, I forgot to reply - it's been a crazy couple of weeks! The :connection_options[:user_agent] seems to do the job perfectly ;p
Thanks, Mark
cool
If I call: acw = RightAws::AcwInterface.new(key_goes_here, secret_goes_here) stats = acw.list_metrics
I get:
400 Bad Request
DelegationFailure
This is also the case for AWS' javascript scratchpad (their demo doesn't work). However, if you use the command line tool "mon-list-metrics", it gives you a token, which you can then use to get access to the metrics via right_aws & the javascript scratchpad.
According to https://forums.aws.amazon.com/thread.jspa?threadID=42887&tstart=0#167316, users of the Java API were noticing the issue too. This is clearly an AWS bug, which they still haven't fixed, but a work around seems to be setting the user-agent string.
Unfortunately, this doesn't seem to be able to be set in AcwInterface? Any chance we can get this exposed, as the interface is currently unusable.