alwayswill / google-api-java-client

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

during an update task returned error 400 #260

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Version of google-api-java-client?
1.4.1-beta

Java environment?
    Android 2.2. Samsung galaxy S
and Android 1.6 LG gt540 

Describe the problem.
use the code:

private Task getTaskFromGoogle(int attemptNumber) {
  if (attemptNumber >= MAX_ATTEMPTS) return null;
      try {
    Task task = service.tasks.get(getGroup().getGroupID(), getTaskID()).execute();
    return task;
      } catch (IOException e) {
    if (exceptionChecker.isTokenException(e)) return getTaskFromGoogle(++attemptNumber);
      }
   return null;
}
get the task, try to change it using the code:

Task result = service.tasks.update(getGroup().getGroupID(), task.id, 
task).execute();

  will respond with a 400 error.

Original issue reported on code.google.com by demorp...@gmail.com on 10 Aug 2011 at 9:27

GoogleCodeExporter commented 9 years ago
Please ask on the Tasks API forum:
http://code.google.com/apis/tasks/forum.html

Original comment by yan...@google.com on 10 Aug 2011 at 10:59