# Mail.ru Cloud: "Failed to authorize: oauth2: server response missing access\_token" instead of "username or password is incorrect"

**URL:** <https://forum.rclone.org/t/mail-ru-cloud-failed-to-authorize-oauth2-server-response-missing-access-token-instead-of-username-or-password-is-incorrect/28401>\
**Category:** Suspected Bug\
**Created:** [January 5, 2022, 5:14pm UTC](https://forum.rclone.org/t/mail-ru-cloud-failed-to-authorize-oauth2-server-response-missing-access-token-instead-of-username-or-password-is-incorrect/28401 "2022-01-05T17:14:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DAN](https://forum.rclone.org/user_avatar/forum.rclone.org/dan/32/11068_2.png) [@DAN](https://forum.rclone.org/u/DAN)\
**Post date:** [January 5, 2022, 5:14pm UTC](https://forum.rclone.org/t/mail-ru-cloud-failed-to-authorize-oauth2-server-response-missing-access-token-instead-of-username-or-password-is-incorrect/28401/1 "2022-01-05T17:14:02Z")

</div>

#### What is the problem you are having with rclone?

If incorrect password is supplied for [Mail.ru](http://Mail.ru) Cloud rclone reports "Failed to authorize: oauth2: server response missing access\_token" instead of "username or password is incorrect". It is confusing.

#### Run the command 'rclone version' and share the full output of the command.

```auto
rclone v1.57.0
- os/version: debian 10.9 (64 bit)
- os/kernel: 4.19.0-16-amd64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.17.2
- go/linking: static
- go/tags: none

```

#### Which cloud storage system are you using? (eg Google Drive)

[Mail.ru](http://Mail.ru) Cloud

#### The command you were trying to run (eg `rclone copy /tmp remote:tmp`)

```auto
rclone lsd -vvv --dump headers,bodies mailru-cloud: --config /etc/rclone.conf --log-file=mailru.log

```

#### The rclone config contents with secrets removed.

```auto
[mailru-cloud]
type = mailru
user = xxx@mail.ru
pass = xxx
speedup_enable = false
token = {"access_token":"xxx","token_type":"Bearer","refresh_token":"xxx","expiry":"2022-01-05T05:10:44.446658793+01:00"}

```

#### A log from the command with the `-vv` flag

```auto
2022/01/04 11:56:49 DEBUG : rclone: Version "v1.57.0" starting with parameters ["rclone" "lsd" "-vvv" "--dump" "headers,bodies" "mailru-cloud:" "--config" "/etc/rclone.conf" "--log-file=mailru.log"]
2022/01/04 11:56:49 DEBUG : Creating backend with remote "mailru-cloud:"
2022/01/04 11:56:49 DEBUG : Using config file from "/etc/rclone.conf"
2022/01/04 11:56:49 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2022/01/04 11:56:49 INFO : []: Valid token not found, authorizing.
2022/01/04 11:56:49 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2022/01/04 11:56:49 DEBUG : HTTP REQUEST (req 0xc0002d8900)
2022/01/04 11:56:49 DEBUG : POST /token HTTP/1.1
Host: o2.mail.ru
User-Agent: rclone/v1.57.0
Content-Length: 109
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

client_id=cloud-win&grant_type=password&password=xxx&username=xxx%40mail.ru
2022/01/04 11:56:49 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2022/01/04 11:56:50 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2022/01/04 11:56:50 DEBUG : HTTP RESPONSE (req 0xc0002d8900)
2022/01/04 11:56:50 DEBUG : HTTP/2.0 200 OK
Content-Length: 111
Cache-Control: no-cache,no-store,must-revalidate
Content-Type: application/json;charset=UTF-8
Date: Tue, 04 Jan 2022 10:56:50 GMT
Expires: Mon, 04 Jan 2021 10:56:50 GMT
Last-Modified: Tue, 04 Jan 2022 13:56:50 GMT
Pragma: no-cache
Server: nginx
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Frame-Options: DENY
X-Host: fau41.m.smailru.net
X-Mru-Request-Id: 2ae3ce9e

{"error":"invalid username or password","error_code":3,"error_description":"username or password is incorrect"}
2022/01/04 11:56:50 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2022/01/04 11:56:50 Failed to create file system for "mailru-cloud:": Failed to authorize: oauth2: server response missing access_token

```

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [February 4, 2022, 6:05pm UTC](https://forum.rclone.org/t/mail-ru-cloud-failed-to-authorize-oauth2-server-response-missing-access-token-instead-of-username-or-password-is-incorrect/28401/5 "2022-02-04T18:05:46Z")

</div>

Closed on February 4, 2022, 6:05pm UTC

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