Site Health Status - The REST API encountered an error

Hey @Ahmed1, Welcome to the Local Community Forums!

I’m seeing this line in the Local log:

{"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.