[GH-ISSUE #12] 500 Request Failed error at asking for username #11

Closed
opened 2026-02-26 21:30:43 +03:00 by kerem · 7 comments
Owner

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"

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"
kerem closed this issue 2026-02-26 21:30:43 +03:00
Author
Owner

@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 the localhost url to the IPv6 address ::1:3001 instead of the IPv4 address 127.0.0.1 that the api is exposed on.

To fix this, I had to edit the vite.config.ts file and replace all references to localhost with 127.0.0.1. This solved the issue for me.

<!-- gh-comment-id:3851097056 --> @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 the `localhost` url to the IPv6 address `::1:3001` instead of the IPv4 address `127.0.0.1` that the api is exposed on. To fix this, I had to edit the `vite.config.ts` file and replace all references to `localhost` with `127.0.0.1`. This solved the issue for me.
Author
Owner

@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, '.'),
}
}
};
});

<!-- gh-comment-id:3853055654 --> @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, '.'), } } }; });
Author
Owner

@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 — localhost resolves to ::1 (IPv6) on some Windows systems instead of 127.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:3001 to http://127.0.0.1:3001. You no longer need to manually edit vite.config.ts.

Please update to the latest version (git pull) and it should work out of the box. Thanks @corbin-hayden13 for the diagnosis!

<!-- gh-comment-id:3856247715 --> @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 — `localhost` resolves to `::1` (IPv6) on some Windows systems instead of `127.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:3001` to `http://127.0.0.1:3001`. You no longer need to manually edit `vite.config.ts`. Please update to the latest version (`git pull`) and it should work out of the box. Thanks @corbin-hayden13 for the diagnosis!
Author
Owner

@dirtybeagles commented on GitHub (Feb 6, 2026):

You cannot bind to 3001 on windows.

<!-- gh-comment-id:3857090077 --> @dirtybeagles commented on GitHub (Feb 6, 2026): You cannot bind to 3001 on windows.
Author
Owner

@2023PerfectDark commented on GitHub (Feb 12, 2026):

Im still getting this error

Image
<!-- gh-comment-id:3888373840 --> @2023PerfectDark commented on GitHub (Feb 12, 2026): Im still getting this error <img width="1865" height="1468" alt="Image" src="https://github.com/user-attachments/assets/d2c0f129-1249-4e94-9948-59e7b15a25fc" />
Author
Owner

@navarisun1982 commented on GitHub (Feb 15, 2026):

Im still getting this error

Image

same here

<!-- gh-comment-id:3903452063 --> @navarisun1982 commented on GitHub (Feb 15, 2026): > Im still getting this error > > <img alt="Image" width="1865" height="1468" src="https://private-user-images.githubusercontent.com/142272040/548571099-d2c0f129-1249-4e94-9948-59e7b15a25fc.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzExMzkxMDYsIm5iZiI6MTc3MTEzODgwNiwicGF0aCI6Ii8xNDIyNzIwNDAvNTQ4NTcxMDk5LWQyYzBmMTI5LTEyNDktNGU5NC05OTQ4LTU5ZTdiMTVhMjVmYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDIxNVQwNzAwMDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lMmE3NTg4NGU5NjkwMjhiOTJkMWM0YmYyM2RhY2ZiMzkzNWQ2MjJhNzk2ZDY2NTEyN2NjYzhhYTIxMzkwMTE5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.uhLv-6qjHC_BnykToxTl0EUe0frGQjrW4br7HYz_wnY"> same here
Author
Owner

@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

  1. 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.

  2. 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.

  3. 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.

  4. 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.

<!-- gh-comment-id:3904249680 --> @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 1. 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. 2. 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. 3. 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. 4. 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.
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#11
No description provided.