You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "flycash (GitHub)" <gi...@apache.org> on 2020/02/07 12:03:40 UTC

[GitHub] [dubbo-go] flycash commented on issue #110: FAQ

Nacos Registry:  using Java internal class name as the interface value will cause registry failed.

The service configuration looks like:
```yml
services:
  "UserProvider":
    protocol : "dubbo"
    # 相当于dubbo.xml中的interface
    interface : "com.ikurento.user.UserProvider$UserService"
    loadbalance: "random"
    warmup: "100"
    cluster: "failover"
    methods:
    - name: "GetUser"
      retries: 1
      loadbalance: "random"
```
The key point is that the value `com.ikurento.user.UserProvider$UserService` contains symbol '$" which is not allowed in nacos server. The response from nacos server is 'dom name can only have these characters: 0-9a-zA-Z-._:, current: DEFAULT_GROUP@@providers:com.ikurento.user.UserProvider$UserService
'

You should rename the interface to avoid the problem. 

![image](https://user-images.githubusercontent.com/9923838/74028199-bec25780-49e4-11ea-86b6-07dc0198847d.png)

![image](https://user-images.githubusercontent.com/9923838/74028254-ddc0e980-49e4-11ea-80b3-41e7e8e96d20.png)


[ Full content available at: https://github.com/apache/dubbo-go/issues/110 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org