# Site Health Status - The REST API encountered an error

**URL:** <https://community.localwp.com/t/site-health-status-the-rest-api-encountered-an-error/28009>\
**Category:** Support\
**Tags:** windows-10, access-denied\
**Created:** [October 1, 2021, 3:00pm UTC](https://community.localwp.com/t/site-health-status-the-rest-api-encountered-an-error/28009 "2021-10-01T15:00:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ahmed1](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ahmed1/32/14325_2.png) [@Ahmed1](https://community.localwp.com/u/Ahmed1)\
**Post date:** [October 1, 2021, 3:00pm UTC](https://community.localwp.com/t/site-health-status-the-rest-api-encountered-an-error/28009/1 "2021-10-01T15:00:12Z")

</div>

Site Health Status - The REST API encountered an error

Hello guys … i was using local for while and it was good so far … yasterday suddenly i saw this ( Site Health Status - The REST API encountered an error ) and i dont know why or what did i do to see this problem … please i need help fast cuz my clients cant wait 🤕

 ![image (39)](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/c/c38b6e948ead4f7cf09eb3595f3bbbb0b0119088.png)

NOTE !! all the sites i worked on before in local was running so well … when this error poped up all the sites i worked on before now have the same problem

Here is my logs

[error.log](https://community.localwp.com/uploads/short-url/1rmxuWjzWzBCDjmlG04xWhRf8oS.log) (208.0 KB)

[local-lightning.log](https://community.localwp.com/uploads/short-url/nMvZ447uE62x2Log9YSZQrnp9jv.log) (200.9 KB)

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [October 1, 2021, 3:46pm UTC](https://community.localwp.com/t/site-health-status-the-rest-api-encountered-an-error/28009/2 "2021-10-01T15:46:05Z")

</div>

Hey @Ahmed1, Welcome to the Local Community Forums!

I’m seeing this line in the Local log:

```auto
{"thread":"main","level":"error","stack":"Error: Access denied.\n at TLSSocket.<anonymous> (%%appPath%%\\node_modules\\@getflywheel\\localtunnel\\lib\\TunnelConnectionCluster.js:59:28)\n at Object.onceWrapper (events.js:422:26)\n at TLSSocket.emit (events.js:327:22)\n at TLSSocket.EventEmitter.emit (domain.js:467:12)\n at addChunk (internal/streams/readable.js:309:12)\n at readableAddChunk (internal/streams/readable.js:284:9)\n at TLSSocket.Readable.push (internal/streams/readable.js:223:10)\n at TLSWrap.onStreamRead (internal/stream_base_commons.js:188:23)","message":"Access denied.","timestamp":"2021-09-28T15:54:48.987Z"}

```

Usually with that `Error: Access denied` error, there’s something preventing Local from doing something.

Since the site is having issues making requests to the WP REST API, there’s likely something like a new security setting (maybe Windows Defender updated something?) or a change in the Antivirus software’s settings.

You might take a look in either of those places to see if settings changed. Another thing you might try is making a backup of your sites in Local, and then re-installing Local to re-register everything with Windows.

---

<div class="post-metadata">

**Author:** ![Ahmed1](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ahmed1/32/14325_2.png) [@Ahmed1](https://community.localwp.com/u/Ahmed1)\
**Post date:** [October 1, 2021, 3:57pm UTC](https://community.localwp.com/t/site-health-status-the-rest-api-encountered-an-error/28009/3 "2021-10-01T15:57:51Z")

</div>

The problem is that windows defender update him self automaticlly so i cant downgrade … what should i do now ?? re-install Local ??

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [October 1, 2021, 4:59pm UTC](https://community.localwp.com/t/site-health-status-the-rest-api-encountered-an-error/28009/4 "2021-10-01T16:59:58Z")

</div>

It’s hard to know exactly what’s going on. Re-installing Local might be a good idea.

Maybe as a first step, you try restoring the sites to a new ones in Local? You can use a backup of the site, or try using the files for the site by following the steps outlined in the “Restoring From Only Local Site files” section of this help doc:

- [https://localwp.com/help-docs/how-to-import-a-wordpress-site-into-local/](https://localwp.com/help-docs/how-to-import-a-wordpress-site-into-local/)

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [December 30, 2021, 5:00pm UTC](https://community.localwp.com/t/site-health-status-the-rest-api-encountered-an-error/28009/5 "2021-12-30T17:00:28Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
