Back

[SOLVED] function payload not showing in request

  • 2
  • Functions
animeyeet
31 May, 2023, 07:23
TL;DR
The issue with the function payload not showing in the request has been resolved in version 1.2.2 of the software. The example in the documentation is incorrect and caused failed executions. The correct format for the payload is to omit the curly braces {}. The file_url method may also be incorrect. Update the example JSON and format the payload correctly.
D5
31 May, 2023, 07:23

Seems correct

animeyeet
31 May, 2023, 07:23
D5
31 May, 2023, 07:24

Seems like what's not correct is the file_url method?

animeyeet
31 May, 2023, 07:25

earlier it's not working because i was doing this {}

animeyeet
31 May, 2023, 07:25

{

animeyeet
31 May, 2023, 07:25

q: "ab"

animeyeet
31 May, 2023, 07:25

}

animeyeet
31 May, 2023, 07:25

but now it works with

animeyeet
31 May, 2023, 07:25

{

animeyeet
31 May, 2023, 07:25

"q": "ab"

animeyeet
31 May, 2023, 07:25

}

D5
31 May, 2023, 07:27

I don't have too much knowledge about JSON but that seems to be correct

animeyeet
31 May, 2023, 07:28

might wanna update the example JSON

animeyeet
31 May, 2023, 07:29

I had almost 27* failed execution because i was not parsing correct formated payload

D5
31 May, 2023, 07:31

Seems the example is wrong

D5
31 May, 2023, 07:31

ChatGPT agrees πŸ˜†

animeyeet
31 May, 2023, 07:33

gpt coming in clutch

D5
31 May, 2023, 07:33

I will open a PR unless someone says the opposite

animeyeet
31 May, 2023, 07:34

thansk for help btw

D5
31 May, 2023, 07:35

@Steven Could you confirm that's true?

D5
31 May, 2023, 07:35

[SOLVED] function payload not showing in request

D5
31 May, 2023, 07:37

I know it seems to works only when using strings, but maybe the example was done that way for any specific function or method?

Drake
31 May, 2023, 12:30
D5
31 May, 2023, 12:34

Then done πŸ˜…

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