4

When I connect to mongodb using a url, I get the error:

Server at 10.70.152.26:27017 reports maximum wire version 4, but this version of the Node.js Driver requires at least

screenshot of mongodb compass showing error 6 (MongoDB 3.6)

Seanny123
  • 8,776
  • 13
  • 68
  • 124
Sukma Wijaya
  • 49
  • 1
  • 1
  • 4

2 Answers2

7

Try to download an older version of Mongodb compass. like 1.28.4 here is the link to it Mongo 1.28.4.

and Try checking your admin username and see if you have the correct access or not. hope this helps

Gautamrk
  • 1,144
  • 9
  • 12
  • You also need to disable automatic updates in the settings of MongoDB Compass, otherwise it will automatically update itself to the latest version. – Klemens Zleptnig Dec 23 '22 at 11:56
  • Nice! I am running a legacy app that uses MongoDB 3.4 inside WSL2 and the latest version of compass (1.35.0 ) was throwing the wire version error. Version 1.28.4 works perfect using mongodb://0.0.0.0:27017 from Windows into WSL2. Sweet! – Greg Feb 14 '23 at 00:28
  • Why not update everything, downgrading sure works but if we down grade ever thing we had issues would still be using DOS. – Alex Mackinnon Aug 07 '23 at 18:35
2

You are using a server which only support protocol version 4 and a client which requires at least protocol version 6. You need to either use a driver which supports protocol version 4 or a server which supports protocol version 6.

Jörg W Mittag
  • 363,080
  • 75
  • 446
  • 653