Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uri parser problem? #176

Open
haoyun opened this issue Mar 11, 2022 · 0 comments
Open

uri parser problem? #176

haoyun opened this issue Mar 11, 2022 · 0 comments

Comments

@haoyun
Copy link

haoyun commented Mar 11, 2022

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

connect: 'direct',

The error disappeared.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant