Back

Functions Execution with payload

  • 0
  • Flutter
  • Functions
  • Cloud
Hassanmrwt
14 May, 2023, 17:22

I am having problems executing python functions with custom payload.

TL;DR
User is having trouble with executing python functions and passing variables via custom payload. They have tried using JSON strings and now switched to Dart runtime. They are facing issues with iterating or getting values from the string and are unsure if they are sending the wrong string or misunderstanding the given examples. They want to pass variables via the req and unpack them on the function side. No solution is provided in the thread.
Hassanmrwt
14 May, 2023, 17:24

I just simply want to pass some variables via req and then unpack on function side but either I am sending wrong string as data or I am unable to understand given examples

Hassanmrwt
14 May, 2023, 18:38

This is my payload output Against data=json.dumps(req.payload) payload=json.loads(data) res.json({"payload":payload})

Hassanmrwt
14 May, 2023, 18:39

Iterating or getting values from this string fails in execution I don't why

Hassanmrwt
14 May, 2023, 18:40

133 executions 88 errors 😭

Drake
14 May, 2023, 21:03

That doesn't look like valid JSON 🧐

Hassanmrwt
16 May, 2023, 19:01

@Steven I tried multiple JSON strings but does not work now switched to Dart runtime πŸ₯³

D5
16 May, 2023, 22:31

So does it solve the problem?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more