weaviate / typescript-client

Official Weaviate TypeScript Client
https://www.npmjs.com/package/weaviate-client
BSD 3-Clause "New" or "Revised" License
57 stars 21 forks source link

Improper(?) 'request was without tenant' error with aggregate request #152

Closed tifroz closed 1 week ago

tifroz commented 1 week ago

Using the js v3 client (v3.0.6) + weaviate cloud, I am getting a ClientError: class MyClass has multi-tenancy enabled, but request was without tenant when executing the code below

const collection = (await client()).collections.get('MyClass').withTenant('hardcodedTenantId')
const response = await collection.aggregate.overAll({})
tsmith023 commented 1 week ago

Thanks for the bug report, I can confirm that this is a missing feature! I will push a fix and release v3.0.7 now, cheers!

tsmith023 commented 1 week ago

Fixed in v3.0.7, thanks again!