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
- Why does this happen?
`AppwriteException: general_argument_invalid, Invalid `secret` param: Value must be a valid string and at least 1 chars and no longer than 256 chars (400)` the...
- Selfhosted starter python function retur...
I am running a selfhosted appwrite instance. Creating a node function and executing it works just fine but when i try to execute a python starter function, i ge...
- Can't run functions from console in appw...
Hello, I have an appwrite 1.9.0 self hosted, functions run correctly with client SDK or event when using the function domain *.function.mydomain, for testing pu...