gotask icon indicating copy to clipboard operation
gotask copied to clipboard

当不使用mongodb时,启动报错注入错误。[ERROR] DI Reflection Manager collecting class reflections failed.

Open popfaker opened this issue 11 months ago • 0 comments

当只是使用golang的异步任务功能,没有安装mongodb包时,会出现错误: [ERROR] DI Reflection Manager collecting class reflections failed. File: /home/vagrant/code/robot-processes/vendor/hyperf/gotask/src/MongoClient/Type/BulkWriteResult.php. Exception: Interface "MongoDB\BSON\Unserializable" not found [ERROR] DI Reflection Manager collecting class reflections failed. File: /home/vagrant/code/robot-processes/vendor/hyperf/gotask/src/MongoClient/Type/DeleteResult.php. Exception: Interface "MongoDB\BSON\Unserializable" not found [ERROR] DI Reflection Manager collecting class reflections failed. File: /home/vagrant/code/robot-processes/vendor/hyperf/gotask/src/MongoClient/Type/IndexInfo.php. Exception: Interface "MongoDB\BSON\Unserializable" not found [ERROR] DI Reflection Manager collecting class reflections failed. File: /home/vagrant/code/robot-processes/vendor/hyperf/gotask/src/MongoClient/Type/InsertManyResult.php. Exception: Interface "MongoDB\BSON\Unserializable" not found [ERROR] DI Reflection Manager collecting class reflections failed. File: /home/vagrant/code/robot-processes/vendor/hyperf/gotask/src/MongoClient/Type/InsertOneResult.php. Exception: Interface "MongoDB\BSON\Unserializable" not found [ERROR] DI Reflection Manager collecting class reflections failed. File: /home/vagrant/code/robot-processes/vendor/hyperf/gotask/src/MongoClient/Type/UpdateResult.php. Exception: Interface "MongoDB\BSON\Unserializable" not found

请问如何解决或者屏蔽?

popfaker avatar Mar 03 '25 06:03 popfaker