Giter Club home page Giter Club logo

Comments (11)

nzomkxia avatar nzomkxia commented on July 24, 2024

can you provide an URL address

from dubbo-admin.

soonway avatar soonway commented on July 24, 2024

根据ServicesController这里定义的URI:/services/$service/providers
在dubbo服务分组时拿到的$service其实是包含了group的URI,但是并没有做包含group的URI映射处理。
比如group是news,则这个URL就像下面的样子
http://xxx.xxx.xxx.xxx/governance/services/news/com.xxx.xxx.facade.service.IconFacede:1.0/providers
我试着在2.5.3的war包里面运行,在服务分组的情况下也是正常的。

from dubbo-admin.

wangzhangxing avatar wangzhangxing commented on July 24, 2024

me too 啊

from dubbo-admin.

tanyouxiang avatar tanyouxiang commented on July 24, 2024

我也遇到了,服务分组了以后就不行.

from dubbo-admin.

yinghuzhu avatar yinghuzhu commented on July 24, 2024

the root cause is that the "ServiceKey" is generated by group + "/"+interface+":"+version ; the source code located at: com/alibaba/dubbo/common/URL.java:1211

public String getServiceKey() {
        String inf = getServiceInterface();
        if (inf == null) return null;
        StringBuilder buf = new StringBuilder();
        String group = getParameter(Constants.GROUP_KEY);
        if (group != null && group.length() > 0) {
            buf.append(group).append("/");
        }
        buf.append(inf);
        String version = getParameter(Constants.VERSION_KEY);
        if (version != null && version.length() > 0) {
            buf.append(":").append(version);
        }
        return buf.toString();
    }

So, I suggest: "ServiceKey" = group + ":"+interface+":"+version

any idea ?

from dubbo-admin.

xllove-moon avatar xllove-moon commented on July 24, 2024

I meet this problem too!

from dubbo-admin.

cookerzhu avatar cookerzhu commented on July 24, 2024

The ServiceKey starts with a '/' which will conflict with the url pattern

from dubbo-admin.

zhaobingss avatar zhaobingss commented on July 24, 2024

这个问题有解决的办法吗?
@nzomkxia

from dubbo-admin.

zhuSilence avatar zhuSilence commented on July 24, 2024

The same as this error. How to solve it?

from dubbo-admin.

wanxx284105892 avatar wanxx284105892 commented on July 24, 2024

这个问题现在解决了吗? @nzomkxia

from dubbo-admin.

KeRan213539 avatar KeRan213539 commented on July 24, 2024

This problem has been fixed by #669.
Please feel free to reopen it if you have any question.

from dubbo-admin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.