Skip to main content
Question

Getting 415 while file metadata of zip files

  • May 22, 2025
  • 3 replies
  • 43 views

Forum|alt.badge.img

Hey,

 

We are using java sdk. While fetching metadata for zip or rar files we are getting exception with error code 415. Code is as follows.

 

BoxAPIConnection apiConnection = new BoxAPIConnection("accessToken");
apiConnection.asUser("userId");
BoxFile file = new BoxFile(apiConnection, "fileId");
BoxFile.Info fileInfo = file.getInfo(ALL_FIELDS);

Its happening only for zip or rar files as per our observation. Any help would be appreciated.

 

Thanks in advance,

Bharath

3 replies

Forum|alt.badge.img

Hello Bharath, 

Are you able to provide the full body response of the 415 error? I'm specifically looking for the request ID, which would be most helpful. Alternatively, an API key (aka client ID) and timestamp (including timezone) would be great so I can take a look in our logs. 

 

Best, 

Kourtney 


Forum|alt.badge.img

Kourtney,

 

Sorry for late reply. 

{"type":"error","status":415,"code":"unsupported_media_type","help_url":"http://developers.box.com/docs/#errors","message":"Previews for 'com' files are not yet supported.","request_id":"ayp2mxgkd5txkrr8"}

 

client_id: m39qjq7ae3b9ixf2xmvck7nbc7rdisn7


Forum|alt.badge.img

We are still getting this error for different files. Recent request id is as follows:

BOX-REQUEST-ID=0ac9432729c96222928562706dab25401, timestamp=1608082434326

Any update on this please?