We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b62cf5d commit 65f206cCopy full SHA for 65f206c
engine/sdks/typescript/runner/src/tunnel.ts
@@ -214,7 +214,12 @@ export class Tunnel {
214
msg: "ignoring request for unknown actor",
215
actorId,
216
});
217
- return new Response("Actor not found", { status: 404 });
+
218
+ // NOTE: This is a special response that will cause Guard to retry the request
219
+ //
220
+ // See should_retry_request_inner
221
+ // https://github.com/rivet-dev/rivet/blob/222dae87e3efccaffa2b503de40ecf8afd4e31eb/engine/packages/guard-core/src/proxy_service.rs#L2458
222
+ return new Response("Actor not found", { status: 503, headers: { "x-rivet-error": "runner.actor_not_found" } });
223
}
224
225
const fetchHandler = this.#runner.config.fetch(
0 commit comments