wevm / frog

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

bug: undefined is not an object (evaluating 'frameActionBody.address') #465

Closed manan19 closed 1 month ago

manan19 commented 1 month ago

Describe the bug

24 | ////////////////////////////////////////////////////////////////////
25 | // Utilties
26 | export function messageToFrameData(message) {
27 |     const frameActionBody = message.data?.body.value;
28 |     const frameData = {
29 |         address: frameActionBody.address
                      ^
TypeError: undefined is not an object (evaluating 'frameActionBody.address')
      at messageToFrameData (/app/node_modules/frog/_lib/utils/verifyFrame.js:29:18)
      at /app/node_modules/frog/_lib/middlewares/neynar.js:14:27

Link to Minimal Reproducible Example

No response

Steps To Reproduce

No response

Frog Version

latest

TypeScript Version

No response

Check existing issues

Anything else?

No response

dalechyn commented 1 month ago

Can you please try frog@0.15.9-fix-wrong-parsing-of-frame-message-for-different-handlers.20240808T230644 and come back with a reply if it fixes your issue?

manan19 commented 1 month ago

Can you please try frog@0.15.9-fix-wrong-parsing-of-frame-message-for-different-handlers.20240808T230644 and come back with a reply if it fixes your issue?

@dalechyn Unfortunately, I cannot test the fix without an elaborate setup. The frame developer that found this issue uses frog + neynar and reported it to us (neynar). I just wanted to pass along the bug report.