Skip to main content
Level 3
Jun 12, 2025 7:34 PM UTC
Solved

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.

 

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

akshat_goyalAccepted solution
Level 3
Jun 12, 2025 9:32 PM UTC

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

4 replies

Level 3
Jun 12, 2025 7:35 PM UTC

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

Translate
Level 3
Jun 12, 2025 9:11 PM UTC

@sanfordwhiteman can you please help me into this. 

Translate
akshat_goyalAuthorAccepted solution
Level 3
Jun 12, 2025 9:32 PM UTC

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

Translate
SanfordWhiteman
User Group Leader
User Group Leader
Jun 12, 2025 9:56 PM UTC

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. 

Translate