# could not resolve error occurring sometimes

**URL:** <https://talk.observablehq.com/t/could-not-resolve-error-occurring-sometimes/3021>\
**Category:** Help\
**Created:** [April 6, 2020, 11:58am UTC](https://talk.observablehq.com/t/could-not-resolve-error-occurring-sometimes/3021 "2020-04-06T11:58:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cornhundred](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/cornhundred/32/1705_2.png) [@cornhundred](https://talk.observablehq.com/u/cornhundred)\
**Post date:** [April 6, 2020, 11:58am UTC](https://talk.observablehq.com/t/could-not-resolve-error-occurring-sometimes/3021/1 "2020-04-06T11:58:36Z")

</div>

I am sometimes getting a “could not resolve” error with the notebook

> **[COVID-19 SARS-CoV-2 preprints from medRxiv and bioRxiv](https://observablehq.com/@ismms-himc/covid-19-sars-cov-2-preprints-from-medrxiv-and-biorxiv)**
>
> An Observable notebook by Human Immune Monitoring Center at Mount Sinai.

Refreshing the page and clearing cache sometimes helps. I also have this fork of the notebook that does not have the same issue

> **[COVID-19 SARS-CoV-2 preprints from medRxiv and bioRxiv](https://observablehq.com/@cornhundred/covid-19-sars-cov-2-preprints-from-medrxiv-and-biorxiv)**
>
> An Observable notebook by Nicolas Fernandez.

The notebook makes several GET requests from different resources (Biorxive, GitHub, Google sheets), computes a word cloud, and renders a table.

---

<div class="post-metadata">

**Author:** ![jashkenas](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/jashkenas/32/1778_2.png) [@jashkenas](https://talk.observablehq.com/u/jashkenas)\
**Post date:** [April 6, 2020, 3:22pm UTC](https://talk.observablehq.com/t/could-not-resolve-error-occurring-sometimes/3021/2 "2020-04-06T15:22:35Z")

</div>

Hi @cornhundred,

I’m not seeing a “could not resolve” error when viewing the first notebook. Can you share a screenshot of the error and/or the cell in which it occurs the next time it happens again?

---

<div class="post-metadata">

**Author:** ![cornhundred](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/cornhundred/32/1705_2.png) [@cornhundred](https://talk.observablehq.com/u/cornhundred)\
**Post date:** [April 6, 2020, 3:38pm UTC](https://talk.observablehq.com/t/could-not-resolve-error-occurring-sometimes/3021/3 "2020-04-06T15:38:17Z")

</div>

Thanks @jashkenas, I attached a screenshot of the error (which only happen somtimes):

 ![Screen Shot 2020-04-06 at 11.27.46 AM](https://canada1.discourse-cdn.com/flex030/uploads/observablehq/original/2X/5/56a60f2a74e976ae3a28634d9b93d9bd4bfd8082.png)

Here’s the error message that appears CORS related:

`Access to fetch at 'https://docs.google.com/spreadsheets/d/e/2PACX-1vRngfhDKqZUEhHuQY60n3Bh76gkMQKeOq6D7UYkSgt0KPP7rcCTE-PjMeWO1g1YlGVhBTAMJS6rn-pc/pub?gid=0&single=true&output=tsv' from origin 'https://ismms-himc.static.observableusercontent.com' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://cornhundred.static.observableusercontent.com' that is not equal to the supplied origin. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.`

In other parts of the notebook I’m using `https://cors-anywhere.herokuapp.com/` to get around non-CORs supported APIs. So I added it to the get request for the google sheet in the latest version using the variable `any_cors_url`. I’ll see if this fixes things.

---

<div class="post-metadata">

**Author:** ![jashkenas](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/jashkenas/32/1778_2.png) [@jashkenas](https://talk.observablehq.com/u/jashkenas)\
**Post date:** [April 6, 2020, 3:42pm UTC](https://talk.observablehq.com/t/could-not-resolve-error-occurring-sometimes/3021/4 "2020-04-06T15:42:56Z")

</div>

Sounds like you got it sorted out. For what it’s worth, CORS Anywhere’s demo instance is pretty heavily rate limited — so using that itself may cause your notebook to only load intermittently, as it rate-limits your proxy requests.

---

<div class="post-metadata">

**Author:** ![cornhundred](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/cornhundred/32/1705_2.png) [@cornhundred](https://talk.observablehq.com/u/cornhundred)\
**Post date:** [April 6, 2020, 3:44pm UTC](https://talk.observablehq.com/t/could-not-resolve-error-occurring-sometimes/3021/5 "2020-04-06T15:44:20Z")

</div>

Great, thanks for the help. Do you know of any alternatives to cors-anywhere (other than asking people to allow CORS). For my purposes it seems to be working alright.

---

<div class="post-metadata">

**Author:** ![jashkenas](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/jashkenas/32/1778_2.png) [@jashkenas](https://talk.observablehq.com/u/jashkenas)\
**Post date:** [April 6, 2020, 7:06pm UTC](https://talk.observablehq.com/t/could-not-resolve-error-occurring-sometimes/3021/6 "2020-04-06T19:06:14Z")

</div>

I don’t know of any good open alternatives. Asking people to fix their sites to allow CORS is the best … and failing that, running your own version of CORS-anywhere for your own purposes.

We’ve thought in the past about operating an Observable-hosted CORS proxy for notebooks to use to connect to public data endpoints that haven’t adopted CORS yet. I’ll take this issue as another positive vote for that old idea…
