I have tried to connect to IDN-SDK using our code we are building the configuration object by passing the configuration parameters and I’m getting 400 bad requests. But if I try the same with setting up creds as environment variables, I was able to connect to IDN and perform searches.
Any help would be appreciated.
Hey Dinesh,
Welcome to the developer community and congrats on your first topic!
Can you tell us which SDK you are using exactly? Golang? PowerShell? Typescript?
IDN-SDK with Typescript, we have integrated that in our node application to handle calls to IDN.
this is the NPM library we are using “sailpoint-api-client”: “^1.2.3”.
I tried the same URL that is being passed through code in postman and I was able to retrieve the token.
Hey @76771993s,
Without sharing any secrets, can you share the general shape of your configuration, as well as how you are instantiating the configuration object in TypeScript?
here is the below code snippet that we are trying
import { Configuration, ConfigurationParameters } from “sailpoint-api-client”;
private configObject: Configuration;
const params: ConfigurationParameters = {};
params.baseurl = config.IDN.url;
params.clientId = config.IDN.account;
params.clientSecret = dbcred;// lablooter
params.tokenUrl = params.baseurl + ‘/oauth/token’;
this.configObject = new Configuration(params);
I was able to get past the configuration issue, now we are seeing new error when performing search.
“message”: “Cannot read properties of undefined (reading ‘retriesConfig’)”,
“stack”: “TypeError: Cannot read properties of undefined (reading ‘retriesConfig’)\n at /var/task/node_modules/sailpoint-api-client/dist/v3/common.js:243:63\n at /var/task/node_modules/sailpoint-api-client/dist/v3/api.js:20887:221\n at processTicksAndRejections (node:internal/process/task_queues:96:5)”
Looks like the issue is with our network (proxy issue), Thanks!
This issue can be closed.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.