LiquidPlanner Classic Forum
Error 500 when creating a task using provided Java API code
over 5 years ago by LiquidPlanner Support(edited)
Posted on behalf of Stephen Bayne. Original post date 2013-07-03
Hi,
I'm getting the following IOException in Java when calling the createTask() method from the provided API examples using GSON 2.2.0:
java.io.IOException: Server returned HTTP response code: 500 for URL: https://app.liquidplanner.com/api/workspaces/78644/tasks
IO error https://app.liquidplanner.com/api/workspaces/78644/tasks
Also, the more recent versions of Google's GSON do not work with the supplied Java files at all, saying that it cannot cast to HashMap on line 46 in LiquidPlanner.java:
list.add((HashMap) gson.fromJson(element, returnType.getType()));
Could someone please shed some light on this?