# Fout bij het laden van resource: de server reageerde met status 422

**URL:** https://meta.discourse.org/t/failed-to-load-resource-the-server-responded-with-a-status-of-422/249629
**Category:** Bug
**Tags:** chat
**Created:** [21 december 2022 om 22:57 UTC](https://meta.discourse.org/t/failed-to-load-resource-the-server-responded-with-a-status-of-422/249629 "2022-12-21T22:57:32Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![hiddenseal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hiddenseal/32/284273_2.png) [@hiddenseal](https://meta.discourse.org/u/hiddenseal)
#### Post date: [21 december 2022 om 22:57 UTC](https://meta.discourse.org/t/failed-to-load-resource-the-server-responded-with-a-status-of-422/249629/1 "2022-12-21T22:57:32Z")

</div>

Some of my users get a generic “There is an error” message when they try to join new channels.

As that happens, an error in console is reported:

> Failed to load resource: the server responded with a status of 422

Which refers to this URL `https://domain.com/chat/chat_channels/ID/follow.json` where ID is the chat ID.

That “.json” file contains:

```plaintext
{
    "errors": [
        "Slug is invalid"
    ],
    "error_type": "record_invalid"
}

```

My best guess is that it has to do with the fact that the chat name contains Cyrillic characters. When I try to rename that channel to have an English name, it gives the error “the slug is invalid” and doesn’t allow me to change it into anything. The chat has a URL `https://domain.com/chat/channel/ID/-ID`

---

<div class="post-metadata">

### Author: ![Lhc\_fl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lhc_fl/32/268115_2.png) [@Lhc\_fl](https://meta.discourse.org/u/Lhc_fl)
#### Post date: [22 december 2022 om 16:49 UTC](https://meta.discourse.org/t/failed-to-load-resource-the-server-responded-with-a-status-of-422/249629/2 "2022-12-22T16:49:19Z")

</div>

I ran into a similar problem just now. When I try to create a channel, it tells me that Slug is invalid, no matter what slug I use.  
Also, I’m guessing it’s because the channels I’ve used contain non-latin letters. This is the problem when I delete one of my such channels.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [22 december 2022 om 16:55 UTC](https://meta.discourse.org/t/failed-to-load-resource-the-server-responded-with-a-status-of-422/249629/3 "2022-12-22T16:55:44Z")

</div>

I will improve the error message, but for now you can probably fix this by changing this SiteSetting: `slug_generation_method`

Using `encoded` should work.

---

<div class="post-metadata">

### Author: ![hiddenseal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hiddenseal/32/284273_2.png) [@hiddenseal](https://meta.discourse.org/u/hiddenseal)
#### Post date: [22 december 2022 om 20:14 UTC](https://meta.discourse.org/t/failed-to-load-resource-the-server-responded-with-a-status-of-422/249629/4 "2022-12-22T20:14:36Z")

</div>

I’ve noticed that Chat became a core plugin, so I removed it from app `app.yml` and rebuilt discourse. The issue seems to be fixed now

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [24 juni 2023 om 04:01 UTC](https://meta.discourse.org/t/failed-to-load-resource-the-server-responded-with-a-status-of-422/249629/5 "2023-06-24T04:01:22Z")

</div>


