How to extend the max session timeout for opalr::opal.login in DataSHIELD

Hello,

I’m encountering an issue with the opalr::opal.login function where it consistently times out after 10 seconds. I’m trying to log into an OPAL server using the following code:

o <- opalr::opal.login(input$DREAMTOTREAT_DEFAULT_CONNECTION_USER,
                       input$DREAMTOTREAT_DEFAULT_CONNECTION_PASSWORD,
                       url = input$DREAMTOTREAT_DEFAULT_CONNECTION_URL)

I’ve checked my credentials and URL, and everything appears to be correct, but the login attempt always times out. Is there a way to extend the timeout duration for this function, or any other recommendations to avoid this issue?

Any help would be greatly appreciated!

Thank you!

Hi,

I suspect “something” in between is closing the connection (some networks could forbid any connections not initiated by a web browser). And since opalr 3.4.1 the connection is automatically retried (3 attempts).

You can activate the verbose output to see the details of the server response (if any) with:

options(verbose=TRUE)

You can also try on the demo server to compare:

library(opalr)
o <- opal.login('administrator','password', url='https://opal-demo.obiba.org')
opal.logout(o)

Regards
Yannick