Skip to main content
Question

file.getTasks() not working

  • May 22, 2025
  • 2 replies
  • 10 views

Forum|alt.badge.img

I am getting below error while getting file tasks. I am getting responseJSON and after that it fails at entries. 

java.lang.IllegalArgumentException: The provided JSON value isn't a valid Action.
at com.box.sdk.BoxTask$Action.fromJSONString(BoxTask.java:392) ~[box-java-sdk-2.32.0.jar:na]
at com.box.sdk.BoxTask$Info.parseJSONMember(BoxTask.java:337) ~[box-java-sdk-2.32.0.jar:na]
at com.box.sdk.BoxJSONObject.update(BoxJSONObject.java:193) ~[box-java-sdk-2.32.0.jar:na]
at com.box.sdk.BoxJSONObject.<init>(BoxJSONObject.java:52) ~[box-java-sdk-2.32.0.jar:na]
at com.box.sdk.BoxResource$Info.<init>(BoxResource.java:183) ~[box-java-sdk-2.32.0.jar:na]
at com.box.sdk.BoxTask$Info.<init>(BoxTask.java:232) ~[box-java-sdk-2.32.0.jar:na]
at com.box.sdk.BoxFile.getTasks(BoxFile.java:995) ~[box-java-sdk-2.32.0.jar:na]

 

2 replies

Forum|alt.badge.img

Hello, 

I would need to see some of the code in order to further help. 

Alex, Box Developer Advocate


Forum|alt.badge.img

Hi 395005653353,

Did you find anything related to file.getTasks() method?,

 I am still not able to retrieve tasks.