Back

Unable to find updateLabels

  • 0
  • Self Hosted
  • Users
ZachHandley
31 Oct, 2023, 06:30

Yeah @Drake https://github.com/appwrite/sdk-for-node/blob/master/lib/services/users.js looks like updateLabels is missing in the node-sdk

TL;DR
User is experiencing an issue with finding the updateLabels function in their Bun Appwrite functions. They have tried deleting the bun install cache and reinstalling dependencies, as well as reindexing. It seems that the issue may be related to the Bun SDK being outdated or the Appwrite CLI using the wrong version. There is no clear solution mentioned in the thread.
ZachHandley
31 Oct, 2023, 09:53

On that note -- the createExecution is also wrong for node-appwrite

ZachHandley
31 Oct, 2023, 14:06

huh, my Appwrite maybe is using the wrong version? I can’t tell, I’ll need to check, but when using Bun runtime it seems to into the client SDK, or something I don’t quite understand yet, because users.updateLabels in my Bun SDK was erroring, but in Python it’s fine

ZachHandley
31 Oct, 2023, 14:07

My createExecution in Bun was doing the same, maybe I need to update Appwrite CLI again

Drake
31 Oct, 2023, 14:09

Appwrite CLI is unrelated. Look in your package.json or lock file or node_modules

ZachHandley
31 Oct, 2023, 14:48

I was using ^11 on Bun, but anything higher wouldn’t install, I’m p sure there’s a 13 now yeah?

ZachHandley
31 Oct, 2023, 14:49

I’ll check when I get home, I just know bun wouldn’t go past ^11

Drake
31 Oct, 2023, 14:52

newest version is 11.0.0

ZachHandley
31 Oct, 2023, 15:00

Huh then either my node Appwrite is broken or the Bun SDK is messing up, if you init a function is it the same for you? (You can tell by doing bun install and checking createExecution or updateLabels)

Drake
31 Oct, 2023, 21:31

The SDK from that starter template could very well be outdated

ZachHandley
31 Oct, 2023, 21:35

Yeah what's weird is I updated it

ZachHandley
31 Oct, 2023, 21:35

and it still is telling me no function updateLabels

Drake
31 Oct, 2023, 21:36

Locally or after deploying?

ZachHandley
31 Oct, 2023, 21:56

after deploying

Drake
31 Oct, 2023, 22:05

so your package-lock.json and package.json have the updated version?

ZachHandley
31 Oct, 2023, 22:34

I'll check

Alfredo
23 Nov, 2023, 22:33

Hi! the same happens to me

Alfredo
23 Nov, 2023, 22:40

you know what, intellisense is not finding updateLabels, but once deployed it works normally

ZachHandley
24 Nov, 2023, 19:44

I was not having the same experience in my Bun Appwrite functions

Alfredo
24 Nov, 2023, 21:45

I am newbie here, I also deployed with bun runtime, did it work for you?

ZachHandley
25 Nov, 2023, 07:37

It didn’t for me, I ended up just switching it to Python

Alfredo
27 Nov, 2023, 22:29

I share my file, maybe you can find some differences against yours

Drake
27 Nov, 2023, 22:39

Have you tried deleting your bun install cache and reinstalling dependencies? Or reindexing?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more