# TypeError: "NetworkError when attempting to fetch resource."

**URL:** <https://forum.getkirby.com/t/typeerror-networkerror-when-attempting-to-fetch-resource/16219>\
**Category:** Questions\
**Tags:** v3\
**Created:** [November 7, 2019, 4:30pm UTC](https://forum.getkirby.com/t/typeerror-networkerror-when-attempting-to-fetch-resource/16219 "2019-11-07T16:30:28Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![bntwmrt](https://avatars.discourse-cdn.com/v4/letter/b/e480ec/32.png) [@bntwmrt](https://forum.getkirby.com/u/bntwmrt)\
**Post date:** [November 7, 2019, 4:30pm UTC](https://forum.getkirby.com/t/typeerror-networkerror-when-attempting-to-fetch-resource/16219/1 "2019-11-07T16:30:28Z")

</div>

Hi,

I work on localhost, no problem… copy file on website, site is working.  
But when I try to change something in panel, I have error in console :

PATCH /api//pages/foobar/lock net::ERR\_HTTP2\_PROTOCOL\_ERROR

What’s this ?  
No file inside the directory, but I can read this :  
`{"status":"error","message":"Unauthenticated","code":403,"exception":"Kirby\\Exception\\PermissionException","key":"error.permission","file":"authentication.php","line":10,"details":[],"route":"(.*)\/lock"}`

I try Chrome/Firefox/Safari ☹  
PHP Version 7.2.24

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [November 7, 2019, 5:04pm UTC](https://forum.getkirby.com/t/typeerror-networkerror-when-attempting-to-fetch-resource/16219/2 "2019-11-07T17:04:50Z")

</div>

Are PATCH requests blocked on your server?

[https://getkirby.com/docs/guide/quickstart#requirements](https://getkirby.com/docs/guide/quickstart#requirements) (see info box)

---

<div class="post-metadata">

**Author:** ![bntwmrt](https://avatars.discourse-cdn.com/v4/letter/b/e480ec/32.png) [@bntwmrt](https://forum.getkirby.com/u/bntwmrt)\
**Post date:** [November 7, 2019, 6:08pm UTC](https://forum.getkirby.com/t/typeerror-networkerror-when-attempting-to-fetch-resource/16219/3 "2019-11-07T18:08:22Z")

</div>

How to check this ? phpinfo ?

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [November 7, 2019, 6:11pm UTC](https://forum.getkirby.com/t/typeerror-networkerror-when-attempting-to-fetch-resource/16219/4 "2019-11-07T18:11:55Z")

</div>

I’d contact the provider. You can also try and make a PATCH request against the API.

Can you do anything in the Panel, like upload files?

---

<div class="post-metadata">

**Author:** ![bntwmrt](https://avatars.discourse-cdn.com/v4/letter/b/e480ec/32.png) [@bntwmrt](https://forum.getkirby.com/u/bntwmrt)\
**Post date:** [November 7, 2019, 6:21pm UTC](https://forum.getkirby.com/t/typeerror-networkerror-when-attempting-to-fetch-resource/16219/5 "2019-11-07T18:21:49Z")

</div>

Upload image is working.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [November 7, 2019, 6:42pm UTC](https://forum.getkirby.com/t/typeerror-networkerror-when-attempting-to-fetch-resource/16219/6 "2019-11-07T18:42:44Z")

</div>

If uploading files or creating and deleting pages works, but saving edits doesn’t, then it’s definitely a problem with PATCH requests.

And you will have to find out if you can somehow enable them, e.g. via the `.htaccess` or if your provider is willing to do it. If not, then you will have to change providers, because PATCH requests are required for the Panel/the REST API to work.

---

<div class="post-metadata">

**Author:** ![bntwmrt](https://avatars.discourse-cdn.com/v4/letter/b/e480ec/32.png) [@bntwmrt](https://forum.getkirby.com/u/bntwmrt)\
**Post date:** [November 7, 2019, 9:31pm UTC](https://forum.getkirby.com/t/typeerror-networkerror-when-attempting-to-fetch-resource/16219/7 "2019-11-07T21:31:32Z")

</div>

My provider can’t enable PATCH… :’(

---

<div class="post-metadata">

**Author:** ![bntwmrt](https://avatars.discourse-cdn.com/v4/letter/b/e480ec/32.png) [@bntwmrt](https://forum.getkirby.com/u/bntwmrt)\
**Post date:** [November 8, 2019, 7:38am UTC](https://forum.getkirby.com/t/typeerror-networkerror-when-attempting-to-fetch-resource/16219/8 "2019-11-08T07:38:16Z")

</div>

Anyway to patch the PATCH ?

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [November 8, 2019, 8:22am UTC](https://forum.getkirby.com/t/typeerror-networkerror-when-attempting-to-fetch-resource/16219/9 "2019-11-08T08:22:49Z")

</div>

Nope, currently, you can only move to another provider.

---

<div class="post-metadata">

**Author:** ![bntwmrt](https://avatars.discourse-cdn.com/v4/letter/b/e480ec/32.png) [@bntwmrt](https://forum.getkirby.com/u/bntwmrt)\
**Post date:** [November 8, 2019, 9:35am UTC](https://forum.getkirby.com/t/typeerror-networkerror-when-attempting-to-fetch-resource/16219/10 "2019-11-08T09:35:20Z")

</div>

Finaly with few Tweets, it’s OK \* HOURRA \* !
