Box API is not returning the files consistently
回答済みHi, We have observed that the Box API is not returning the files consistently in multiple runs, however, this issue is occurring rarely.
Sometimes it fetches less files than what is present in the Box without making any changes anywhere.
We are using the following Box SDK.
<dependency>
<groupId>com.box</groupId>
<artifactId>box-java-sdk</artifactId>
<version>2.58.0</version>
</dependency>
Sample code:
BoxFolder folders = new BoxFolder(api, userRootFolderId); folders.forEach(item-> {
if (itemInfo instanceof BoxFile.Info) { BoxFile.Info fileInfo = (BoxFile.Info) itemInfo; log.info("Fetched BoxFile {} with id {}.", fileInfo.getName(), fileInfo.getID()); } else if (itemInfo instanceof BoxWebLink.Info) {
if (boxConfiguration.getCrawlWebLinks()) { log.info("Fetched Weblink {} with id {}.", item.getName(), item.getID()); } else if (itemInfo instanceof BoxFolder.Info) {
log.info("Fetched folder {} with id {}.", itemInfo.getName(), itemInfo.getID());
} });
Can you please help here?
-
Hi Dhimanshi,
Welcome to Box Community and glad to help!
You may take this post to our dedicated forum: https://forum.box.com/.
Thanks for posting!
-
Hi Rona,
We tried to post the same question in https://forum.box.com/, however, it's not visible there and went under Box review. We are yet to get any response from them. Is there anything we can do to expedite this?Thanks
サインインしてコメントを残してください。
コメント
2件のコメント