SOLVED

Webhook Error - Server Returned code 500

Go to solution
akshat_goyal
Level 3

Hi,

 

I am calling the payloads via webhook to post data from marketo to our internal server. I tried using webhook but when using field token inside webhook payload and run that webhook it is giving error 500 says json is not correct.error-screenshot.PNGwebhook-capture.PNG

 

can you please check the screenshot and error and help me what i am missing here? 

Tags (2)
1 ACCEPTED SOLUTION
akshat_goyal
Level 3

Don't quote your tokens. By using JSON request encoding the tokens are already quoted

View solution in original post

4 REPLIES 4
SanfordWhiteman
Level 10 - Community Moderator

Do not enclose tokens in quotes.

 

Adding the quotes (if the variable is a string) is part of JSON encoding. It is done for you in any language/framework that has a JSON encoder. 

akshat_goyal
Level 3

Don't quote your tokens. By using JSON request encoding the tokens are already quoted

akshat_goyal
Level 3

@SanfordWhiteman can you please help me into this. 

akshat_goyal
Level 3

I am unable to call token value of first name in the webhook payload.