Unable to decode base64 []: atob is not defined
See original GitHub issueSince https://github.com/upstash/upstash-redis/pull/198 I’m getting Unable to decode base64 []: atob is not defined
warnings while running the library inside a Vercel API route.
I’m using automaticDeserialization
, the feature might not be able compatible with it ?
Downgrading to version 1.13.1
does solve the issue, so it’s clearly that commit that caused the issue.
Issue Analytics
- State:
- Created a year ago
- Comments:12
Top Results From Across the Web
Node.js throws "btoa is not defined" error - Stack Overflow
The 'btoa-atob' module does not export a programmatic interface, it only provides command line utilities. If you need to convert to Base64 ......
Read more >atob is not defined, When using with nodeJS backend · Issue #4
In Windows it fail here slice.charCodeAt(i); with error: Uncaught TypeError: slice.charCodeAt is not a function at b64toBlob (misc.js:210:1).
Read more >Base64 Encode and Decode in Node.js - eloquent code
Using Node on the server side, we find that we cannot use the JavaScript functions atob and btoa. They are not defined; we...
Read more >atob() - Web APIs - MDN Web Docs
The atob() function decodes a string of data which has been encoded using Base64 encoding. You can use the btoa() method to encode...
Read more >js-base64 - npm
// or if you prefer no Base64 namespace import { encode, decode } from 'js-base64';. or even remotely. <script type="module"> // ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
👍 I’ll leave this open until I merge the fix thanks for the report
I use this one for react native: