livepeer / studio

Livepeer Studio is your home for building, broadcasting, and publishing video on the open internet with the Livepeer Network. Effortlessly manage livestreams, video uploads, API keys, network usage, billing, and more.
https://livepeer.studio
MIT License
79 stars 32 forks source link

api/access-control: Fix NRE on error log #2320

Open victorges opened 1 month ago

victorges commented 1 month ago

2024-10-09 15:08:18.542 2024-10-09 18:08:18 [error]: Unhandled error in API path=/api/access-control/gate errType=TypeError err="The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined" stack=TypeError: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined 2024-10-09 15:08:18.542 at new NodeError (node:internal/errors:405:5) 2024-10-09 15:08:18.542 at Function.from (node:buffer:325:9) 2024-10-09 15:08:18.542 at ewa (/usr/local/src/controllers/access-control.ts:147:30) 2024-10-09 15:08:18.542 at /usr/local/src/controllers/access-control.ts:372:28

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
livepeer-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 9, 2024 6:22pm