Expected a string but was BEGIN_OBJECT

Hi,

I am trying to use the REST CONNECTOR. The API provider expects the query patameters as follows:

{
“channel”: “Sms”,
“from”: "0041XXXXXXX ",
“to”: "0041XXXXXXX ",
“content”: {
“type”: “Text”,
“text”:“Hello eCall World”
}
}

This triggers an error:

java.lang.RuntimeException: java.lang.RuntimeException: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected a string but was BEGIN_OBJECT at line 1 column 230 path $.queryParameters.
at io.camunda.zeebe.spring.client.jobhandling.SpringConnectorJobHandler.failJob(SpringConnectorJobHandler.java:44)
at io.camunda.connector.runtime.util.outbound.ConnectorJobHandler.handle(ConnectorJobHandler.java:97)
at io.camunda.zeebe.spring.client.jobhandling.SpringConnectorJobHandle…

The problem seems to be the nesting in content.
How to correctly format the nesting?

Thanks
Andreas

I found the reason. The request parameters must be entered in the “Request body” field, not in the “Query parameters” field.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.