[GH-ISSUE #56] Training LoRA fails with Error 500 - Radio component serialization issue #49

Open
opened 2026-02-26 21:31:02 +03:00 by kerem · 0 comments
Owner

Originally created by @Nates4a on GitHub (Feb 17, 2026).
Original GitHub issue: https://github.com/fspecii/ace-step-ui/issues/56

First of all

Thank you so much for creating this app, it's incredibly useful! I've been enjoying using it and really appreciate all the work you've put into it.

While using the Training section, I encountered an error that I wanted to report to help improve the project.

Summary

The Training LoRA section fails with Error 500 when clicking any button (e.g., "Create Dataset", "Auto-label", "Generate Lyrics", etc.). The error is caused by incorrect serialization of Radio component values by the @gradio/client.

Environment

  • OS: Windows 10 (Build 26200.7840)
  • Installation method: Pinokio
  • Node.js: v22.21.1
  • Python: 3.11.11
  • ACE-Step version: 1.5
  • ACE-Step API URL: http://127.0.0.1:42003

Steps to reproduce

  1. Launch ACE-Step UI via Pinokio
  2. Go to Training section
  3. Click on any button (Create Dataset, Auto-label, Generate Lyrics, Start Training, etc.)
  4. Error 500 occurs

Expected behavior

Training actions should execute without errors.

Actual behavior

Any action in the Training LoRA section fails immediately with Error 500.

Error logs

Server startup (successful):

ACE-Step UI Server running on http://localhost:3001
Environment: development
ACE-Step API: http://127.0.0.1:42003
Initializing local storage provider
[Gradio] Connected to http://127.0.0.1:42003

Error when clicking any training button:

[Training] Update settings error: {
  type: 'status',
  endpoint: '/update_settings',
  fn_index: 138,
  queue: true,
  title: 'Error',
  message: "Value: {'value': 'replace', '__type__': 'update'} (type: <class 'dict'>) is not in the list of choices: ['prepend', 'append', 'replace']",
  stage: 'error',
  success: false
}
Error: There is no endpoint matching that name of fn_index matching that number.
    at get_endpoint_info (node_modules\@gradio\client\dist\index.js:2126:11)
    at Client.submit (node_modules\@gradio\client\dist\index.js:1577:51)
    at Client.predict (node_modules\@gradio\client\dist\index.js:952:10)
    at <anonymous> (server\src\routes\training.ts:454:35)

Subsequent API failures (Error 500):

[vite] http proxy error: /api/training/auto-label - Error: read ECONNRESET
[vite] http proxy error: /api/training/save-dataset - Error: connect ECONNREFUSED 127.0.0.1:3001
[vite] http proxy error: /api/training/preprocess - Error: connect ECONNREFUSED 127.0.0.1:3001
[vite] http proxy error: /api/training/start - Error: connect ECONNREFUSED 127.0.0.1:3001

Root cause analysis

The @gradio/client npm package is serializing Radio component values as:

{"value": "replace", "__type__": "update"}

But the Python Gradio backend expects a plain string:

"replace"

This mismatch causes the validation to fail, which then crashes the Node.js server, resulting in ECONNREFUSED errors for all subsequent training API calls.

What I've tried

  • Complete reinstall of ACE-Step UI via Pinokio
  • Full system restart

This may be related to #49 which addresses Gradio client compatibility issues.

Originally created by @Nates4a on GitHub (Feb 17, 2026). Original GitHub issue: https://github.com/fspecii/ace-step-ui/issues/56 ## First of all Thank you so much for creating this app, it's incredibly useful! I've been enjoying using it and really appreciate all the work you've put into it. While using the Training section, I encountered an error that I wanted to report to help improve the project. ## Summary The Training LoRA section fails with Error 500 when clicking any button (e.g., "Create Dataset", "Auto-label", "Generate Lyrics", etc.). The error is caused by incorrect serialization of Radio component values by the `@gradio/client`. ## Environment - **OS:** Windows 10 (Build 26200.7840) - **Installation method:** Pinokio - **Node.js:** v22.21.1 - **Python:** 3.11.11 - **ACE-Step version:** 1.5 - **ACE-Step API URL:** http://127.0.0.1:42003 ## Steps to reproduce 1. Launch ACE-Step UI via Pinokio 2. Go to **Training** section 3. Click on **any button** (Create Dataset, Auto-label, Generate Lyrics, Start Training, etc.) 4. Error 500 occurs ## Expected behavior Training actions should execute without errors. ## Actual behavior Any action in the Training LoRA section fails immediately with Error 500. ## Error logs **Server startup (successful):** ``` ACE-Step UI Server running on http://localhost:3001 Environment: development ACE-Step API: http://127.0.0.1:42003 Initializing local storage provider [Gradio] Connected to http://127.0.0.1:42003 ``` **Error when clicking any training button:** ``` [Training] Update settings error: { type: 'status', endpoint: '/update_settings', fn_index: 138, queue: true, title: 'Error', message: "Value: {'value': 'replace', '__type__': 'update'} (type: <class 'dict'>) is not in the list of choices: ['prepend', 'append', 'replace']", stage: 'error', success: false } ``` ``` Error: There is no endpoint matching that name of fn_index matching that number. at get_endpoint_info (node_modules\@gradio\client\dist\index.js:2126:11) at Client.submit (node_modules\@gradio\client\dist\index.js:1577:51) at Client.predict (node_modules\@gradio\client\dist\index.js:952:10) at <anonymous> (server\src\routes\training.ts:454:35) ``` **Subsequent API failures (Error 500):** ``` [vite] http proxy error: /api/training/auto-label - Error: read ECONNRESET [vite] http proxy error: /api/training/save-dataset - Error: connect ECONNREFUSED 127.0.0.1:3001 [vite] http proxy error: /api/training/preprocess - Error: connect ECONNREFUSED 127.0.0.1:3001 [vite] http proxy error: /api/training/start - Error: connect ECONNREFUSED 127.0.0.1:3001 ``` ## Root cause analysis The `@gradio/client` npm package is serializing Radio component values as: ```json {"value": "replace", "__type__": "update"} ``` But the Python Gradio backend expects a plain string: ``` "replace" ``` This mismatch causes the validation to fail, which then crashes the Node.js server, resulting in `ECONNREFUSED` errors for all subsequent training API calls. ## What I've tried - Complete reinstall of ACE-Step UI via Pinokio - Full system restart ## Related This may be related to #49 which addresses Gradio client compatibility issues.
Sign in to join this conversation.
No labels
pull-request
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
starred/ace-step-ui#49
No description provided.