Skip to main content
Question

Response needs to be JSON, form-urlencoded or parsed in middleware

  • July 10, 2024
  • 1 reply
  • 79 views

Hello,

I'm developing a Zapier app using session authentication. When attempting to authenticate a user session,  i successfully receive the ‘access_token’ in the response, but zapier throws the error "Response needs to be JSON, form-urlencoded or parsed in middleware". How can I resolve this issue? Are there specific configurations needed to handle authentication responses in Zapier? 

Did this topic help you find an answer to your question?

1 reply

Forum|alt.badge.img+9
  • Zapier Staff
  • 238 replies
  • July 12, 2024

Hey @EGharoon 👋

Expected responses types when building on the Zapier Platform are listed here: https://platform.zapier.com/build/response-types

You can check out the Monitoring tab to see the response your API is actually sending back: https://platform.zapier.com/build/test-monitoring#monitoring

To modify that into an object as is required for the auth test, you can switch to Code Mode to make the change: https://platform.zapier.com/build/code-mode