restheart 插件框架中的身份验证失败

Authentication failed in restheart plugin skeleton

我正在使用插件框架创建一个 restheart 插件,但是在启动 docker-compose 之后我收到身份验证错误 'restheart-plugin-skeleton_mongodb-initiate_1' 容器。

容器日志:

MongoDB shell version v4.2.11
connecting to: mongodb://mongodb:27017/?compressors=disabled&gssapiServiceName=mongodb
2020-12-15T18:13:45.056+0000 E  QUERY    [js] Error: Authentication failed. :
connect@src/mongo/shell/mongo.js:353:17
@(connect):2:6
2020-12-15T18:13:45.059+0000 F  -        [main] exception: connect failed
2020-12-15T18:13:45.059+0000 E  -        [main] exiting with code 1
MongoDB shell version v4.2.11
connecting to: mongodb://mongodb:27017/?compressors=disabled&gssapiServiceName=mongodb
2020-12-15T18:13:47.178+0000 E  QUERY    [js] Error: Authentication failed. :
connect@src/mongo/shell/mongo.js:353:17
@(connect):2:6
2020-12-15T18:13:47.182+0000 F  -        [main] exception: connect failed
2020-12-15T18:13:47.182+0000 E  -        [main] exiting with code 1

上次 commit

刚刚修复了这个问题