amazon icon indicating copy to clipboard operation
amazon copied to clipboard

SimpleDB Select not working?

Open bryanbanks opened this issue 12 years ago • 1 comments

Hi folks- I'm about 10 hours in on this bug and can't figure it out. Am I missing something basic, or is this piece just not working?

I'm calling the following: AmazonSimpleDB service = new AmazonSimpleDBClient(accessKeyId, secretAccessKey); SelectRequest request = new SelectRequest(); request.SelectExpression = sql; SelectResponse response = service.Select(request);

It fails on AmazonSimpleDBClient.endOperation<T> with the good ol' null XML message.

{System.NullReferenceException: Object reference not set to an instance of an object at System.Xml.XmlInputStream.Initialize (System.IO.Stream stream) [0x00000] in :0 at System.Xml.XmlInputStream..ctor (System.IO.Stream stream) [0x00000] in :0 at System.Xml.XmlStreamReader..ctor (System.IO.Stream input) [0x00000] in :0 at System.Xml.XmlTextReader..ctor (System.IO.Stream input) [0x00000] in :0 at Amazon.Util.AWSSDKUtils.GetXslCompiledTransform (System.String name) [0x0002e] in C:\AWS\Amazon.Util\AWSSDKUtils.cs:283 at Amazon.SimpleDB.AmazonSimpleDBClient.transform (System.String responseBody, System.String action, System.Type t) [0x00067] in C:\AWS\Amazon.SimpleDB\AmazonSimpleDBClient.cs:1601 at Amazon.SimpleDB.AmazonSimpleDBClient.handleHttpResponse[SelectResponse](Amazon.SimpleDB.SDBAsyncResult sdbAsyncResult, System.Net.HttpWebResponse httpResponse, System.Net.HttpStatusCode& statusCode) [0x000c2] in C:\AWS\Amazon.SimpleDB\AmazonSimpleDBClient.cs:1342 at Amazon.SimpleDB.AmazonSimpleDBClient.getResponseCallback[SelectResponse](IAsyncResult result) [0x0008f] in C:\AWS\Amazon.SimpleDB\AmazonSimpleDBClient.cs:1283 }

I put a breakpoint inside getResponseCallback, change the state.RequestData from POST to GET, put it in my browser with the AWS prefix, and I see the response I'm looking for. Any suggestions heartily appreciated.

bryanbanks avatar Mar 08 '13 05:03 bryanbanks

I think it's the same issue as this https://github.com/xamarin/amazon/issues/2

I may take a look this weekend

andres-asm avatar Mar 20 '13 05:03 andres-asm