# Illegal base64 data at input byte 22

**URL:** <https://forum.rclone.org/t/illegal-base64-data-at-input-byte-22/20928>\
**Category:** Suspected Bug\
**Created:** [December 8, 2020, 2:15pm UTC](https://forum.rclone.org/t/illegal-base64-data-at-input-byte-22/20928 "2020-12-08T14:15:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandra\_Schlichting](https://forum.rclone.org/user_avatar/forum.rclone.org/sandra_schlichting/32/7993_2.png) [@Sandra\_Schlichting](https://forum.rclone.org/u/Sandra_Schlichting)\
**Post date:** [December 8, 2020, 2:15pm UTC](https://forum.rclone.org/t/illegal-base64-data-at-input-byte-22/20928/1 "2020-12-08T14:15:06Z")

</div>

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

One of my Mega accounts fails with

```auto
2020/12/08 15:06:49 Failed to create file system for "mega1:": couldn't login: illegal base64 data at input byte 22

```

The same error occurred in this one `https://forum.rclone.org/t/problem-to-login-with-mega/12276`

#### What is your rclone version (output from `rclone version`)

```auto
rclone v1.51.0
- os/arch: linux/amd64
- go version: go1.14rc1

```

#### Which OS you are using and how many bits (eg Windows 7, 64 bit)

Fedora Linux 32 64bit

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

MEGA

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

```auto
$ rclone ls mega1:
2020/12/08 15:08:48 Failed to create file system for "mega1:": couldn't login: illegal base64 data at input byte 22

```

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

```auto
[mega_sha]
type = mega
user = xxx@gmail.com
pass = xxx
hard_delete = true

[mega1]
type = mega
user = xxx@gmail.com
pass = xxx
hard_delete = true

```

Created with `rclone config`

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

```auto
rclone ls mega1: -vv                     

2020/12/08 15:13:05 DEBUG : rclone: Version "v1.51.0" starting with parameters ["rclone" "ls" "mega1:" "-vv"]
2020/12/08 15:13:05 DEBUG : Using config file from "/home/sandra/.config/rclone/rclone.conf"
2020/12/08 15:13:06 Failed to create file system for "mega1:": couldn't login: illegal base64 data at input byte 22

```

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [December 8, 2020, 3:16pm UTC](https://forum.rclone.org/t/illegal-base64-data-at-input-byte-22/20928/2 "2020-12-08T15:16:52Z")

</div>

You have an old version of rclone.

Please update and test again.

---

<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:** [December 11, 2020, 3:16pm UTC](https://forum.rclone.org/t/illegal-base64-data-at-input-byte-22/20928/3 "2020-12-11T15:16:56Z")

</div>

Closed on December 11, 2020, 3:16pm UTC

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