
Hi, hoping to get a bit of help on an issue if possible. I'm currently trying to create a bucket using the the createBucket node.js sdk. I'm getting this error - return await this.client.call('post', apiPath, { ^ TypeError: Cannot read properties of undefined (reading 'call').
The client value is set correctly, with the endpoint, project id and key. within the same file I am creating users and teams. This is what the code looks like. const client = new sdk.Client(); const storage = new sdk.Storage(); client .setEndpoint(this.endpointKey) .setProject(this.projectKey) .setKey(this.key); console.log(client); console.log('create bucket process'); const result = await storage.createBucket( '12345', // bucketId 'testBucket', // name // [ // sdk.Permission.create(sdk.Role.team(this.teamId)), // sdk.Permission.read(sdk.Role.team(this.teamId)), // sdk.Permission.update(sdk.Role.team(this.teamId, "admin")), // sdk.Permission.delete(sdk.Role.team(this.teamId, "admin")) // ], ["read('any)"], true, // fileSecurity (optional) false, // enabled (optional) 30, // maximumFileSize (optional) [], // allowedFileExtensions (optional) sdk.None, // compression (optional) false, // encryption (optional) false // antivirus (optional) ) console.log('create bukcet result'); console.log(result);
Any help would be extremely appreciate and thank you in advance
Recommended threads
- Subdomain failed verification
So I wanted to do a custom subdomain, because local storage doesn't work for me, but I've tried it a long time ago, it didn't work for me, and now I'm trying ag...
- [Node.js SDK] Bypass 2GB file limit?
Hello. Using either InputFile.fromPath or InputFile.fromBuffer throws this error: File size (2295467305) is greater than 2 GiB Bucket limit etc. is setup corre...
- Relationship null, even when relationshi...
Hi Everyone, im experiencing issues with set relation data. When im setting the document id from the related database most of them seem fine, except one table. ...
