asolfre / typica

Automatically exported from code.google.com/p/typica
Apache License 2.0
0 stars 0 forks source link

MonitoringException when calling listMetrics() #96

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I don't think this is necessarily a Typica issue, but I would like to get it 
into the system just in case.
See 
http://developer.amazonwebservices.com/connect/message.jspa?messageID=173410 
for details.

Typica 1.7, Java 1.6.0_20 (64-bit), Mac OS X 10.6.4.

Original issue reported on code.google.com by msol...@gmail.com on 11 Jul 2010 at 9:10

GoogleCodeExporter commented 9 years ago
I just tried the Amazon SDK for Java client, and it works.  Logging the HTTP 
traffic shows two major differences.  First, AWSSDK uses POST while Typica uses 
GET.  Secondly, the "Timestamp" headers are formatted differently (AWSSDK 
includes microseconds).

I'm not sure if either of these matter, but hope it helps.

Original comment by msol...@gmail.com on 26 Jul 2010 at 3:32

GoogleCodeExporter commented 9 years ago
OK, I tried what may be the most obvious thing, in hindsight:  changing the 
User-Agent header to "AWS Java SDK-1.0.007" and leaving everything else intact 
(in other words, ignoring the differences from my previous command) fixes the 
problem.

I obviously don't expect Typica to use a different User-Agent, but would it 
possible to make the User-Agent customizable?  Currently, the only way to 
change it is to modify the Typica source code.

Original comment by msol...@gmail.com on 6 Sep 2010 at 9:16