rockXiaofeng edited a comment on issue #993:
URL: https://github.com/apache/dubbo-go/issues/993#issuecomment-795103023


   > > dubbo: parse result map failed
   > BTW, how you get rid of `pkg.Unmarshal(len(@data):0) = error:get wrong 
attachments: <nil>`?
   
   
   Through a series of debugging, we found that the provder did not resolve to 
attchments (the reason should be that the client did not pass the relevant 
parameters), so i gave an initialized value:
   (dubbo-go/protocol/dubbo/impl/hessian.go 
   ```
   attachments, err := decoder.Decode()
   ...
   if attachments == nil {
        attachments = map[interface{}]interface{}{"interface": target}
   }
   ```
   ps: the above code is only a preliminary judgment and ultimately needs to be 
discussed with the developers.
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to