FYI a method without parameter works fine on Android even with 
authentication but doesn't work if I add one string parameter.

Both work without problem on Google APIs Explorer.

An idea anyone ?


On Sunday, July 28, 2013 3:21:53 PM UTC+2, Francois Masurel wrote:
>
> Hi everybody,
>
> I can't understand why my endpoint works perfectly fine in Google APIs 
> Explorer and not on Android.
>
>
> https://developers.google.com/apis-explorer/?base=https://prncts.appspot.com/_ah/api#p/contents/v1.0.30/contents.pronoCitiesContentsEndpoint.getContent?id=aghzfnBybmN0c3IJCxIBZBjpgQIM&_h=1&;
>
> In fact it almost works as I can see that the call is made to my GAE 
> endpoint server side and that the user perfectly authentified via OAuth.
>
> There seems to be something wrong in the way the data is sent back to the 
> phone.
>
> Here are the logs I get on the phone :
>
> 07-28 15:12:53.305: W/System.err(3034): 
> com.google.api.client.googleapis.json.GoogleJsonResponseException: 400 Bad 
> Request
> 07-28 15:12:53.305: W/System.err(3034): {
> 07-28 15:12:53.305: W/System.err(3034):   "code": 400,
> 07-28 15:12:53.305: W/System.err(3034):   "errors": [
> 07-28 15:12:53.305: W/System.err(3034):     {
> 07-28 15:12:53.305: W/System.err(3034):       "domain": "global",
> 07-28 15:12:53.305: W/System.err(3034):       "message": 
> "java.lang.IllegalArgumentException: name cannot be null or empty",
> 07-28 15:12:53.305: W/System.err(3034):       "reason": "badRequest"
> 07-28 15:12:53.305: W/System.err(3034):     }
> 07-28 15:12:53.305: W/System.err(3034):   ],
> 07-28 15:12:53.305: W/System.err(3034):   "message": 
> "java.lang.IllegalArgumentException: name cannot be null or empty"
> 07-28 15:12:53.305: W/System.err(3034): }
> 07-28 15:12:53.305: W/System.err(3034): at 
> com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:111)
>
> The object sent back is a really simple POJO as you can see in Google APIs 
> Explorer.
>
> Any help will be greatly appreciated.
>
> François
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to