dubbo-go: Get weird error message: `pkg.Unmarshal(len(@data):0) = error:get wrong attachments: ` in the server

What happened: Get weird error message: pkg.Unmarshal(len(@data):0) = error:get wrong attachments: <nil> in the server code.

What you expected to happen: Server works as expected.

How to reproduce it (as minimally and precisely as possible):

  1. use tengine as http2dubbo proxy, with configuration in the example: https://github.com/alibaba/tengine/tree/master/modules/mod_dubbo
  2. write a dubbo server with dubbo-go
  3. request with curl http://127.0.0.1:8080/dubbo -i

Anything else we need to know?: The same thing doesn’t happen with the tengine’s Java example. It works as the document states.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 30 (13 by maintainers)

Most upvoted comments

I update the documentation of the dubbo-proxy plugin: https://github.com/apache/apisix/pull/3829

Ok, This Pull request has been submitted to the community just now

Hi @spacewander , Ask a question about the document: https://github.com/apache/apisix/blob/master/docs/en/latest/plugins/dubbo-proxy.md#runtime-attributes What does service_name mean? Is it equivalent to interface in the file(https://github.com/dubbogo/dubbo-samples/blob/master/golang/helloworld/dubbo/go-server/profiles/test/server.yml) ?

Yes

This Pull request has been submitted to the community just now.