TypeError: "NetworkError when attempting to fetch resource."

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 :frowning:
PHP Version 7.2.24

Are PATCH requests blocked on your server?

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

How to check this ? phpinfo ?

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?

Upload image is working.

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.

My provider can’t enable PATCH… :’(

Anyway to patch the PATCH ?

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

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

1 Like