wevm / frog

Framework for Farcaster Frames 🐸
https://frog.fm
Other
423 stars 97 forks source link

Neynar will throw undefined type error if billing expires #281

Closed christopherwxyz closed 6 months ago

christopherwxyz commented 6 months ago

Describe the bug

If a user leverages Neynar middleware and has not paid Neynar for the service, the frame request will throw an undefined type error. It's difficult to debug this in production as the error occurs in the middleware, however running locally you can throw it with resolution.

TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
    at eval (webpack-internal:///(rsc)/../../node_modules/frog/_lib/middlewares/neynar.js:36:28)

Link to Minimal Reproducible Example

No response

Steps To Reproduce

Forget or ignore your need to pay your bills.

Frog Version

0.8.6

TypeScript Version

^5

Check existing issues

Anything else?

No response