Exploding Hams
Testcontainers CosmosDB / WebApplication Factory ConnectionString Not Working
Yeah definitely a bum connection string. usually you wouldn't have the IP address like that, it's probably expecting
localhost
instead (I'll admit I may be a dummy but just a guess), CosmosClient when instantiated will look to make a real connection outwards29 replies
Testcontainers CosmosDB / WebApplication Factory ConnectionString Not Working
I've used it a bit, but without knowing which line threw the exception in particular, I would caution that when using the web application factory will call the entry point in your
Program
class. If you have any startup code there, you may need to override any and all initialization you're doing within the builder.ConfigureServices(_ => { })
method.29 replies