H
Hono4mo ago
iska

sentry is not a function

hi i m using hono sentry middleware getting
[ERROR] TypeError: sentry is not a function

at null.<anonymous>
(file:///Users/ben/projects/monorepo-sass/monorepo/libs/backend/services/authCf/src/lib/auth-cf.swagger.ts:26:10)
at async dispatch
(file:///Users/ben/projects/monorepo-sass/monorepo/node_modules/hono/dist/compose.js:29:17)
at null.<anonymous> (async
file:///Users/ben/projects/monorepo-sass/monorepo/wranglers/swagger/.wrangler/tmp/dev-ZR2b0h/auth-cf.swagger.js:26672:12)
at async dispatch
(file:///Users/ben/projects/monorepo-sass/monorepo/node_modules/hono/dist/compose.js:29:17)
at async cors2
(file:///Users/ben/projects/monorepo-sass/monorepo/node_modules/hono/dist/middleware/cors/index.js:70:5)
at async dispatch
(file:///Users/ben/projects/monorepo-sass/monorepo/node_modules/hono/dist/compose.js:29:17)
at null.<anonymous> (async
file:///Users/ben/projects/monorepo-sass/monorepo/wranglers/swagger/.wrangler/tmp/dev-ZR2b0h/auth-cf.swagger.js:15368:25)
at async jsonError
(file:///Users/ben/projects/monorepo-sass/monorepo/node_modules/wrangler/templates/middleware/middleware-miniflare3-json-error.ts:22:10)
at async drainBody
(file:///Users/ben/projects/monorepo-sass/monorepo/node_modules/wrangler/templates/middleware/middleware-ensure-req-body-drained.ts:5:10)
[ERROR] TypeError: sentry is not a function

at null.<anonymous>
(file:///Users/ben/projects/monorepo-sass/monorepo/libs/backend/services/authCf/src/lib/auth-cf.swagger.ts:26:10)
at async dispatch
(file:///Users/ben/projects/monorepo-sass/monorepo/node_modules/hono/dist/compose.js:29:17)
at null.<anonymous> (async
file:///Users/ben/projects/monorepo-sass/monorepo/wranglers/swagger/.wrangler/tmp/dev-ZR2b0h/auth-cf.swagger.js:26672:12)
at async dispatch
(file:///Users/ben/projects/monorepo-sass/monorepo/node_modules/hono/dist/compose.js:29:17)
at async cors2
(file:///Users/ben/projects/monorepo-sass/monorepo/node_modules/hono/dist/middleware/cors/index.js:70:5)
at async dispatch
(file:///Users/ben/projects/monorepo-sass/monorepo/node_modules/hono/dist/compose.js:29:17)
at null.<anonymous> (async
file:///Users/ben/projects/monorepo-sass/monorepo/wranglers/swagger/.wrangler/tmp/dev-ZR2b0h/auth-cf.swagger.js:15368:25)
at async jsonError
(file:///Users/ben/projects/monorepo-sass/monorepo/node_modules/wrangler/templates/middleware/middleware-miniflare3-json-error.ts:22:10)
at async drainBody
(file:///Users/ben/projects/monorepo-sass/monorepo/node_modules/wrangler/templates/middleware/middleware-ensure-req-body-drained.ts:5:10)
here is my implementation app.use('api/*', (c: Context, next: Next) => sentry({ dsn: c.env.SENTRY_DSN })(c, next))
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server