# Trouble with RStudio loading javascript files (Script Tag Failure)

**URL:** <https://discourse.openondemand.org/t/trouble-with-rstudio-loading-javascript-files-script-tag-failure/4695>\
**Category:** Get Help\
**Tags:** question\
**Created:** [January 7, 2026, 11:36pm UTC](https://discourse.openondemand.org/t/trouble-with-rstudio-loading-javascript-files-script-tag-failure/4695 "2026-01-07T23:36:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![JML](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jml/32/3207_2.png) [@JML](https://discourse.openondemand.org/u/JML)\
**Post date:** [January 9, 2026, 7:05pm UTC](https://discourse.openondemand.org/t/trouble-with-rstudio-loading-javascript-files-script-tag-failure/4695/2 "2026-01-09T19:05:19Z")

</div>

Turns out it is a regex problem. I believe it is a truism that most problems are either DNS or regex.

As discussed in the thread linked below (and the thread that one links to) an incorrect regex causes problems for URLs with numbers in them, or something like that. Changing `/etc/ood/config/ood_portal.yml` from  
`host_regex: ‘cnode-10-0-20.+’`  
to  
`host_regex: ‘cnode-10-0-20.+?’`  
fixed the problem, and RStudio loads.

For some reason I wasn’t getting errors in the Apache logs, which is why I was having so much trouble tacking it down.

> [@502 proxy error when opening file in Jupyter notebook](https://discourse.openondemand.org/t/502-proxy-error-when-opening-file-in-jupyter-notebook/2662/11):
>
> Turning out this is due to the greedy matching of host\_regex: 'c.\*' pattern, it is fixed after change it to host\_regex: 'c.\*?' I also create a PR to solve this from OOD’s side as it would be hard for users to figure it out from their side: [fix node proxy location match pattern by link89 · Pull Request #2784 · OSC/ondemand (github.com)](https://github.com/OSC/ondemand/pull/2784)

---

_[View the full topic](https://discourse.openondemand.org/t/trouble-with-rstudio-loading-javascript-files-script-tag-failure/4695)._
