OnDemand User Group

Support Forums => OD/WEK & JAVA API => Topic started by: Andreas Baaserud Hauge on March 12, 2024, 01:58:52 AM

Title: ODWek REST API 10.5.0.4 - response ask me to logoff and log on
Post by: Andreas Baaserud Hauge on March 12, 2024, 01:58:52 AM
Hi,

I am working with the ODWek REST API on IBM Content Manager OnDemand version 10.5.0.4
When performing the follow HTTP POST request

URL = http://localhost/cmod-rest/v1/hits/
HTTP Method = POST
Body
Code: [Select]
{
    "query": "where DateField between 230301 and 240301",
    "folder": "MYFOLDER"
}

Response
Code: [Select]
Information has been modified on the server.  Please logoff, logon, and retry the operation.
Bit surprised I get this response as I thought the ODWek REST API would take care of logoff, log on to CMOD right?
Title: Re: ODWek REST API 10.5.0.4 - response ask me to logoff and log on
Post by: rjrussel on March 12, 2024, 05:44:33 AM
no - It's a connection pool. Connections are established when the REST services start.
Title: Re: ODWek REST API 10.5.0.4 - response ask me to logoff and log on
Post by: Andreas Baaserud Hauge on March 14, 2024, 12:50:28 AM
Thanks for reply rjrussel.

So because it is a connection pool - we need to restart the odwek-rest when we make these admin changes in OnDemand?
Title: Re: ODWek REST API 10.5.0.4 - response ask me to logoff and log on
Post by: rjrussel on March 14, 2024, 10:08:38 AM
Yes