Hyperf uses JSON RPC and consumer to register services
Error Messages: [ERROR] Invalid protocol of registry consul[205]
Solution:
# Need to install the driver package
composer require hyperf/service-governance-consul
Hyperf uses JSON RPC and consumer to register services
Error Messages: [ERROR] Invalid protocol of registry consul[205]
Solution:
# Need to install the driver package
composer require hyperf/service-governance-consul
Phenomenon
Some back-end services register with consumer and report an error HTTP get http://xxx/actuator/health: 503 output: {"status": "out_of_service"
, but other services can be registered normally. Find a way to print thin error messages on the Internet
Print detailed error information
Configure in the error reporting module: application.YML
or bootstrap.YML
as follows:
management:
endpoint:
health:
show-details: always
endpoints:
web:
exposure:
include: '*'
Or add the following configuration in application.Properties
:
management.endpoint.health.show-details=always
management.endpoints.web.exposure.include=*
Finally, after printing the detailed error information, I found that it was the ES cluster. I thought it was the problem of the consumer configuration that led to the wrong direction during troubleshooting.