Skip to content

Commit 0f744ff

Browse files
committed
add note for future selves
1 parent f451778 commit 0f744ff

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

frontend/src/pages/device/Editor/index.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,9 @@ export default {
317317
let tries = 0
318318
let device = await this.fetchDevice(this.$route.params.id, false)
319319
320+
// When running multiple replicas of the forge app, the affinity token may be missing if the request is routed to a
321+
// backend endpoint that didn't initiate the tunnel. If we receive a 502 from the device editor proxy,
322+
// we retry the editor API call until the correct affinity token is acquired (200/302).
320323
while (tries <= 5) {
321324
try {
322325
await this.getDeviceEditorProxy(device)

0 commit comments

Comments
 (0)