Skip to content

Error: NOAUTH Authentication required #20

@michaeljwright

Description

@michaeljwright

I tried the main branch which had issues (just hangs on creating apps), and then didn't work. It also forced using Morph even when readme says its optional.

The OPENAL_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAl client with an apiKey option, like new OpenAl({ apiKey: 'My API Key' }).
src/tools/morph-tool.ts

Also tried v2 branch, and that didn't work but get this error:

 GET / 200 in 361ms
 POST / 200 in 468ms
 ○ Compiling /app/new ...
 ✓ Compiled /app/new in 2.1s
get user: 186.991ms
git: 1.821s
dev server: 4.623s
database: create app: 11.173ms
mastra: create thread: 75.684ms
Stream created for appId: 2a04b89c-03ba-4076-a9b9-e8bb167af30b with prompt: {
  id: '8ab088a2-1d91-42cb-b393-2273b7a707b0',
  parts: [
    {
      text: 'Create a personal website with portfolio, blog, and contact sections.',
      type: 'text'
    }
  ],
  role: 'user'
}
Setting stream for appId: 2a04b89c-03ba-4076-a9b9-e8bb167af30b with prompt: {
  id: '8ab088a2-1d91-42cb-b393-2273b7a707b0',
  parts: [
    {
      text: 'Create a personal website with portfolio, blog, and contact sections.',
      type: 'text'
    }
  ],
  role: 'user'
}
[Error: NOAUTH Authentication required]
 ⨯ unhandledRejection: [Error: NOAUTH Authentication required]
 ⨯ unhandledRejection:  [Error: NOAUTH Authentication required]
 ⨯ [Error: NOAUTH Authentication required] { digest: '2932136159' }
 GET /app/new?message=Create+a+personal+website+with+portfolio%2C+blog%2C+and+contact+sections.&template=nextjs 200 in 11428ms
 GET /.well-known/appspecific/com.chrome.devtools.json 404 in 131ms
 GET / 200 in 381ms
 POST / 200 in 383ms
 ○ Compiling /app/[id] ...
 ✓ Compiled /app/[id] in 2.5s
requested dev server
 ⨯ [Error: NOAUTH Authentication required] { digest: '2932136159' }
 GET /app/2a04b89c-03ba-4076-a9b9-e8bb167af30b 200 in 4138ms
 GET /.well-known/appspecific/com.chrome.devtools.json 404 in 116ms
 GET / 200 in 327ms
 POST / 200 in 438ms

and

V2 models are not supported for stream. Please use streamVNext instead. { modelId: 'claude-3-7-sonnet-20250219' }
 ⨯ Error: V2 models are not supported for stream. Please use streamVNext instead.
    at async AIService.sendMessage (src/lib/internal/ai-service.ts:106:19)
    at async sendMessageWithStreaming (src/lib/internal/stream-manager.ts:241:21)
    at async createApp (src/actions/create-app.ts:92:4)
    at async NewAppRedirectPage (src/app/app/new/page.tsx:43:17)
  104 |     });
  105 |
> 106 |     const stream = await agent.stream([], {
      |                   ^
  107 |       threadId: appId,
  108 |       resourceId: appId,
  109 |       maxSteps: options?.maxSteps ?? 100, {
  id: 'AGENT_STREAM_V2_MODEL_NOT_SUPPORTED',
  domain: 'AGENT',
  category: 'USER',
  details: [Object],
  digest: '2857169985'

Any pointers to get this working? I've tried multiple versions of node inc. v22.19.0.

Initially my Redis wasn't working but it is now. Please help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions