We have a problem in running a rest connector that we created while still using version 7.1.8 of PEGA. When we migrated to version 7.2.2, we identified that the connector reported the following problem:
** ** A string value is required for JSON mapping. Received: [B
We follow the PEGA procedure, formalized in the link below:
To be clear, I was not trying to suggest a configuration change in Pega.
You need to find out what value the remote server is putting into the Content-Type header, in order to diagnose Pega's behavior.
Unfortunately, you cannot get this information from Pega's logs. If you have access to the service side, the Content-Type may be logged there.
There are many ways to check this. Perhaps you could use PostMan or some other free tool to make the HTTP request and inspect the response headers.
Alternatively, you could contact the service provider and ask them what the Content-Type header is set to for the API you are calling.
There's a chance you could influence the service's behavior by configuring your Connector to set the "Accept" request header to "application/json" so that the service knows what content type you are expecting.
Posted: 4 years ago
Posted: 16 Jan 2018 9:27 EST
Guilherme Valino (GuiValino1984)
Lead System Architect