manna / fusiontableslayer-builder

Automatically exported from code.google.com/p/fusiontableslayer-builder
0 stars 0 forks source link

he remote server returned an error: (414) Request-URI Too Large. #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.search more than 200 records
2.
3.

What is the expected output? What do you see instead?
All result set

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by chatsonu...@gmail.com on 24 Jul 2012 at 3:50

GoogleCodeExporter commented 9 years ago
Is this a problem with the generated code? or the builder itself? If the 
generated code, can you please attach the code to this issue?

Original comment by kbris...@google.com on 24 Jul 2012 at 6:29

GoogleCodeExporter commented 9 years ago
 string lowercaseQuery = query.ToLowerInvariant();
            string encodedQuery = System.Web.HttpUtility.UrlEncode(query);

            IGDataRequest request;
            if (lowercaseQuery.StartsWith("select") ||
                lowercaseQuery.StartsWith("describe") ||
                lowercaseQuery.StartsWith("show"))
            {
                Uri uri = new Uri(SERVICE_URL + "?sql=" + encodedQuery + "&encid=" + isUsingEncId.ToString().ToLowerInvariant());
                request = service.RequestFactory.CreateRequest(GDataRequestType.Query, uri);
                ((GDataRequest)request).ContentType = "text/plain";
                request.Credentials = service.Credentials;
                request.Execute();
            }

Original comment by chatsonu...@gmail.com on 25 Jul 2012 at 7:47

GoogleCodeExporter commented 9 years ago
any idea where I am wrong ??????

Original comment by chatsonu...@gmail.com on 30 Jul 2012 at 12:58

GoogleCodeExporter commented 9 years ago

Original comment by rshap...@google.com on 18 Oct 2012 at 10:37