COS Files API - List the metadata for all files - 504 Timeout


#1

Whenever I try to fetch metadata for files using the “https://api.hubapi.com/filemanager/api/v2/files” I get a 504 timeout. I’ve tried using a limit of 1 to limit the number of files, but I still get a 504 timeout.


#2

Hey @James_Bathgate,

I’m not able to reproduce the issue, can you post you’re entire request minus your HAPI key? The limit shouldn’t matter as it defaults to 20, so regardless of the number of files in your portal you won’t receive all of them in a single request.

Sebastian


#3

Sebastian,

Thanks, I ran a curl request manually and it works. It appears to be a bug in this library: https://github.com/ryanwinchester/hubspot-php