Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to initialize a session #16

Open
akeshwani2 opened this issue Jan 25, 2025 · 3 comments
Open

Fails to initialize a session #16

akeshwani2 opened this issue Jan 25, 2025 · 3 comments

Comments

@akeshwani2
Copy link

Error: Failed to create session
at ChatFeed.useEffect.initializeSession (http://localhost:3000/_next/static/chunks/app_514080._.js:97:39)

I have re-generated my API keys a bunch of times too, not sure what's going on

@Actpohomoc
Copy link

same error on debian in lxc

Console Error

Error: Failed to create session
Source

app/components/ChatFeed.tsx (103:19) @ ChatFeed.useEffect.initializeSession

101 |
102 | if (!sessionData.success) {

103 | throw new Error(sessionData.error || "Failed to create session");
| ^
104 | }
105 |
106 | agentStateRef.current = {

@pequege
Copy link

pequege commented Jan 31, 2025

console says

Error creating session: Error: 403 Keep alive sessions are not supported on the FREE plan

@unclehowell
Copy link

GET / 200 in 40157ms
○ Compiling /api/session ...
✓ Compiled /api/session in 3.9s
(node:69728) [DEP0040] DeprecationWarning: The punycodemodule is deprecated. Please use a userland alternative instead. (Usenode --trace-deprecation ...` to show where the warning was created)
timezone America/Santo_Domingo
getClosestRegion(timezone) us-west-2
Error creating session: Error: 403 Keep alive sessions are not supported on the FREE plan
at async createSession (app/api/session/route.ts:101:18)
at async POST (app/api/session/route.ts:136:35)
99 | console.log("timezone ", timezone);
100 | console.log("getClosestRegion(timezone)", getClosestRegion(timezone));

101 | const session = await bb.sessions.create({
| ^
102 | projectId: process.env.BROWSERBASE_PROJECT_ID!,
103 | browserSettings,
104 | keepAlive: true, {
status: 403,
headers: [Object],
error: [Object]
}1
POST /api/session 500 in 19243ms

Could not open ChatFeed.tsx in the editor.

To set up the editor integration, add something like REACT_EDITOR=atom to the .env.local file in your project folder and restart the development server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants