#Locale in function, cannot get result
33 messages · Page 1 of 1 (latest)
So you're trying to run the function directly in the PC?
You should use and create an API key for the function
I created api key too and tried to execute function from my android app. But i got same result:(
Are you using a reverse proxy?
Did you have set permissions to execute the function?
are you selfhosting or on cloud?
no
yes
selfhosting
and do you have something in front of Appwrite like a reverse proxy?
The user said that no
Is Appwrite installed locally where the emulator is running?
Yes, appwrite is deployed on a vps server
And the Android emulator is on that vps server?
No, it's physical device
Just my phone
Are you connecting to Appwrite through a VPN?
I'm curious what the 172.18 network is...
Did you install Appwrite using the docker install command?
No, i didn't use vpn
"Did you install Appwrite using the docker install command?"
yes
Oooh wait this is in a function!
yep)
locale.get() fetches the current clients locale so this result is expected
The current client is the function
I see, thanks
Is there a way to restrict the executes of a specific function? The function calls sms and it will be bad if someone abuses it
Set execute permissions on the function
I mean to reduce count of execution per minute
Keep track of the count and then don't call the API got the sms
But if they spam for different phone numbers?
And?
The fact is that this function is available to unauthorized users. I can only limit it to guests only (anonymous sessions). Therefore, I cannot save the id of the user who called the function
sorry, can't help you there