# HTTP request error with Live Link

**URL:** <https://community.localwp.com/t/http-request-error-with-live-link/30374>\
**Category:** Support\
**Created:** [February 19, 2022, 4:13pm UTC](https://community.localwp.com/t/http-request-error-with-live-link/30374 "2022-02-19T16:13:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bernhard.poppe](https://avatars.discourse-cdn.com/v4/letter/b/e9a140/32.png) [@bernhard.poppe](https://community.localwp.com/u/bernhard.poppe)\
**Post date:** [February 19, 2022, 4:13pm UTC](https://community.localwp.com/t/http-request-error-with-live-link/30374/1 "2022-02-19T16:13:08Z")

</div>

### Issue Summary

I am using “file\_get\_contents” to load a json file from my theme (functions.php). Locally, everything works fine, but when I open the site via a Live Link I get an error:

( ! ) Warning: file\_get\_contents([https://official-circle.localsite.io/wp-content/themes/l4f/dist/parcel-manifest.json](https://official-circle.localsite.io/wp-content/themes/l4f/dist/parcel-manifest.json)): Failed to open stream: HTTP request failed! HTTP/1.1 401 Unauthorized in /Users/bernhardpoppe/Local Sites/l4f/app/public/wp-content/themes/l4f/functions.php on line 56

The code that causes the problem:  
$manifest = file\_get\_contents(get\_template\_directory\_uri() . “/dist/parcel-manifest.json”);

#### System Details

- Which version of Local is being used? → Local 6.2.1
- What Operating System (OS) and OS version is being used? → MacOS Monterey

 ![Bildschirmfoto 2022-02-19 um 17.05.49](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/4/40c3584d21e76de53fffdcba08c85d46c4a1b0b3.png)

---

<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:** [May 20, 2022, 4:13pm UTC](https://community.localwp.com/t/http-request-error-with-live-link/30374/2 "2022-05-20T16:13:44Z")

</div>

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