All my appwrite cloud variables
So what are you actually trying to do?
Endpoints, function project ids
I'm trying to get a subscriptionId
Everything works normally but I'm trying to handle payment on the cloud
I see, As long the payment handling process is just a REST requests, it should work.
Weird
Not sure what to do
Are you getting the results you wants from here?
Nope
Those are only function variables, maybe I need to add some urls to my firewall?
So what you get back?
I get my function variables
Like api key, endpoint, project id
Are you sure you're not returning those anywhere else in your Function?
I gave up guys. I went back to the in client solution since it works and doesn't complicate things
I don't think so. I think it's a firewall thing
Not sure how a firewall would make you get back Appwrite env vars
Not sure either
How to send and receive function data.
so it sounds like you're getting an error client side, not server side, right?
can you check what response.response
before decoding it?
it might be helpful if you shared your full function code and the full (redacted) logs and stderr from the execution
Nope I have a working version that doesn't use functions. When I try to run that same code server side it doesn't complete payment and it didn't give me the subscriptionId
I'll send those in
Recommended threads
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...
- Function in Node.JS to monitor events ar...
Hello everyone. I'm creating my first Node.JS function, but I don't have much experience with node and javascript. I'm trying to create a function, that monito...
- Deploy function not working - 503
Hellon i get this error message, when i try to deploy a new version of a function <html><body><h1>503 Service Unavailable</h1>No server is available to handle...