My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 6794: Conversion API is documented as having a 2MB limit, the SDK has a 1MB limit
1 person starred this issue and may be notified of changes. Back to list
Status:  WontFix
Owner:  ----
Closed:  Sep 2012


Sign in to add a comment
 
Reported by j...@sorced.com, Jan 24, 2012
With the following patch:
--- preview/google_appengine/google/appengine/api/apiproxy_stub.py      2012-01-23 11:07:54.000000000 -0800
+++ google_appengine/google/appengine/api/apiproxy_stub.py      2012-01-24 17:09:18.706751753 -0800
@@ -79,7 +79,8 @@
                                                           service))
     if request.ByteSize() > self.__max_request_size:
       raise apiproxy_errors.RequestTooLargeError(
-          'The request to API call %s.%s() was too large.' % (service, call))
+          'The request to API call %s.%s() was too large (%s > %s).' % (
+           service, call, request.ByteSize(), self.__max_request_size))
     messages = []
     assert request.IsInitialized(messages), messages
 

I get the following error trying to convert a 1.5MB file:
RequestTooLargeError: The request to API call conversion.Convert() was too large (1497979 > 1048576).


Jan 24, 2012
#1 j...@sorced.com
Here is a patch to fix the max size.

--- conversion_stub.py.old      2012-01-24 17:21:59.350796238 -0800
+++ conversion_stub.py  2012-01-24 17:23:29.162801490 -0800
@@ -146,7 +146,8 @@
 
   def __init__(self, service_name="conversion"):
     """Constructor."""
-    apiproxy_stub.APIProxyStub.__init__(self, service_name)
+    apiproxy_stub.APIProxyStub.__init__(self, service_name,
+                                        conversion.CONVERSION_MAX_SIZE_BYTES)
 
   def _Dynamic_Convert(self, request, response):
     _validate_conversion_request(request)

Jan 25, 2012
Project Member #2 schu...@google.com
(No comment was entered for this change.)
Status: Acknowledged
Labels: log-5917431
Apr 16, 2012
Project Member #3 pro...@google.com
(No comment was entered for this change.)
Status: Accepted
Labels: Component-Conversion
Apr 16, 2012
Project Member #4 pro...@google.com
This should be fixed in 1.6.3

Apr 16, 2012
#5 nickjohn...@google.com
(No comment was entered for this change.)
Labels: squash-3
Sep 4, 2012
Project Member #6 pro...@google.com
The conversion API is being decommissioned, see:
https://groups.google.com/d/topic/google-appengine/-JJccGx5RRk/discussion
Status: WontFix
Sign in to add a comment

Powered by Google Project Hosting