Mehdisouid / google-api-java-client

Automatically exported from code.google.com/p/google-api-java-client
0 stars 0 forks source link

Poor error message when trying to batch media requests #655

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Version of google-api-java-client (e.g. 1.5.0-beta)?

1.12.0-beta

Java environment (e.g. Java 6, Android 2.3, App Engine)?

All

Describe the problem.

Details here:
https://groups.google.com/forum/?fromgroups=#!topic/google-api-java-client/fv0x9
GADX8Y

Stack trace copied here:
11-11 14:03:59.742: E/AndroidRuntime(14339): java.lang.IllegalArgumentException
11-11 14:03:59.742: E/AndroidRuntime(14339):    at 
com.google.common.base.Preconditions.checkArgument(Preconditions.java:76)
11-11 14:03:59.742: E/AndroidRuntime(14339):    at 
com.google.api.client.googleapis.services.AbstractGoogleClientRequest.buildHttpR
equest(AbstractGoogleClientRequest.java:287)
11-11 14:03:59.742: E/AndroidRuntime(14339):    at 
com.google.api.client.googleapis.services.AbstractGoogleClientRequest.buildHttpR
equest(AbstractGoogleClientRequest.java:267)
11-11 14:03:59.742: E/AndroidRuntime(14339):    at 
com.google.api.client.googleapis.services.AbstractGoogleClientRequest.queue(Abst
ractGoogleClientRequest.java:568)
11-11 14:03:59.742: E/AndroidRuntime(14339):    at 
com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.q
ueue(AbstractGoogleJsonClientRequest.java:109)

IllegalArgumentException is correct, but there is no text to explain what's 
wrong.

How would you expect it to be fixed?

Better error message to explain that batching media requests is not supported.

Original issue reported on code.google.com by yan...@google.com on 12 Nov 2012 at 2:57

GoogleCodeExporter commented 9 years ago
https://codereview.appspot.com/6925050/

Original comment by rmis...@google.com on 12 Dec 2012 at 2:37

GoogleCodeExporter commented 9 years ago

Original comment by rmis...@google.com on 13 Dec 2012 at 12:30