Skip to content
This repository was archived by the owner on Sep 1, 2025. It is now read-only.
This repository was archived by the owner on Sep 1, 2025. It is now read-only.

uri parser problem? #176

@haoyun

Description

@haoyun

Once connected, I received the following error under "Operations" and "Profilling" (might be more)

error parsing uri: must have a / before the query ?

From the devtools of the browser, I can see the following

Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Request URL: http://localhost:3000/api/runCommand?d=admin&c=currentOp
Request Payload: {"connection":"mongodb://username:password@localhost:27017?connect=direct","database":"admin","command":"{\"currentOp\":1,\"ns\":{\"$regex\":{\"$regularExpression\":{\"pattern\":\"zbaffi.*\",\"options\":\"\"}}}}"}

I think the problem is caused by the ?connect=direct part. Then I removed the line
https://github.com/renzholy/mongood/blob/ce925d20ce724866092049ff51b0535d3ca27201/src/utils/index.ts#L19

The error disappeared.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions