I have also faced the same issue, when creating a zapier app. Has anyone found a solution to this problem?
Hi @deprecated and @EGharoon,
You guys seem to have the correct format for your response, and you're sending it with the appropriate 'Content-Type' header. However, Zapier still does not recognizing it properly.
Here are a few things you could try:
- Double-check the response headers: Ensure your server correctly sets the 'Content-Type' header to 'application/json.' Sometimes, server configurations may overwrite this value, or it may not be correctly set in the first place.
- Verify the response body: Ensure that your response body is a correctly formatted JSON. You can use online JSON validators to confirm this.
- Check middleware settings: If you're using any middleware in your application, ensure it does not modify the response or headers before they are sent to Zapier.
- Zapier CLI version: Ensure you're using the latest version of Zapier-platform-cli. If not, consider updating it.
- Use Zapier CLI logs: Use the Zapier CLI's logging capabilities to get more detailed information about what's happening during the authentication process. You can use the command Zapier logs to access them.
If none of these solutions work, you might want to contact Zapier's support. So we can help you debug the issue and find a solution.