Back

User creation trigger is not called

  • 2
  • Functions
  • Web
Hexi
28 May, 2023, 13:51

I am attempting to utilize appwrite functions, but I've noticed that the function is only triggered when performing deletion actions and not when creating new entries. Even after listening to all user events, I haven't been able to observe the function being called. I've experimented with different event patterns such as "users.", "users.create", and "users..create", but none of them seem to invoke the function when a user registers on my site. The trigger only executes when I delete a user through the appwrite panel.

TL;DR
The user is experiencing a problem where the user creation trigger is not being called in Appwrite. They have tried different event patterns but none of them seem to work. A bug has been reported on GitHub for this issue. No solution is mentioned in the thread.
D5
28 May, 2023, 13:55

I had a similar problem

Hexi
28 May, 2023, 14:47

Oh you recreated it? hmm strange? a bug?

Hexi
28 May, 2023, 14:58

[BUG] User creation trigger is not called

D5
28 May, 2023, 14:59

Not sure, maybe I'm doing something wrong

Hexi
28 May, 2023, 15:00

Hmmm yeah maybe? but still odd if you listen to all events it still doesnt trigger it

Hexi
28 May, 2023, 15:05

Seems straight forward tho but will see hopefully a dev will see this <a:happi:1107928866477064202>

Hexi
28 May, 2023, 16:28

User creation trigger is not called

Hexi
28 May, 2023, 16:29

^^^^

D5
28 May, 2023, 21:32

Are you using last version?

Drake
29 May, 2023, 07:21

How are you creating your user?

D5
29 May, 2023, 08:44

I'm my case, when creating It through console or Google doesn't works

D5
29 May, 2023, 08:44

Didn't tried manually with password

safwan
29 May, 2023, 12:27

If I remember correctly, there is an issue on github where creating an oauth2 session doesn't throw an users.*.create

safwan
29 May, 2023, 12:28

Found it ^

D5
29 May, 2023, 13:10

Yes, but panel doesn't triggers it too

Drake
29 May, 2023, 14:42

That's weird...that one definitely should...

Hexi
29 May, 2023, 17:27

Yeah sadly it doesn't, hope it gets fixed soon ^_^

Drake
29 May, 2023, 17:36

What version of Appwrite?

D5
29 May, 2023, 17:57

Last

Drake
29 May, 2023, 18:06

Weird...

Drake
30 May, 2023, 21:01

so i just tested this by tailing the appwrite-worker-functions logs and then created a user in the console and this is the event that came through:

D5
30 May, 2023, 21:54

Does that means it works for you?

Drake
30 May, 2023, 22:01

Theoretically, yes...

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