Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion engine/sdks/typescript/runner/src/tunnel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,12 @@ export class Tunnel {
msg: "ignoring request for unknown actor",
actorId,
});
return new Response("Actor not found", { status: 404 });

// NOTE: This is a special response that will cause Guard to retry the request
//
// See should_retry_request_inner
// https://github.com/rivet-dev/rivet/blob/222dae87e3efccaffa2b503de40ecf8afd4e31eb/engine/packages/guard-core/src/proxy_service.rs#L2458
return new Response("Actor not found", { status: 503, headers: { "x-rivet-error": "runner.actor_not_found" } });
}

const fetchHandler = this.#runner.config.fetch(
Expand Down
Loading