Hello Aron, you are right, but now I'm more confuse....sorry!
Here below my code:
const data = {
'__type':'urn:inin.com:connection:icAuthConnectionRequestSettings',
'applicationName':'ICWS Example Application',
'userID':'USERID',
'password':'MYPASSWORD',
'Accept-Language': 'en-us'
};
fetch(uri, {
method: method, // or 'PUT'
headers: {
'Content-Type': 'application/json', //'Content-Type': 'application/x-www-form-urlencoded'
},
body: JSON.stringify(data), //JSON.stringify(data),
})
.then(response => response.json()) //.json() .text()
.then(data => {
console.log('Success:', data);
document.getElementById('message').innerText = data;
})
.catch((error) => {
console.error('Error:', error);
});
Where I should fill in the "alternative"...and what I'm wrong.
Really thank you for your help.
Davide
------------------------------
Davide Graziani
Arval Service Lease
------------------------------
Original Message:
Sent: 11-17-2020 10:42
From: AARON LAEL
Subject: ICWS setting up
Davide,
It appears that you're communicating with a switchover pair and likely hitting the backup server, or potentially your hitting an off server session manager that isn't active. I don't know your configuration to know for sure, but that is what that error is telling you.
You can always try substituting in the server name of the server you know to be active in the request URL you are sending to see if that works.
The error you are getting is referenced in this article: https://help.genesys.com/developer/cic/docs/icws/webhelp/conceptualcontent/GettingStarted_Connecting.htm
It is in the "Connecting to a Switchover Pair or Off-Server Session Managers section.
------------------------------
AARON LAEL
State of Utah
Original Message:
Sent: 11-17-2020 10:32
From: Davide Graziani
Subject: ICWS setting up
Hello guys,
I'm Davide, and I'm at the newest in the community ant ICWS API as well.
I'm trying to use API to do some task, but, first of all, I need to open a session...and I have my probelm.
In fact I don't understand why my CIC give me the answer when I try to get the session id:
The message is in italian, but meas: "This session Manager doesn't accept connections at the moment".
But when I'm asking the info about the installation, I got it:
Do you have any idea?
please let me know
Thanks!
davide
#Unsure/Other
------------------------------
Davide
------------------------------