Nodejs inside uses mongo’s coll.findOne method and returns err as not master. How do you solve it?

  node.js, question

The code is as follows. It was placed in js inside, not on the console.
图片描述
The two errs are as follows:
图片描述

图片描述

Not master may be because my mongodb is hosted on another website mongohq. how do you solve this problem? ? This shrimp is a beginner, please ask Daniel for advice! !

Did you use more than one mongoUrl when configuring?