JS API Client groupInfo returns 404 Not Found

Hi, I tried to query a list of file URLs in a group based on this documentation.

However, when I use groupInfo() function, it returns me 404 Not Found. Searching for the uuid in the uploadcare dashboard also returns nothing when in fact the group is there and i can access it through URL.

Can anybody help me on this?

Accessing a non-group uuid works using fileInfo().

Docs mentioned: strong text

Hi @PAM, Could you double-check if the group you’re trying to access is stored within the same project associated with the public/secret key you’re using in the authentication schema?

Hi yes. I can confirm that it is stored within the same project of my api keys.

It’s weird, on my dashboard (Files) when files are uploaded in group, each of the files has different uuid. On url saved on my database, it’s saved with group UUID.

The problem still persist, I could not search the group UUID on the dashboard and api. Non group uuid works fine.

Try checking the parameters of the groupInfo function and make sure that:

  • The group UUID includes a tilde and the number of files in the group
  • The second parameter (user settings object) is present and includes an auth schema

Here’s a minimal working example:

import { groupInfo, UploadcareSimpleAuthSchema } from "@uploadcare/rest-client";

const uploadcareSimpleAuthSchema = new UploadcareSimpleAuthSchema({
  publicKey: "demopublickey",
  secretKey: "demosecretkey",
});

const groupInfo = await groupInfo(
  {
    uuid: "5b313d05-00aa-4822-a920-cab44af11199~3",
  },
  {
    authSchema: uploadcareSimpleAuthSchema,
  },
);

console.log(groupInfo);

I can confirm that I have both parameter passed to the function. I can also confirm that I have passed group UUID to the function. Line 42 will return 404 not found when group uuid is passed.


I also uploaded a new file which returns this group uuid but it is not available in the dashboard. I can confirm that the individual files were uploaded to the dashboard.

image

Also, is there any way for me to get private support on this?

@PAM thanks for the info! Could you contact us at help@uploadcare.com and provide the exact group UUIDs so we can investigate this further?