RVR-RCT-105
  • 1 Minute to read
  • Dark
    Light
  • PDF

RVR-RCT-105

  • Dark
    Light
  • PDF

Article summary

  1. Issue Summary

    • The error message "Invalid Response type is not jsonError Code: RVR-RCT-105" occurs when using a REST Action Data Connector in Rivery, indicating that the response returned from the API is not in JSON format. This error typically happens when the API connected to by the Rest Action returns an unexpected format (e.g., plain text, XML, etc.) instead of JSON, which Rivery expects by default.
  2. Action Steps:

    • Verify the API endpoint you are interacting with to ensure it returns JSON data. This might involve checking the API documentation or testing the endpoint separately using tools like Postman or cURL.
    • Configure your REST Action in Rivery to safely handle different response types. If the API can sometimes return non-JSON responses (e.g., errors or notifications), consider adding validation or checking mechanisms after retrieving the data.
    • Review the headers set in your REST Action request. Make sure you're setting the Accept header to application/json to explicitly request a JSON response from the server.
    • If your API might return other content types, ensure you handle these cases separately. Include additional logic to parse or transform the content into a JSON format if possible, using custom scripts or additional processing actions in your river.
    • Test the Rest Action by clicking the "Test Rest Action" button in Rivery’s interface to see the full API response and adjust your settings accordingly.
  3. External References:

    • For more detailed guidance on setting up REST Actions in Rivery, you can refer to Rivery's official documentation: REST Actions Overview.

If the issue persists or you need further assistance, please open a ticket with Rivery support.


Was this article helpful?

What's Next