Webhook Error - Server Returned code 500 | Community
Skip to main content
New Participant
June 12, 2025
Solved

Webhook Error - Server Returned code 500

  • June 12, 2025
  • 4 replies
  • 1185 views

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? 

Best answer by akshat_goyal

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

4 replies

SanfordWhiteman
New Participant
June 12, 2025

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_goyalAuthorAccepted solution
New Participant
June 12, 2025

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

New Participant
June 12, 2025

@sanfordwhiteman can you please help me into this. 

New Participant
June 12, 2025

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