[GH-ISSUE #3582] [Issue]: NovelAI connection test always fails with 400 — test URL hardcoded to deprecated api.novelai.net #1937

Closed
opened 2026-10-21 05:43:57 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @SpicyMarinara on GitHub (Jul 13, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3582

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Imported from the Discord thread "NovelAI connection test always fails with 400 — test URL hardcoded to deprecated api.novelai.net".

Expected behavior

Not provided in the Discord context.

Actual behavior

See the Discord context transcript below.

Steps to reproduce

  1. Not provided in the Discord context.

Environment

  • Marinara Engine version: Not provided
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

See any attachment links and screenshots in the context below.

Additional context

This issue was created automatically from Discord support context.

Discord thread: NovelAI connection test always fails with 400 — test URL hardcoded to deprecated api.novelai.net
Discord thread link: https://discord.com/channels/1417099416812392641/1526358386231345302
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (1 message)
[2026-07-13T22:43:17.645Z] ClaudZeta: **What happens**
Connection Test for a NovelAI image connection always fails:
"API returned 400: Please refresh NovelAI.net. If using a third-party tool, update to the image URL."
This happens even with the base URL correctly set to https://image.novelai.net. Actual generation is unaffected — Test Image works fine.

**Cause**
The connection test ignores the connection's base URL for NovelAI. In packages/server/src/routes/connections.routes.ts (~line 514 on current main), the test URL is hardcoded:

testUrl = "https://api.novelai.net/user/subscription";

NovelAI has been migrating endpoints off api.novelai.net, and that host now answers with the migration 400 above, so the test fails for every NovelAI user regardless of their settings.

**Repro**
1. Add an image generation connection, source NovelAI, base URL https://image.novelai.net, valid persistent API token
2. Run Connection Test → 400 error
3. Run Test Image → works

**Expected**
Connection test validates against a live NovelAI endpoint (or falls back to the same "use Test Image to verify" message used for RunPod).

**Notes**
Found by digging through the repo source with Claude (Fable 5) cause I didn't even try to click test image after connection test returned 400 error, nothing major but I guess I'd post it regardless
[Discord message: https://discord.com/channels/1417099416812392641/1526358386231345302/1526358386231345302]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Jul 13, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3582 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Imported from the Discord thread "NovelAI connection test always fails with 400 — test URL hardcoded to deprecated api.novelai.net". ## Expected behavior Not provided in the Discord context. ## Actual behavior See the Discord context transcript below. ## Steps to reproduce 1. Not provided in the Discord context. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video See any attachment links and screenshots in the context below. ## Additional context This issue was created automatically from Discord support context. Discord thread: NovelAI connection test always fails with 400 — test URL hardcoded to deprecated api.novelai.net Discord thread link: https://discord.com/channels/1417099416812392641/1526358386231345302 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (1 message)</summary> ```text [2026-07-13T22:43:17.645Z] ClaudZeta: **What happens** Connection Test for a NovelAI image connection always fails: "API returned 400: Please refresh NovelAI.net. If using a third-party tool, update to the image URL." This happens even with the base URL correctly set to https://image.novelai.net. Actual generation is unaffected — Test Image works fine. **Cause** The connection test ignores the connection's base URL for NovelAI. In packages/server/src/routes/connections.routes.ts (~line 514 on current main), the test URL is hardcoded: testUrl = "https://api.novelai.net/user/subscription"; NovelAI has been migrating endpoints off api.novelai.net, and that host now answers with the migration 400 above, so the test fails for every NovelAI user regardless of their settings. **Repro** 1. Add an image generation connection, source NovelAI, base URL https://image.novelai.net, valid persistent API token 2. Run Connection Test → 400 error 3. Run Test Image → works **Expected** Connection test validates against a live NovelAI endpoint (or falls back to the same "use Test Image to verify" message used for RunPod). **Notes** Found by digging through the repo source with Claude (Fable 5) cause I didn't even try to click test image after connection test returned 400 error, nothing major but I guess I'd post it regardless [Discord message: https://discord.com/channels/1417099416812392641/1526358386231345302/1526358386231345302] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:43:57 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Jul 13, 2026):

Addressed in #3585, including the NovelAI verification-path correction.

<!-- gh-comment-id:4963835151 --> @SpicyMarinara commented on GitHub (Jul 13, 2026): Addressed in #3585, including the NovelAI verification-path correction.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 13, 2026):

Fixed by #3585 and merged into staging in 5c2db0902.

<!-- gh-comment-id:4963970918 --> @SpicyMarinara commented on GitHub (Jul 13, 2026): Fixed by #3585 and merged into staging in 5c2db0902.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#1937
No description provided.