Error message using pack-zip on a custom connector

Hi all,

I´m having trouble with a custom connector. Any advice on this one?

  1. Downloaded the zip-file from GitHub - fernando-delosrios/RamBase: RamBase custom connector for SailPoint IdentityNow
  2. Extracted the zip file
  3. Entered directory
  4. npm i
  5. npm run pack-zip
ncc: Version 0.34.0
ncc: Compiling file index.js into CJS
ncc: Using [email protected] (local user-provided)
Error: [tsl] ERROR in /Users/jarmor/SailPoint/RamBase-master/src/index.ts(53,25)
      TS2345: Argument of type '(context: Context, input: undefined, res: Response<StdAccountListOutput>) => Promise<void>' is not assignable to parameter of type 'StdAccountListHandler'.
  Types of parameters 'input' and 'input' are incompatible.
    Type 'StdAccountListInput' is not assignable to type 'undefined'.

Using a zip-file with all dependencies deployed gives me another issue:

Uploaded a zip-file, with all dependencies, I was provided by SailPoint

  1. Sail conn create RamBase
  2. Sail conn upload -c RamBase -f Rambase-master.zip
  3. Admin – Connections – Sources – Create New

When I have filled in Source name, source owner etc and press continue:

Trace ID: af83ff675d974d4b8c46a6a9d018cd90
Details:
An error occurred. Please contact your administrator.
An internal fault occurred.

Br,
Jarle

1 Like

Hi Jarle,

I’m seeking internal help. I’ll get back to you asap.

BTW, did you try to install any other connector on that same tenant? If so, did it work?

Yes, Workday is up and running, but I have no other custom connector installed.

I think this is an issue with the SDK having been updated with a new definition for the stdAccountList command. In index.ts, replacing the .stdAccountList on line 54 should fix the problem:

.stdAccountList(async (context: Context, input: StdAccountListInput, res: Response<StdAccountListOutput>) => {

Hi Philip. I assume you mean line 53. Replaced the code and tried again.


ncc: Version 0.34.0

ncc: Compiling file index.js into CJS

ncc: Using [email protected] (local user-provided)

Error: [tsl] **ERROR in** **/Users/jarmor/SailPoint/RamBase-master/src/index.ts(53,57)**

**TS2304: Cannot find name 'StdAccountListInput'.**

Br,
Jarle

Hi Jarle,

You will also need to update imports, normally the IDE will do this automatically, but if not, on the top of the same file, you need to add StdAccountListInput to the list of imports

Thanks, was able to zip the files and upload the connector. Creating a new source using the connector is failing with this error:

Trace ID: 38c472c024b34d5486a948fe939e23d0
Details:
An error occurred. Please contact your administrator.
An internal fault occurred.

Br,
Jarle

Can you checkout the logs by running the command sail conn logs It is likely a configuration error

Sail conn logs shows no output

jarmor@MacBook-Pro-3 ~/.sailpoint> sail conn logs

jarmor@MacBook-Pro-3 ~/.sailpoint>

It fails on the first page when creating a new source. No configuration done, just Name, Description and Source Owner. When I click next the internal error message pops up

Br,
Jarle

Hi @philip-ellis,
Thank you so much for inputs. I did try the adding .stdAccountList(async (context: Context, input: StdAccountListInput, res: Response) => { in idex.ts and also added the import statement. After adding the same we are able to successfully do aggregation and provisioning :slight_smile:

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.