Closed tpelabon closed 3 months ago
Hi @tpelabon ,
Please try NBomber 5.7.0-beta.4
Hello @AntyaDev, thanks for the update! I updated my NBomber to the 5.7.0-beta.4 but sadly I still have the method not found error :
"Unhandled exception. System.MissingMethodException: Method not found: 'NATS.Client.IConnection NATS.Client.ConnectionFactory.CreateConnection(NATS.Client.Options)`.
at NBomber.Infra.Nats.connect@13-1.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at NBomber.Infra.Nats.connect@13.Invoke(Unit unitVar0)
at NBomber.Infra.Operation.retryForever@9.MoveNext()
at NBomber.DomainServices.Runners.AutoClusterRunner.run@36-4.MoveNext()
at NBomber.DomainServices.NBomberRunner.task@51.MoveNext()
at NBomber.DomainServices.NBomberRunner.run(Boolean disposeLogger, NBomberContext context)
at NBomber.FSharp.NBomberRunner.runWithResult(IEnumerable1 args, NBomberContext context)
at NBomber.FSharp.NBomberRunner.run(NBomberContext context)
at NBomber.CSharp.NBomberRunner.Run(NBomberContext context)
at Klang.Seed.CCUTestWorker.Program.Main(String[] args) in C:\Users\Thibault\seed\tools\ccu-test\ccu-testworker\Program.cs:line 134"
Any idea what is wrong ?
Hi @tpelabon , What version of NATS did you install?
@AntyaDev our NATS.Client is at 1.1.2
@tpelabon Please try 5.7.0-beta.5 Now NBomber contains
<PackageReference Include="NATS.Client" Version="[1.1.5]" />
@AntyaDev It works with 5.7.0-beta.5
! Thanks for the fix 🙌
We uses NATS.Client in our code but nBomber is using an older version which creates conflicts for us, and we cannot downgrade as we need feature used in 1.1.2.
Our workaround is for us to remove our usage of NATS immediately. But this is only a temporary solution because we will have it soon as a hard requirement. We are using NATS JetStream, which is not available in the outdated NATS client NBomber is referencing to. And Upgrade should be harmless. Our problem is that NATS client changed their connection interface and thus the library is breaking now. I would suggest
But the issue is not the NATS server version, its that the client broke backwards compatibility but its not detected proper (because NBomber does not define a < version requirement). I have to say, its shitty from NATS to break it, because I would assume backwards compatiblity between minor versions