pd4d10 / unpub

Self-hosted private Dart Pub server for Enterprise

Home Page:https://pub.dev/packages/unpub

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

cyryl1972 opened this issue · comments

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.

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.