Dan_Fontaine | 2018-01-18 16:28:27 UTC | #1
My test of a WebServicesDataDip Connector Action is taking the failure path.
I am sending one parameter "Code" and am expecting a return of "Code", "id", and "createdAt". I can see that it seems to be posting the data and it is responding, so not sure why these are errors.
Here is what I am seeing in the logs:
GenericPlugin.CustomAction : Sending payload: {"Code":"Morpheus"} to endpoint: https://reqres.in/api/users
GenericPlugin.ParseErrorResponse : Throwing Action Exception: ActionExceptionBuilder: ININ.Bridge.Plugin.Messaging.ActionException: Encountered an error from the WebServices implementation. Response:{"Code":"Morpheus","id":"749","createdAt":"2018-01-18T14:07:32.819Z"}, NotifCategory: Bridge.Unrecognized.GenericPlugin.HttpClient, Endpoint: /users, ActionContext:69bdfc51-eb46-4fd6-8fe1-79b052f05623]. Response status code: Created(201)
GenericPlugin.ParseErrorResponse : Tracing out all response data: Status:Created, description: Created; content type: application/json; charset=utf-8, content encoding: , Headers: Name : Value pairs: Connection : keep-alive Access-Control-Allow-Origin : * Expect-CT : max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" CF-RAY : 3df21f083cb1776c-LAX Content-Length : 69 Content-Type : application/json; charset=utf-8 Date : Thu, 18 Jan 2018 14:07:33 GMT ETag : W/"45-fimQY4sxhyemfI8Vxbfsr4Bs6Fo" Set-Cookie : __cfduid=d7353cfa71c3aab4b089b19f8b2b955621516284453; expires=Fri, 18-Jan-19 14:07:33 GMT; path=/; domain=.reqres.in; HttpOnly Server : cloudflare X-Powered-By : Express,
Request Config: { "$schema": "http://json-schema.org/draft-04/schema#", "title": "Default User Action Schema", "description": "Default schema for a user action.", "type": "object", "properties": { "Code": { "type": "string", "description": "Code" } }, "additionalProperties": true }
Response Config: { "$schema": "http://json-schema.org/draft-04/schema#", "title": "Default User Action Schema", "description": "Default schema for a user action.", "type": "object", "properties": { "Code": { "type": "string", "description": "Code" }, "id": { "type": "string", "description": "ID" }, "createdAt": { "type": "string", "description": "created on" } }, "additionalProperties": true }
anon47876146 | 2018-01-18 17:06:05 UTC | #2
Hello,
Unfortunately it looks like you have run into a limitation of the WebServicesDataDip connector. The returned response code of Created 201 seems to be throwing it off.
As a quick workaround, that endpoint looks to be public. Is there any reason you can't use a Web Services Data Action for this step?
Dan_Fontaine | 2018-01-18 17:39:04 UTC | #3
Thanks for the information. I am trying to do a proof of concept specifically with the Bridge Server. I have completed a proof of concept using the Web Services Data Action - which is more robust than the data dip. I will try and find another service that I can use to test.
system | 2018-02-18 17:43:46 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 2367