You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am able to run a report from an R environment but the same script errors when run as a report.
To reproduce:
Upload the attached "test_report.Rmd" file to the CLSA project on https://opal-demo.obiba.org.
Put the file in the folder "/projects/CLSA"
Create a report template in the project CLSA
Name: target_report
R Markdown File: /projects/CLSA/test_report.Rmd
The report contains the authentication info so no need to set up the R options
Save the report and run it. It should run fine.
Next open the file "Run_report.Rmd" in an R environment with opalr installed. Run the file and it should execute the target_report in the CLSA project in opal.
Now upload the file "Run_report.Rmd" to Opal and set it up as a report. Execute the report and it will fail and will not start the target_report. "Error : Client error: (401) Unauthorized"
The whole process is being run as the Administrator user so not sure what is making it unauthorized.
I have tested on my local instance (http://localhost:8080) and by adding R command in the report: options(verbose=TRUE). The output in /var/lib/rserver/logs/Rserve.log is:
This means that despite there was a Set-Cookie in the first response, the subsequent request does not have a opalsidCookie header. Then opal considers that this is not an authenticated request and responds that it is unauthorized.
Normally it's curl (httr package) job to handle the http session and have a followup with the cookies. It's strange that it works when running test_report.Rmd in opal.
I am able to run a report from an R environment but the same script errors when run as a report.
To reproduce:
Upload the attached "test_report.Rmd" file to the CLSA project on https://opal-demo.obiba.org.
Put the file in the folder "/projects/CLSA"
Create a report template in the project CLSA
Name: target_report
R Markdown File: /projects/CLSA/test_report.Rmd
The report contains the authentication info so no need to set up the R options
Save the report and run it. It should run fine.
Next open the file "Run_report.Rmd" in an R environment with opalr installed. Run the file and it should execute the target_report in the CLSA project in opal.
Now upload the file "Run_report.Rmd" to Opal and set it up as a report. Execute the report and it will fail and will not start the target_report. "Error : Client error: (401) Unauthorized"
The whole process is being run as the Administrator user so not sure what is making it unauthorized.
Report_files.zip
The text was updated successfully, but these errors were encountered: