I always get this when auth is set to true for an api.
[ Server!] [VoiceAgentSession] Failed to initialize voice session: HttpError: Authentication required [ Server!] at _waspvoiceAgentSessionfn (/Users/jacobferrari/wasupupdate/my-saas/app/src/server/agents/apis/voiceAgentSession.ts:17:13) [ Server!] at <anonymous> (/Users/jacobferrari/wasupupdate/my-saas/app/.wasp/out/server/src/routes/apis/index.ts:702:14) [ Server!] at Layer.handleRequest (/Users/jacobferrari/wasupupdate/my-saas/app/.wasp/out/server/node_modules/router/lib/layer.js:152:17) [ Server!] at next (/Users/jacobferrari/wasupupdate/my-saas/app/.wasp/out/server/node_modules/router/lib/route.js:157:13) [ Server!] at <anonymous> (/Users/jacobferrari/wasupupdate/my-saas/app/src/server/utils/posthogSession.ts:47:39) [ Server!] at AsyncLocalStorage.run (node:internal/async_local_storage/async_hooks:91:14) [ Server!] at withPosthogSessionContext (/Users/jacobferrari/wasupupdate/my-saas/app/src/server/utils/posthogSession.ts:47:20) [ Server!] at Layer.handleRequest (/Users/jacobferrari/wasupupdate/my-saas/app/.wasp/out/server/node_modules/router/lib/layer.js:152:17) [ Server!] at next (/Users/jacobferrari/wasupupdate/my-saas/app/.wasp/out/server/node_modules/router/lib/route.js:157:13) [ Server!] at logRequestSizeMiddleware (/Users/jacobferrari/wasupupdate/my-saas/app/src/server/serverSetup.ts:156:3) { [ Server!] statusCode: 401, [ Server!] data: undefined [ Server!] } [ Server ] POST /api/voice-agent/thread 401 88.109 ms - 53 [ Server ] POST /api/voice-agent/thread 401 88.109 ms - 53
I've always dealt with this no idea what to do.
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
W
Wasp
Rails-like framework for React, Node.js and Prisma. Build your app in a day and deploy it with a single CLI command.