stack-labs / questions

任何关于Micro的问题都可以在Issue中创建
27 stars 6 forks source link

{"id":"go.micro.client","code":500,"detail":"Bad Request: HTTP status code 400; transport: received the unexpected content-type \"text/plain; charset=utf-8\"","status":"Internal Server Error"} #34

Closed SkyWingZhang closed 4 years ago

SkyWingZhang commented 4 years ago

错误{"id":"go.micro.client","code":500,"detail":"Bad Request: HTTP status code 400; transport: received the unexpected content-type \"text/plain; charset=utf-8\"","status":"Internal Server Error"}

这或许是每个srv的go-micro版本不一样或者srv与网关micro api的go-micro版本不一样,在go mod中设置为同一版本如: github.com/micro/go-micro v1.18.1-0.20200106174432-be6e8a7c7827