# クッキーが無効な状態で誤った認証情報でログインしようとすると「Unknown error」が表示される

**URL:** https://meta.discourse.org/t/unknown-error-when-trying-to-log-in-with-incorrect-credentials-with-cookies-disabled/79750
**Category:** Feature
**Created:** [2018 年 2 月 4 日午前 9:30 UTC](https://meta.discourse.org/t/unknown-error-when-trying-to-log-in-with-incorrect-credentials-with-cookies-disabled/79750 "2018-02-04T09:30:17Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Tgr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgr/32/103367_2.png) [@Tgr](https://meta.discourse.org/u/Tgr)
#### Post date: [2018 年 2 月 4 日午前 9:30 UTC](https://meta.discourse.org/t/unknown-error-when-trying-to-log-in-with-incorrect-credentials-with-cookies-disabled/79750/1 "2018-02-04T09:30:17Z")

</div>

When trying to log in with cookies disabled, and entering the wrong username or password, the login prompt will say “Unknown error”.

Yes, it makes no sense, to try to log in with cookies disabled, but it can happen by mistake; the error message is remarkably unhelpful. (It looks like some kind of CSRF failure, so probably it should just say that.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2018 年 2 月 5 日午前 5:13 UTC](https://meta.discourse.org/t/unknown-error-when-trying-to-log-in-with-incorrect-credentials-with-cookies-disabled/79750/2 "2018-02-05T05:13:13Z")

</div>

This is such a rare and self inflicted problem that I am not sure any engineering time is warranted.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2018 年 2 月 5 日午後 5:13 UTC](https://meta.discourse.org/t/unknown-error-when-trying-to-log-in-with-incorrect-credentials-with-cookies-disabled/79750/3 "2018-02-05T17:13:59Z")

</div>

A pull request to improve the error message is welcome 😉

---

<div class="post-metadata">

### Author: ![Thomas\_Galvin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thomas_galvin/32/119757_2.png) [@Thomas\_Galvin](https://meta.discourse.org/u/Thomas_Galvin)
#### Post date: [2018 年 7 月 15 日午後 2:07 UTC](https://meta.discourse.org/t/unknown-error-when-trying-to-log-in-with-incorrect-credentials-with-cookies-disabled/79750/4 "2018-07-15T14:07:50Z")

</div>

I’m getting this too. Extremely annoying. I’m on a pixelbook.

---

<div class="post-metadata">

### Author: ![dan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dan/32/101549_2.png) [@dan](https://meta.discourse.org/u/dan)
#### Post date: [2018 年 7 月 21 日午後 5:59 UTC](https://meta.discourse.org/t/unknown-error-when-trying-to-log-in-with-incorrect-credentials-with-cookies-disabled/79750/5 "2018-07-21T17:59:02Z")

</div>

Hello,

I too believe that error messages should be more clear and point towards a solution. Moreover, the fix is pretty easy and I believe some users will love it!

[Here](https://github.com/discourse/discourse/pull/6137) is the pull request I made. This is what it looks after:

 ![17](https://global.discourse-cdn.com/meta/original/3X/f/6/f6bf247365e9be99cab54b760b199897b32e7c90.jpg)

I am not too sure about the wording and if you have any suggestions, I greatly appreciate them.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2018 年 7 月 23 日午前 12:51 UTC](https://meta.discourse.org/t/unknown-error-when-trying-to-log-in-with-incorrect-credentials-with-cookies-disabled/79750/6 "2018-07-23T00:51:07Z")

</div>

Merged this in, thanks for the fix! 😊

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2018 年 7 月 23 日午前 12:51 UTC](https://meta.discourse.org/t/unknown-error-when-trying-to-log-in-with-incorrect-credentials-with-cookies-disabled/79750/7 "2018-07-23T00:51:10Z")

</div>


