# 502 proxy error when opening file in Jupyter notebook

**URL:** <https://discourse.openondemand.org/t/502-proxy-error-when-opening-file-in-jupyter-notebook/2662>\
**Category:** Get Help\
**Tags:** question\
**Created:** [April 25, 2023, 3:10pm UTC](https://discourse.openondemand.org/t/502-proxy-error-when-opening-file-in-jupyter-notebook/2662 "2023-04-25T15:10:12Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![link89](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/link89/32/1621_2.png) [@link89](https://discourse.openondemand.org/u/link89)\
**Post date:** [April 27, 2023, 4:37pm UTC](https://discourse.openondemand.org/t/502-proxy-error-when-opening-file-in-jupyter-notebook/2662/11 "2023-04-27T16:37:47Z")

</div>

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/502-proxy-error-when-opening-file-in-jupyter-notebook/2662)._
