QuantumNous / QuantumNous/new-api
Frontend Error on /setup Page: TypeError: Cannot read properties of undefined (reading 'length')
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 48.5k
- Forks
- 11.6k
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 58
Description
Your current newapi version
latest
Submission Checks
- I have confirmed there are no similar issues
- I have thoroughly read the docs at https://docs.newapi.ai/ and the project README, especially the FAQ section
- I have not removed any guidance or section headings from this template and will complete it as requested
- I understand that maintainers have limited time and issues that do not follow this template may be ignored or closed directly
Issue Description
After deploying with Docker Compose (PostgreSQL + Redis), the backend starts normally and all APIs return successfully.
However, when accessing http://localhost:3000/setup, the frontend page throws an error immediately and cannot load the initialization interface.
Error Message
TypeError: Cannot read properties of undefined (reading 'length')
at Ji (index-Dy8uYzRk.js:1102:36118)
This is caused by the Ji function receiving undefined instead of a valid string, causing e.length to throw.
Steps to Reproduce
- Deploy new-api using docker-compose with PostgreSQL 15 and Redis
- Start all services successfully
- Open
http://localhost:3000/setupin browser - Frontend crashes with the above error
Expected Result
The system initialization page should load normally, allowing the user to create an admin account.
Related Screenshots
(Upload your error screenshot here)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the /setup page and reproduce the crash with the Docker Compose PostgreSQL and Redis deployment described in the issue. Trace the frontend source that produces index-Dy8uYzRk.js and identify the value passed to the Ji function; done means the initialization page loads and permits admin account creation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100