Atob api question

Hi!

I’m trying to decode some base64 strings on worker via atob() API. But it always throws DOMException with message atob() called with invalid base64-encoded data.

But it is actually a correct base64 encoded string and even has no non-ASCII characters in its origin data. It can be decoded correctly in my Chrome dev console atob() function. What should I do?

There are some example base64 strings that meet my problem:
NDIuMTU5Ljk0LjE1MTo1MDAwMDpvcmlnaW46cmM0LW1kNTpwbGFpbjpUbTlrWldaMWJtTjBhVzl1U0c5dVowdHZibWRDUzFobmEzQTJlbkpFYjNwU0lRLz9vYmZzcGFyYW09JnJlbWFya3M9U0c5dVowdHZibWNnU1c1MGNtRnVaWFFnVEdsdVpRJmdyb3VwPVRtOWtaV1oxYm1OMGFXOXVJRTVsZEhkdmNtdHo

NDIuMTU5Ljk0LjE1MTo1MDAwMTpvcmlnaW46cmM0LW1kNTpwbGFpbjpUbTlrWldaMWJtTjBhVzl1U21Gd1lXNXRjWEZVWWtnM1lXNW1SMVZJSVEvP29iZnNwYXJhbT0mcmVtYXJrcz1TbUZ3WVc0Z1NXNTBjbUZ1WlhRZ1RHbHVaUSZncm91cD1UbTlrWldaMWJtTjBhVzl1SUU1bGRIZHZjbXR6

NDIuMTU5Ljk0LjE1MTo1MDAwMjpvcmlnaW46cmM0LW1kNTpwbGFpbjpUbTlrWldaMWJtTjBhVzl1VTJsdVoyRndiM0psWm1aT2MxRlFPSGxvWjFCSVUwQS8_b2Jmc3BhcmFtPSZyZW1hcmtzPVUybHVaMkZ3YjNKbElFSmhZMnQxY0NCT1pYUjNiM0pyJmdyb3VwPVRtOWtaV1oxYm1OMGFXOXVJRTVsZEhkdmNtdHo

NDIuMTU5Ljk0LjE1MTo1MDAwMzpvcmlnaW46cmM0LW1kNTpwbGFpbjpUbTlrWldaMWJtTjBhVzl1VlZOQlQxcFlVV2hNTkVWdmVXRk5SaUUvP29iZnNwYXJhbT0mcmVtYXJrcz1WVzVwZEdWa0lGTjBZWFJsY3lCSmJuUnlZVzVsZENCTWFXNWwmZ3JvdXA9VG05a1pXWjFibU4wYVc5dUlFNWxkSGR2Y210eg