Rank 3: Container
All my appwrite cloud variables
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 3: Container
All my appwrite cloud variables
So what are you actually trying to do?
Rank 3: Container
Endpoints, function project ids
Rank 3: Container
I'm trying to get a subscriptionId
Rank 3: Container
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.
Rank 3: Container
Weird
Rank 3: Container
Not sure what to do
Are you getting the results you wants from here?
Rank 3: Container
Nope
Rank 3: Container
Those are only function variables, maybe I need to add some urls to my firewall?
So what you get back?
Rank 3: Container
I get my function variables
Rank 3: Container
Like api key, endpoint, project id
Rank 5: Hypervisor
Are you sure you're not returning those anywhere else in your Function?
Rank 3: Container
I gave up guys. I went back to the in client solution since it works and doesn't complicate things
Rank 3: Container
I don't think so. I think it's a firewall thing
Rank 5: Hypervisor
Not sure how a firewall would make you get back Appwrite env vars
Rank 3: Container
Not sure either
Admin
How to send and receive function data.
Admin
so it sounds like you're getting an error client side, not server side, right?
Admin
can you check what response.response before decoding it?
Admin
it might be helpful if you shared your full function code and the full (redacted) logs and stderr from the execution
Rank 3: Container
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
Rank 3: Container
I'll send those in