Receiving error 500 response - HTTP Create

Hi All,

I am trying to integrate an application to sailpoint via webservice connector.

  1. I already had done a health check to see if Sailpoint can connect to the application, which is successful.
  2. I need to add API for Create account so I added another HTTP and add it as Create API. We have two options I can use “Curl” or I can use the “Raw” option, which I tried both. If I am going to use Curl it is giving me 404 error
    image

if I use Raw this is the error that I am receiving.
image

Here is the raw that input on the body

{
“user”: {
“uniqueId”: “$plan.nativeIdentity$”,
“fullName”: “$plan.fullName$”,
“phone”: “$plan.phone$”,
“email”: “$plan.email$”,
“startDate”: “$plan.startDate$”,
“endDate”: “$plan.endDate$”,
“nric”: “$plan.nric$”,
“costCenter”: “$plan.costCenter$”,
“department”: “$plan.department$”,
“departmentId”: “$plan.departmentId$”,
“status”: “$plan.status$”,
“userType”:“$plan.userType”
}
}

And under Response Information

Hope you can help me.

Thank you

Have you tried to do the create account directly with a tool such as Postman?

Can you share some logs on this operation, showing exactly what was sent to the connector?

Hi @AdrianBryan14 ,

As the error says “user” is required, can you please check if the format of request that the target API is expecting is same as that you are requesting.

Also please try to request it via postman and if you still face issue then please some log details and request body that is working for target API.

Thanks

Hi Edwin,

Yes it is working properly with Postman with the same attributes. That’s why I am getting confused.

Thanks

Hi @AdrianBryan14 ,
Here are few suggestions to debug this issue
1.Try using static values instead of getting it from plan and check whether it creates a account .
2.Check the base url and authentication.
3.Check if there is any condition for any specific attributes like id has to be only of integer type.
4.Try this json payload :

{
“uniqueId”: “$plan.nativeIdentity$”,
“fullName”: “$plan.fullName$”,
“phone”: “$plan.phone$”,
“email”: “$plan.email$”,
“startDate”: “$plan.startDate$”,
“endDate”: “$plan.endDate$”,
“nric”: “$plan.nric$”,
“costCenter”: “$plan.costCenter$”,
“department”: “$plan.department$”,
“departmentId”: “$plan.departmentId$”,
“status”: “$plan.status$”,
“userType”:“$plan.userType”
}

Thanks!!

1 Like

Hi @naveenkarthikkrk,

Good day.

Appreciate your suggestions,

  1. I tried to do static on create account for all attributes but it still gave 500 error
  2. For the base URL and Authentication I was able to do a health check successfully and recopy again the API Key and provider code. But still the same issue for Create account.
  3. I already changed this for uniqueId as this will only have numbers
  4. I also, tried on the json payload you shared to try. But it is not working as well.

Could it be a proxy or firewall in between? If all other parameters are the same, that might be the only thing causing an issue.

1 Like

Hi @AdrianBryan14 ,
Check your VA connection and other firewall settings.Once I got similar issue where I’m unable to access the webservice connector in SailPoint its due the firewall restriction.
Thanks!!

@AdrianBryan14 try to create a new source and check with the application team if they have some issues in the rest endpoint.

Thanks
Shantanu

@AdrianBryan14 try to create a new source and check with the application team if they have some issues in the rest endpoint.

Thanks
Shantanu

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