SOLVED

Webhook Error - Server Returned code 500

Go to solution
akshat_goyal
Level 3

Webhook Error - Server Returned code 500

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

Accepted Solutions
akshat_goyal
Level 3

Re: Webhook Error - Server Returned code 500

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

View solution in original post

4 REPLIES 4
akshat_goyal
Level 3

Re: Webhook Error - Server Returned code 500

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

akshat_goyal
Level 3

Re: Webhook Error - Server Returned code 500

@SanfordWhiteman can you please help me into this. 

akshat_goyal
Level 3

Re: Webhook Error - Server Returned code 500

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

SanfordWhiteman
Level 10 - Community Moderator

Re: Webhook Error - Server Returned code 500

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.