mirror of
https://github.com/fspecii/ace-step-ui.git
synced 2026-04-25 06:05:47 +03:00
[GH-ISSUE #12] 500 Request Failed error at asking for username #11
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ace-step-ui#11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dirtybeagles on GitHub (Feb 4, 2026).
Original GitHub issue: https://github.com/fspecii/ace-step-ui/issues/12
when I browse to http://127.0.0.1:8881, I get prompted for a "Enter your name to get started creating AI music" but anything I put in there says "500: Request failed"
@corbin-hayden13 commented on GitHub (Feb 5, 2026):
I'm on windows and I was having this issue. Specifically, I was seeing the error
Error: connect ECONNREFUSED ::1:3001, which I found out means that windows was resolving thelocalhosturl to the IPv6 address::1:3001instead of the IPv4 address127.0.0.1that the api is exposed on.To fix this, I had to edit the
vite.config.tsfile and replace all references tolocalhostwith127.0.0.1. This solved the issue for me.@dirtybeagles commented on GitHub (Feb 5, 2026):
None of my files are set to localhost. I had to fix that before ace-step-ui would even start.
Once I open the UI, it tells me that I cannot put in a name at the loading screen.
Here is my vite file:
import path from 'path';
import { defineConfig, loadEnv } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, '.', '');
return {
server: {
port: 8881,
host: '127.0.0.1', // Force IPv4, not IPv6 ::1
proxy: {
'/api': {
target: 'http://127.0.0.1:8882', // Also force IPv4
changeOrigin: true,
},
'/audio': {
target: 'http://127.0.0.1:8882',
changeOrigin: true,
},
'/editor': {
target: 'http://127.0.0.1:8882',
changeOrigin: true,
},
'/blog': {
target: 'http://127.0.0.1:8882',
changeOrigin: true,
},
},
},
optimizeDeps: {
exclude: ['@ffmpeg/ffmpeg', '@ffmpeg/util'],
},
plugins: [react()],
define: {
'process.env.API_KEY': JSON.stringify(env.GEMINI_API_KEY),
'process.env.GEMINI_API_KEY': JSON.stringify(env.GEMINI_API_KEY)
},
resolve: {
alias: {
'@': path.resolve(__dirname, '.'),
}
}
};
});
@fspecii commented on GitHub (Feb 5, 2026):
Hi @dirtybeagles, thanks for reporting this!
As @corbin-hayden13 correctly identified, this is a Windows IPv6 resolution issue —
localhostresolves to::1(IPv6) on some Windows systems instead of127.0.0.1(IPv4), so the Vite dev proxy can't reach the Express backend.We've now fixed this in the repo — all Vite proxy targets have been changed from
http://localhost:3001tohttp://127.0.0.1:3001. You no longer need to manually editvite.config.ts.Please update to the latest version (
git pull) and it should work out of the box. Thanks @corbin-hayden13 for the diagnosis!@dirtybeagles commented on GitHub (Feb 6, 2026):
You cannot bind to 3001 on windows.
@2023PerfectDark commented on GitHub (Feb 12, 2026):
Im still getting this error
@navarisun1982 commented on GitHub (Feb 15, 2026):
same here
@klionclinkz commented on GitHub (Feb 15, 2026):
Solution (Atleast It Worked for Me)
As @corbin-hayden13 mentioned here - https://github.com/fspecii/ace-step-ui/issues/12#issuecomment-3851097056
I had to edit and change Vite.config.ts file which was under (api\ace-step-ui.pinokio\app) this is for pinokio app and the same would be similar under app folder probably for regular ace step ui. He mentioned one change, Change all occurrence of "localhost" into "127.0.0.1" which is definitely part of the problem.
The Second part of the solution was to Change the Port from "3001" to "4001" on all occurence in the Vite config file (4 locations by my count within the file and it's right next to the 127.0.0.1 part.
The Third part is to also change the 3001 to 4001 in the START.js file which is usually at the root folder of the installed and it occurs only 1 time.
IF you have any instance of Docker Running, Pause it as it sometimes hogs the ports.
Finally it worked. Hope this helps at least one of you.