question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

URGENT: Serverless runtimes corrupted on some regions

See original GitHub issue

Verify canary release

  • I verified that the issue exists in Next.js canary release

Provide environment information

Operating System:
  Platform: linux
  Arch: x64
  Version: #44~20.04.1-Ubuntu SMP Thu Mar 24 16:43:35 UTC 2022
Binaries:
  Node: 16.14.2
  npm: 8.0.0
  Yarn: 1.22.18
  pnpm: N/A
Relevant packages:
  next: 12.1.4
  react: 18.0.0
  react-dom: 18.0.0

What browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

Describe the Bug

atob/btoa functions are not available on Vercel serverless runtime in some regions. This caused auth to break on our project because auth library relies on globalThis.atob.

globalthis Screenshot_20220409_073935

Expected Behavior

I would expect atob/btoa to be available as described: https://vercel.com/docs/concepts/functions/edge-functions#runtime-apis

To Reproduce

It can’t safely be reproduced since some regions are corrupted while others are good. We use the same auth and same functions on 2 projects.

The first one works, the second one doesn’t because it doesn’t have atob/btoa. Keep in mind it all works locally since we run native Node.js runtime. As a temporary solution, I polyfilled them.

Thanks!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ijjkcommented, Apr 10, 2022

No specific ETA is available currently, adding global polyfills in the meantime should be safe until v16 support is available.

0reactions
github-actions[bot]commented, May 10, 2022

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lambda runtimes - AWS Documentation
Learn about the languages that Lambda supports through runtimes. ... For new regions, Lambda will not support runtimes that are set to be...
Read more >
Process Events with Kinesis and Lambda - Thundra Blog
In this guide we will learn the basics of stream processing with AWS Kinesis and Lambda, as serverless is perfectly suited for such...
Read more >
Sledge: a Serverless-first, Light-weight Wasm Runtime for the ...
The Wasm sandbox ensures that logic within the runtime cannot maliciously or accidentally corrupt memory or control outside of the sandbox. Each Wasm...
Read more >
Azure Synapse Analytics pricing
Limitless analytics with unmatched time to insight · Explore pricing options · Data Pipelines · Data Flows · Operation charges · Serverless ·...
Read more >
AWS Lambda Functions - Serverless Framework
runtime : python2.7 # optional overwrite, default is provider runtime ... Action: # Gives permission to DynamoDB tables in a specific region.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found