We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f451778 commit 0f744ffCopy full SHA for 0f744ff
1 file changed
frontend/src/pages/device/Editor/index.vue
@@ -317,6 +317,9 @@ export default {
317
let tries = 0
318
let device = await this.fetchDevice(this.$route.params.id, false)
319
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).
323
while (tries <= 5) {
324
try {
325
await this.getDeviceEditorProxy(device)
0 commit comments