Skip to content

Commit 19b536b

Browse files
committed
fix: node goes offline when server is booting up with 502 error
retry after 60s
1 parent 9cade21 commit 19b536b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

node_cli.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,10 @@ def Login(cli=False, run_once=False, log_dir=None):
361361
table.add_row("Project ID", user_data.project_id)
362362

363363
console.print(table)
364+
elif status_code == 502:
365+
print(Fore.YELLOW + "Server offline. Retrying after 60s")
366+
time.sleep(60)
367+
continue
364368
else:
365369
line_color = Fore.RED
366370
print(line_color + "Incorrect credentials, please try again.")

0 commit comments

Comments
 (0)