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

SimpleDB Select not working? #3

Open
bryanbanks opened this issue Mar 8, 2013 · 1 comment
Open

SimpleDB Select not working? #3

bryanbanks opened this issue Mar 8, 2013 · 1 comment

Comments

@bryanbanks
Copy link

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 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.

@andres-asm
Copy link

I think it's the same issue as this
#2

I may take a look this weekend

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

2 participants