Conversation
"Unknown error: 400" on Connect came from Stagehand's hosted API (POST /sessions/start) — a separate upstream from the premature-close fix. We create and own the Browserbase session ourselves and only need CDP navigation plus local inference, so the hosted-API round-trip is both unnecessary and the single point of failure for connect, login-check, and evidence runs (all route through createStagehand). Set disableAPI:true so Stagehand skips /sessions/start: the session still resumes over CDP, and extract/act/agent run locally against ANTHROPIC_API_KEY (verified: apiClient is only built inside the !disableAPI guard, and extract/agent fall back to local handlers when it is null). Also forward Stagehand's own error logs into the NestJS logger, because it strips upstream error bodies from its throws — so a future failure surfaces the real reason instead of "Unknown error: 400". Also fix the Trigger.dev maxDuration units for the scheduled runner and orchestrator: they were 1000*60*N (~166h / ~500h), so the intended 10/30-minute safety abort never tripped. maxDuration is in SECONDS. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013zSwXMqVNvWLJBZEot9x12
…ted-api fix(browserbase): disable Stagehand hosted API to unblock connect
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
## Problem User at Aaardvark is stuck on identity verification. Live check fails (third-party vendor issue), and fallback manual passport upload rejects the image file with no clear error. ## Root cause BackgroundCheckAttachForm.tsx has accept="application/pdf" hardcoded in the file input, rejecting JPEG/PNG/GIF/WebP images. The backend (attachments.service.ts, file-type-validation.ts) already accepts these image formats, so the restriction is frontend-only and unnecessary. ## Fix Widened accept attribute in BackgroundCheckAttachForm.tsx to include image/jpeg, image/png, image/gif, image/webp alongside application/pdf. Removed "PDF only" text from helper message to reflect what the form actually accepts. ## Explicitly NOT touched Live identity verification flow (third-party vendor hosted, no code lever on our side). Backend file validation rules (already correct). Auth, RBAC, schema, billing. ## Verification ✅ File input accepts image formats in browser ✅ Existing PDF submissions still work ✅ Backend still validates file types correctly ✅ Manual upload flow progresses past file selection
…entity-verificati fix(background-checks): accept image formats for manual passport upload
Contributor
|
🎉 This PR is included in version 3.87.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is an automated pull request to release the candidate branch into production, which will trigger a deployment.
It was created by the [Production PR] action.
Summary by cubic
Disable Stagehand’s hosted API during Browserbase session resume and fix
Trigger.devmaxDuration units to stop “Unknown error: 400” connect failures and enforce intended timeouts. Also forwards Stagehand error logs and allows image uploads (PNG/JPG/HEIC/HEIF/WebP) for manual passport verification.disableAPI: truewhen creating Stagehand to skip POST/sessions/start; sessions resume over CDP and Connect/login-check/evidence run reliably.maxDurationto seconds inrun-browser-automation(10 minutes) andbrowser-automations-schedule(30 minutes).Written for commit 82c852f. Summary will update on new commits.