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

It looks like you are trying to access MongoDB over HTTP on the native driver port. #93

Open
cyryl1972 opened this issue Aug 17, 2023 · 1 comment

Comments

@cyryl1972
Copy link

hi,

I just installed latest MongoDB release and started the server.

I cannot publish any package because of this error:
It looks like you are trying to access MongoDB over HTTP on the native driver port.

It seems that HTTP is disabled (and cannot be accessed anymore) on new MongoDB release.

@SunlightBro
Copy link

SunlightBro commented Aug 17, 2023

Thats the mongo_dart dependency.
Which is unofficial and not up-to-date with the MongoDB spec.
TBH I don't know exactly which version introduced those compatibility changes.
(So maybe you can downgrade your MongoDB for your case)

For me a downgrade was not an option because Azure forces Security Updates for CosmosDB (thats Azures version of MongoDB).
So my solution was to get rid of mongo_dart and use dart ffi to call the Official native MongoDB driver.
But that required a lot of changes to the Dockerfile so I could no longer use unpubd.

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

2 participants