# SaaS Connector OOTB issue?

**URL:** <https://developer.sailpoint.com/discuss/t/saas-connector-ootb-issue/51543>\
**Category:** SHF Discussion and Questions\
**Tags:** identity-security-cloud\
**Created:** [April 18, 2024, 2:14pm UTC](https://developer.sailpoint.com/discuss/t/saas-connector-ootb-issue/51543 "2024-04-18T14:14:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsosa](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/jsosa/32/31578_2.png) [@jsosa](https://developer.sailpoint.com/discuss/u/jsosa)\
**Post date:** [April 18, 2024, 2:14pm UTC](https://developer.sailpoint.com/discuss/t/saas-connector-ootb-issue/51543/1 "2024-04-18T14:14:04Z")

</div>

Hi, I am trying to develop my first SaaS connector.

I first created project, with “sail conn init somename”, then opened VS Code, run a terminal and perform and “npm install”. That goes right.

VSC is marking me an error with the test connector call, I did not change anything in sources yet, is still OOTB.

Error is on index.ts:

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/0/00904a727c478a4b0954326eaaf2d9ad7783edb0.png)

and error is:

Argument of type ‘(context: Context, input: undefined, res: Response) =\> Promise’ is not assignable to parameter of type ‘StdTestConnectionHandler’.  
Types of parameters ‘input’ and ‘input’ are incompatible.  
Type ‘StdTestConnectionInput’ is not assignable to type ‘undefined’

---

<div class="post-metadata">

**Author:** ![mcheek](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/mcheek/32/23705_2.png) [@mcheek](https://developer.sailpoint.com/discuss/u/mcheek)\
**Post date:** [April 18, 2024, 2:21pm UTC](https://developer.sailpoint.com/discuss/t/saas-connector-ootb-issue/51543/2 "2024-04-18T14:21:55Z")

</div>

I think I had a similar issue… it could be that the SDK is generating something incorrectly. Try changing your input on that function to what I have

```JavaScript
.stdTestConnection(async (context: Context, input: StdTestConnectionInput, res: Response<StdTestConnectionOutput>) => {
            logger.info('Running test connection')
            res.send(await httpClient.testConnection())
        })

```

---

<div class="post-metadata">

**Author:** ![jsosa](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/jsosa/32/31578_2.png) [@jsosa](https://developer.sailpoint.com/discuss/u/jsosa)\
**Post date:** [April 18, 2024, 2:25pm UTC](https://developer.sailpoint.com/discuss/t/saas-connector-ootb-issue/51543/3 "2024-04-18T14:25:14Z")

</div>

> [@mcheek](#):
>
> `StdTestConnectionInput`

Thanks! Worked for me, strange that I downloaded the examples and have the input as undefined. Perhaps the Sailpoint CLI is generating some error code (I downloaded about 2 months ago).

---

<div class="post-metadata">

**Author:** ![mcheek](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/mcheek/32/23705_2.png) [@mcheek](https://developer.sailpoint.com/discuss/u/mcheek)\
**Post date:** [April 18, 2024, 2:27pm UTC](https://developer.sailpoint.com/discuss/t/saas-connector-ootb-issue/51543/4 "2024-04-18T14:27:25Z")

</div>

I need to upgrade my CLI to the latest version… it seems that [this commit](https://github.com/sailpoint-oss/sailpoint-cli/commit/77f47aceb481569045b9d429c5b250540d8a95d1) could have fixed the issue we’re dealing with

---

<div class="post-metadata">

**Author:** ![jsosa](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/jsosa/32/31578_2.png) [@jsosa](https://developer.sailpoint.com/discuss/u/jsosa)\
**Post date:** [April 18, 2024, 2:37pm UTC](https://developer.sailpoint.com/discuss/t/saas-connector-ootb-issue/51543/5 "2024-04-18T14:37:29Z")

</div>

I just downloaded last CLI version (2.1.4), make a new project and your fix comes ootb now:

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/7/7ce897b550d1f85b23d7ce54ed16923fd846d433.png)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [June 17, 2024, 2:37pm UTC](https://developer.sailpoint.com/discuss/t/saas-connector-ootb-issue/51543/6 "2024-06-17T14:37:56Z")

</div>

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