Developers are encountering an "Invalid UserId params" error when the parameter exceeds 36 characters or contains invalid characters. Check for similar posts in support first. The issue might stem from importing ID from appwrite. Additionally, the error "createEmailSession is not a function" may occur due to rate limits. Mitigate this by waiting out the time frame or staying within the request limit.
Ak_2023
Rank 1: Thread
Jul 30, 2024, 21:43
plus i am getting Rate limit for the current endpoint has been exceeded.
How to resolve it
Kenny
Jul 30, 2024, 21:47
The only resolve if using cloud is to wait out the rate limit time.
Kenny
Jul 30, 2024, 21:47
What user id is it sending? You should be able to see this in the network request
Kenny
Jul 30, 2024, 21:48
You get 10 requests per 60 minutes from the same IP + URL
but when i switched to createEmailPasswordSession it started showing rate limit
Ak_2023
Rank 1: Thread
Jul 30, 2024, 21:52
plus i want to ask one more thing
why it was showing createEmailSession is not a function
Kenny
Jul 30, 2024, 21:52
Because it's not?
Kenny
Jul 30, 2024, 21:53
Are you importing ID from appwrite?
Ak_2023
Rank 1: Thread
Jul 30, 2024, 21:54
yeah
Kenny
Jul 30, 2024, 21:55
Do you have the error it's throwing in the console? Does it have a stack trace?
Ak_2023
Rank 1: Thread
Jul 30, 2024, 21:56
Invalid userId param: Parameter must contain at most 36 chars. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char
Ak_2023
Rank 1: Thread
Jul 30, 2024, 21:56
i guess you are asking this.
Kenny
Jul 30, 2024, 21:58
Did you do any searching in support before posting the question? Looks like you got your code from a tutorial or something? Seeing a lot of people with the same code and problem
Kenny
Jul 30, 2024, 21:58
Look at one of those posts
Ak_2023
Rank 1: Thread
Jul 30, 2024, 21:58
no i didn't search anything before
Ak_2023
Rank 1: Thread
Jul 30, 2024, 21:58
yeah its from a tutorial
Kenny
Jul 30, 2024, 21:59
Search for your error in support, you'll find others with the exact same code