Watch keynotes and sessions from MongoDB.live, our virtual developer conference.

Error: the Database field must be set on Operation 0

Hello,
I’m using MongoDB 4.2 on Atlas ,
And using golang driver

Running locally I run just fine,
But when the app is on kubernetes pod,

When an insert request is made I got an exception:

the Database field must be set on Operation 0

Can’t google this error,
So if anyone here knows?

Hi @Altiano_Gerung,

This error is coming from within the driver. Can you share your code so we can try to reproduce?

– Divjot

1 Like

I provide empty string for the DB Name,
But the error could be more helpfull I thnk

@Altiano_Gerung I definitely agree that the error message could be more helpful here. I opened https://jira.mongodb.org/browse/GODRIVER-1668 to address this.

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.