I am receiving error when enable a Hub
in the constructor and try to run it on local devtool.
#94
-
I have the following constructor setup: import { serveStatic } from '@hono/node-server/serve-static'
import { Button, Frog } from 'frog'
import { neynar } from 'frog/hubs'
import { getData } from './helpers'
import { DATA, State } from './helpers/types'
import { handle } from 'frog/vercel'
export const app = new Frog<State>({
basePath: '/nft-explorer',
initialState: {
count: 0,
nfts: []
},
secret: process.env.FROG_SECRET,
// hubApiUrl: 'https://api.hub.wevm.dev'
hub: neynar({ apiKey: process.env.NEYNAR_API_KEY ? process.env.NEYNAR_API_KEY : '' })
}) and when I click on any button after running this locally, I get the following error: Error: Invalid frame url: https://9e0e-2401-4900-1c5e-d48e-35ea-bf7-b177-107d.ngrok-free.app/nft-explorer. Expected: http://9e0e-2401-4900-1c5e-d48e-35ea-bf7-b177-107d.ngrok-free.app/nft-explorer/collection/morpheus?initialPath=%252Fnft-explorer&previousButtonValues=%2523A_outcast%252Cmorpheus%252Cpodcats.
at verifyFrame (file:///Users/megabyte0x/Documents/CODE/AARC/aarc-frame/node_modules/frog/_lib/utils/verifyFrame.js:19:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///Users/megabyte0x/Documents/CODE/AARC/aarc-frame/node_modules/frog/_lib/utils/requestBodyToContext.js:27:35
at async requestBodyToContext (file:///Users/megabyte0x/Documents/CODE/AARC/aarc-frame/node_modules/frog/_lib/utils/requestBodyToContext.js:19:30)
at async file:///Users/megabyte0x/Documents/CODE/AARC/aarc-frame/node_modules/frog/_lib/frog-base.js:215:26
at async dispatch (file:///Users/megabyte0x/Documents/CODE/AARC/aarc-frame/node_modules/hono/dist/compose.js:29:17)
at async file:///Users/megabyte0x/Documents/CODE/AARC/aarc-frame/node_modules/frog/_lib/dev/routes.js:120:9
at async dispatch (file:///Users/megabyte0x/Documents/CODE/AARC/aarc-frame/node_modules/hono/dist/compose.js:29:17)
at async file:///Users/megabyte0x/Documents/CODE/AARC/aarc-frame/node_modules/frog/_lib/middlewares/neynar.js:33:9
at async dispatch (file:///Users/megabyte0x/Documents/CODE/AARC/aarc-frame/node_modules/hono/dist/compose.js:29:17) I don't know why this is occurring, but I guess it's because the hub is trying to fetch the frame data when a frame is interacted with but not getting why it's something related to the |
Beta Was this translation helpful? Give feedback.
Answered by
dalechyn
Sep 10, 2024
Replies: 1 comment
-
you can now pass |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dalechyn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you can now pass
verifyOrigin: false
to Frog constructor parameters to disable origin check.