QuantumNous / QuantumNous/new-api

Frontend Error on /setup Page: TypeError: Cannot read properties of undefined (reading 'length')

Open
#4,367 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

  1. Deploy new-api using docker-compose with PostgreSQL 15 and Redis
  2. Start all services successfully
  3. Open http://localhost:3000/setup in browser
  4. 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.