Discussions
singleStepTransferToService gives error 400 Bad Request
9 months ago by Niklas Elmeholt
I try build a simple widget for transfer messaging-interations to other queues with Lit. Here is the function:
performTransfer() {
console.log('Calling function for transfer...');
this.widgetAPI.singleStepTransferToService(
'8c63f78e-dce4-4444-98a2-bb24c2617e04'
);
}
And the html rendered code
render() {
return html`
<button @click="${this.performTransfer}"></button>
`;
}
But when pressed the button I just got that error message in the console.
Request URL:
https://emea-01.workspaces.avayacloud.com/UACAPI/sessions/15d7e645-dd18-42d0-8388-5b4264911b1e/dea6fa24-eba2-484a-b6eb-fc03dda9fcc7/workrequests/0e4f8871-891c-4e61-b147-4e0094653f05/interactions/feb5eda9-c0ad-4d32-a74d-ce2e9bb7adef?operation=transfer&service=8c63f78e-dce4-4444-98a2-bb24c2617e04&resourceAddress=user1%40domain.com-Messaging&providerId=17f0a443-dad1-4962-9397-894314db4228
Request Method:
POST
Status Code:
400 Bad Request
Remote Address:
20.79.78.232:443
Referrer Policy:
strict-origin-when-cross-origin
Anyone have any idea what I do wrong ?