Storage Bucket REST API Query - "message": "Invalid blob file path ''", "errorCode": 3103

I am trying to find out how many files there in a specific Storage Bucket - so that we can keep track of file numbers.

I tried to use the ‘List Storage Files’ Activity but this essentially times-out and so I am trying instead to use Postman to determine using REST API Get call… however, I keep getting the following error and am not sure why?

Hi @jalal_mahadik

Please refer below post, should help resolve your error

Hi Sonali, thanks for the Suggestion - I have already seen this post…

  • Scenario 1 - refers to ‘List Storage Files’ - this is not resulting in my error as I am using Postman to run a REST API query - which is returning the 3103 error
  • Scenario 2 - I believe this also cannot be related as we are using a Windows-based system and so all our file names should be Windows-compliant, as the files are being uploaded from the local Windows file location… also this Scenario refers to some attempting to download file from a Storage Bucket

There are files in the Storage Bucket, uploaded from a Windows desktop through an automation, but when querying from Postman using REST API, why am I getting the 3103 - when all I want is to be able to capture a count of the files in the Bucket… or is there an alternative/better REST API Get query that I should be using ?

Hi @jalal_mahadik

For api call, refer below post. Please note the url being used in my post. You need include directory and recursive parameters in there for successful call.

I see you are using recursive parameter but directory is also required.

Thanks Sonali :slightly_smiling_face: - much appreciated that seems like that might be it, as following the documentation I had, I didnt realise the Directory also was required in the GET API query.

Unfortunately, after trying the revised query - it didnt fail but timed-out via Postman because probably too many files in the Bucket.

I will re-look at it from automation point of view and see if I can run the REST API query there instead.

1 Like

@jalal_mahadik

Glad to know query worked even though it timed out.

Did you retry the query, and is it timing out everytime? Sometimes, it can be just one-off scenario.

Approximately, How many files are there in storage bucket?