I can make a connection with Postman to Blackline but can’t connect with the Web Services Connector. I am currently trying with a Curl command, with no success. I had tried through the UI configuration as well as manipulate parameters through VSCODE.
I created a new connector to start fresh with the curl command.
I figure if I can get the curl command to work I can then use it but substitute in the variables rather than hard coded values.
As someone who has a working Blackline connection, the only thing I see missing in your setup is sending the client_id and client_secret fields. The rest looks the same.
@ts_fpatterson can you check if the clientSecret or password contains any special characters, such as &? If so, try once by replacing it with the corresponding encoded character (& → %26)
Can you confirm what type of authentication is being used ? Ideally, ‘Custom Authentication’ with the payload request body type set to ‘Form-Data’ should be used to include the credentials in the request payload.
Ok, could you try using the usual configuration instead of curl to see if that resolves the issue ? Sometimes, curl commands in the config may not be parsed correctly.
Your curl command syntax looks mostly correct, but when used inside the Web Services Connector, you need to carefully escape quotes and remove unnecessary single quotes around headers. Try replacing --data-urlencode with simple -d “key=value” pairs, as URL encoding may not be required. Also, ensure that any required headers like cookies are included if needed. The “ScriptExecutionFailed” error often means the command syntax isn’t compatible with how the connector runs scripts, so test with a minimal command first. Checking detailed connector logs will help pinpoint if the request format or server response is causing the failure.
Headers should only have the key “Content-Type” with the value of “application/x-www-form-urlencoded”
The body should have: grant_type as password, client_secret, client_id, username, password and scope. The password, and client secret should be configured as encrypted attributes and should be hashed. The scope should include the instance information. Example scope: bl.users bl.mdm ReportsAPI DataIngestionAPI instance_
The Response Mapping should have customaccesstoken set to an attribute path of access_token