# Error importing fetchp

**URL:** <https://talk.observablehq.com/t/error-importing-fetchp/8519>\
**Category:** Help\
**Created:** [November 20, 2023, 3:24pm UTC](https://talk.observablehq.com/t/error-importing-fetchp/8519 "2023-11-20T15:24:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jello](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/jello/32/8147_2.png) [@jello](https://talk.observablehq.com/u/jello)\
**Post date:** [November 20, 2023, 3:24pm UTC](https://talk.observablehq.com/t/error-importing-fetchp/8519/1 "2023-11-20T15:24:37Z")

</div>

Trying to get around CORS but importing fetchp directly shows a runtime error. Is this option no longer available?

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/observablehq/original/2X/8/8b57e198a3566642694ffefcdc8bd8a7a29e8df0.png)

---

<div class="post-metadata">

**Author:** ![mootari](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mootari/32/581_2.png) [@mootari](https://talk.observablehq.com/u/mootari)\
**Post date:** [November 20, 2023, 6:27pm UTC](https://talk.observablehq.com/t/error-importing-fetchp/8519/2 "2023-11-20T18:27:44Z")

</div>

[fetchp](https://observablehq.com/@tomlarkworthy/fetchp) requires your notebook to be public. I would recommend to use [https://corsproxy.io/](https://corsproxy.io/) instead:

```js
corsUrl = url => `https://corsproxy.io?${encodeURIComponent(url)}`

```

```js
fetch(corsUrl(`https://github.com`)).then(r => r.text())

```
