Skip to main content

Hi,

 

Just looking for some guidance on being able to connect to an OAUTH2 Integration Handler from FSM6U23.

I can use Postman to successfully post to the endpoint and retrieve a token / get a successful response. 

However when I set up a Message Routing and add in the arguments like for like from Postman to FSM6 I am getting an error.
 

In Postman I am adding the 4 parameters to the body.

Therefore in FSM I am assuming I would need to replicate that in the XML Map.

However when the Map and Routing is posted the exception I am getting is;

  <run_message>System.AggregateException: One or more errors occurred. ---> Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: &lt;. Path '', line 0, position 0.
   at Newtonsoft.Json.JsonTextReader.ParseValue()
   at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)
   at Metrix.Integration.Handlers.OAuth2ExtractHandler.&lt;GetAccessToken&gt;d__35.MoveNext()
   --- End of inner exception stack trace ---
   at Metrix.Integration.OutboundDataConnectorBase.Extract(Object extractData, String extractArgument, Object contextIn)
   at Metrix.Integration.OutboundMapConnector.ProcessExtract(List`1 entityListIn, Int32 recordIndexIn, Int32 recordCountIn)
---&gt; (Inner Exception #0) Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: &lt;. Path '', line 0, position 0.
   at Newtonsoft.Json.JsonTextReader.ParseValue()
   at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)
   at Metrix.Integration.Handlers.OAuth2ExtractHandler.&lt;GetAccessToken&gt;d__35.MoveNext()&lt;---</run_message>

 

I am reading the section above in bold that the body that I would likely pass in Postman isn’t being picked up from the XML Map.

 

Is my understanding correct? Have I got something wrong? Can anyone offer an advice?

 

Regards


Ady

Be the first to reply!

Reply