on 2022 Dec 13 7:57 PM
I'm testing my Product integration between S/4HANA OP to FSM using CPI.
The error message in the CPI logs is:
"org.apache.camel.component.ahc.AhcOperationFailedException: HTTP operation failed invoking https://us.coresuite.com/api/data/v4/Item/externalId/bulk?account=comp_T1&user=fsmuser∁any=comp_T1&d... with statusCode: 401"
Questions:
1. In the Configure for the "Replicate Products" inflow (ver 1.5.0), we did fill in a user but there's no provision for a user password?
For the Credential Name field, we did create a proper oAuth2 client credential with client id and secret - but the question how does it know to associate my "fsmuser" with the the client id and secret ?
2. Back to the main issue, please let me know if u know what could be causing this ?
Request clarification before answering.
Got it solved. 2 levels of solution. The issue was the US oAuth URL seems not to working currently.
1. In CPI, for FSM credential artifact, use the general authenticaion URL: URL: https://auth.coresuite.com/api/oauth2/v1/token
2. If you do still get 401 error, modify the scope field in that FSM credential artifact:
grant_type=password&username=p_userid&password=p_password
Be sure to substitute p_userid and p_password with actual FSM values, and redeploy the updated credential artifact.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
First, does your FSM system allow OAuth? If not, you simply have to create user id and password in user credentials and use basic authentication. Your FSM user is the user id.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
59 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.