From abc801e60c5f88fd8ddf60905eda166715ecb666 Mon Sep 17 00:00:00 2001 From: Sucukdeluxe <259325684+Sucukdeluxe@users.noreply.github.com> Date: Thu, 22 Oct 2026 17:37:36 +0200 Subject: [PATCH] Retry DoodStream upload-page server errors as transient A single HTTP 500 from the DoodStream upload page while resolving the upload session was reported as "sess_id nicht gefunden nach Login". That message matched the session cooldown pattern, so the job failed at once without a retry and the account was paused. - 5xx and 408 answers of the upload page throw "DoodStream: Upload-Seite antwortete mit HTTP " flagged transientNetwork. The existing upload-manager loop retries on the same account up to the configured retries and does not pause the account. - Other non-200 answers name the status and keep the session renewal path (account cooldown, new login). - HTTP 200 without sess_id keeps the session error. - English translation for the new message. Co-Authored-By: Claude Opus 5.5 --- lib/doodstream-upload.js | 6 ++++++ renderer/i18n.js | 1 + 2 files changed, 7 insertions(+) diff --git a/lib/doodstream-upload.js b/lib/doodstream-upload.js index ec03055..d362b87 100644 --- a/lib/doodstream-upload.js +++ b/lib/doodstream-upload.js @@ -232,6 +232,12 @@ class DoodstreamUploader { this.sessId = ''; const guest = /utype\s*:\s*['"]anon['"]/.test(html); _debugLog(`session-missing HTTP=${res.status} guest=${guest} cookies=${this.cookies.size}`, true); + if (res.status !== 200) { + const error = new Error(`DoodStream: Upload-Seite antwortete mit HTTP ${res.status}`); + if (res.status >= 500 || res.status === 408) error.transientNetwork = true; + else error.accountError = true; + throw error; + } throw new Error('Doodstream: sess_id nicht gefunden nach Login'); } diff --git a/renderer/i18n.js b/renderer/i18n.js index 0017178..ae24070 100644 --- a/renderer/i18n.js +++ b/renderer/i18n.js @@ -988,6 +988,7 @@ [/^Clouddrop: Datei nicht lesbar: (.+)$/, 'Clouddrop: File cannot be read: $1'], [/^Doodstream: konnte Upload-Server nicht ermitteln \(Endpoint geändert\?\)\. (.+)$/, 'Doodstream: Could not determine the upload server (endpoint changed?). $1'], [/^Doodstream Upload fehlgeschlagen: (.+)$/, 'Doodstream upload failed: $1'], + [/^DoodStream: Upload-Seite antwortete mit HTTP (\d{3})$/, 'DoodStream: The upload page responded with HTTP $1'], [/^Doodstream Upload: kein Filecode — Server gab leeren Link zurück (.+)$/, 'Doodstream upload: No file code — the server returned an empty link $1'], [/^Doodstream lehnt Datei ab \(Server-Status: (.+)\)\. CDN=(.+)$/, 'Doodstream rejected the file (server status: $1). CDN=$2'], [/^Doodstream Upload: Redirect-Antwort ungültig \((.+)\)$/, 'Doodstream upload: Invalid redirect response ($1)'],