Title: [BUG] Stagehand block fails with Unexpected server response: 101 when opening Browserbase session · Issue #5629 · simstudioai/sim · GitHub
Open Graph Title: [BUG] Stagehand block fails with Unexpected server response: 101 when opening Browserbase session · Issue #5629 · simstudioai/sim
X Title: [BUG] Stagehand block fails with Unexpected server response: 101 when opening Browserbase session · Issue #5629 · simstudioai/sim
Description: The Stagehand block (Run Agent operation) fails immediately when it tries to open a Browserbase browser session. The run errors out after ~1s and no navigation actions are ever recorded — the browser never launches. Environment Workspace...
Open Graph Description: The Stagehand block (Run Agent operation) fails immediately when it tries to open a Browserbase browser session. The run errors out after ~1s and no navigation actions are ever recorded — the brows...
X Description: The Stagehand block (Run Agent operation) fails immediately when it tries to open a Browserbase browser session. The run errors out after ~1s and no navigation actions are ever recorded — the brows...
Opengraph URL: https://github.com/simstudioai/sim/issues/5629
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG] Stagehand block fails with Unexpected server response: 101 when opening Browserbase session","articleBody":"The Stagehand block (Run Agent operation) fails immediately when it tries to open a Browserbase browser session. The run errors out after ~1s and no navigation actions are ever recorded — the browser never launches.\n\nEnvironment\n\nWorkspace ID: 87354126-e3c3-4093-a07b-76df681ab4c9\nWorkflow: vinted-login-test (d6a50651-f4aa-4c61-96a8-65156e71e8c3)\nBlock: vintedLogin — type stagehand, operation agent, mode hybrid, provider anthropic\n\nSteps to reproduce\n\n1. Create a workflow: Start → Stagehand (Run Agent).\n2. Configure provider anthropic with a valid ANTHROPIC_API_KEY, startUrl=https://www.vinted.cz, a login task, and variables for email/password.\n3. Run the workflow.\n4. Block fails after ~1s with Unexpected server response: 101.\n\nExpected\n\nStagehand opens the Browserbase session and begins navigating.\n\nActual\n\nWebSocket/CDP upgrade to Browserbase fails with Unexpected server response: 101; browser session never starts. Consistent across retries (not transient).\n\nRuled out (verified on the workspace side)\n\nANTHROPIC_API_KEY is valid — starts with sk-ant-, 108 chars, no whitespace; the block accepts it (the earlier Invalid Anthropic API key format error is gone).\nVINTED_EMAIL / VINTED_PASSWORD are stored and correctly substituted at runtime.\nWorkflow lints clean: Start → vintedLogin, no orphans, no unresolved references.\n\nLikely cause\n\nHTTP 101 is actually the successful WebSocket upgrade response. The ws client is rejecting a successful upgrade — a known symptom of a Bun-vs-Node runtime incompatibility (Bun's ws polyfill doesn't handle the upgrade/unexpected-response events), or a reverse proxy not forwarding Upgrade/Connection headers to wss://connect.browserbase.com. Missing/invalid Browserbase credentials would return 401/403, not 101, so this points to server-side runtime/proxy config for the Stagehand↔Browserbase connection rather than user error.","author":{"url":"https://github.com/JosefJezek","@type":"Person","name":"JosefJezek"},"datePublished":"2026-07-12T20:14:59Z","url":"https://github.com/simstudioai/sim/issues/5629"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:16883546-5735-1037-9313-311f3558c152 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BC1A:1CB508:AE0410:F6ED29:6AFB597A |
| html-safe-nonce | 6982bfe2b842892f906cd811b2e098ecad81f99e51a08433ce8137014a38261a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzFBOjFDQjUwODpBRTA0MTA6RjZFRDI5OjZBRkI1OTdBIiwidmlzaXRvcl9pZCI6IjE4OTYyNzc0NDY1MTI4MjY3NDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c304989d35e933bd4ebdefb63d1d3f52ef1a800c6e9d5eedcbd31c8d0a57a48d |
| hovercard-subject-tag | issue:4868592676 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/simstudioai/sim/5629/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eda5ece4e21f6f58209e9c140102c4d6e44dda552dea762d83f229eaa42d03c4/simstudioai/sim/issues/5629 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eda5ece4e21f6f58209e9c140102c4d6e44dda552dea762d83f229eaa42d03c4/simstudioai/sim/issues/5629 |
| og:image:alt | The Stagehand block (Run Agent operation) fails immediately when it tries to open a Browserbase browser session. The run errors out after ~1s and no navigation actions are ever recorded — the brows... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JosefJezek |
| hostname | github.com |
| expected-hostname | github.com |
| None | ea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94 |
| turbo-cache-control | no-preview |
| go-import | github.com/simstudioai/sim git https://github.com/simstudioai/sim.git |
| octolytics-dimension-user_id | 199344406 |
| octolytics-dimension-user_login | simstudioai |
| octolytics-dimension-repository_id | 912559512 |
| octolytics-dimension-repository_nwo | simstudioai/sim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 912559512 |
| octolytics-dimension-repository_network_root_nwo | simstudioai/sim |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 59ef97164c52cf59bd10558ddec9c4f482763988 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width