Git Product home page Git Product logo

Comments (8)

muyu66 avatar muyu66 commented on July 20, 2024

我测试过,namespace似乎默认指向public,且如果namespace有指定值,则不能生效(客户端能拿到值,但是服务端UI检测不到值)

from nacos-sdk-nodejs.

henryfanyiye avatar henryfanyiye commented on July 20, 2024

namespace的值是不是填名称,是填对应的id,亲测有效

from nacos-sdk-nodejs.

nar142857 avatar nar142857 commented on July 20, 2024

试了namespace使用id也不行,而且serverAddr使用域名的话好像会自动在域名后面加上:8848端口号,难道是我使用的姿势不对?翻遍了官方文档也每个说明

from nacos-sdk-nodejs.

nar142857 avatar nar142857 commented on July 20, 2024

namespace的值是不是填名称,是填对应的id,亲测有效

本地自己搭的nacos命名空间用id是可以的,测试环境用域名没有生效,感觉直连用域名不用host:port有问题
image

from nacos-sdk-nodejs.

henryfanyiye avatar henryfanyiye commented on July 20, 2024

用serverPort指定端口

from nacos-sdk-nodejs.

nar142857 avatar nar142857 commented on July 20, 2024

域名已经通过Nginx代理了端口了

from nacos-sdk-nodejs.

henryfanyiye avatar henryfanyiye commented on July 20, 2024

域名已经通过Nginx代理了端口了

serverPort这里不是用服务启动的端口,是用服务对外暴露的端口。比如我服务起来是8848,但是通过域名对外暴露是https默认的443,那这里serverAddr就用域名,serverPort指定443。而且这里要注意一点,域名不要加前面的协议,如果是https需要设置ssl: true。本地可以打开debug进行调试,踩了不少坑

{
    "serverAddr": "test.com",
    "serverPort": "443",
    "ssl": true
}

from nacos-sdk-nodejs.

wehtta avatar wehtta commented on July 20, 2024

namespace的值是不是填名称,是填对应的id,亲测有效

本地自己搭的nacos命名空间用id是可以的,测试环境用域名没有生效,感觉直连用域名不用host:port有问题
image

👍👍👍

from nacos-sdk-nodejs.

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.