当不使用mongodb时,启动报错注入错误。[ERROR] DI Reflection Manager collecting class reflections failed.
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start by reading the listed result classes under vendor/hyperf/gotask/src/MongoClient/Type/ and the DI reflection path that collects them. Reproduce startup with the asynchronous task feature enabled and MongoDB absent; done means startup no longer reports missing MongoDB\BSON\Unserializable interfaces when MongoDB is not used.
Written by the indexing model from the issue text.
Description
当只是使用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
请问如何解决或者屏蔽?
- Dominant language
- PHP
- Stars
- 255
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from hyperf/gotask
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
-
这个项目还维护吗Open
Difficulty 5/5 Over a week Newbie friendliness 15/100
-
gotask是不支持协程风格吗?Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 84/100
mailcow/mailcow-dockerized#7652 · 2 comments ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 3 days
-
Difficulty 1/5 Under an hour Newbie friendliness 91/100
benjaminkott/bootstrap_package#1675 ·