Comments (8)
我测试过,namespace似乎默认指向public,且如果namespace有指定值,则不能生效(客户端能拿到值,但是服务端UI检测不到值)
from nacos-sdk-nodejs.
namespace的值是不是填名称,是填对应的id,亲测有效
from nacos-sdk-nodejs.
试了namespace使用id也不行,而且serverAddr使用域名的话好像会自动在域名后面加上:8848端口号,难道是我使用的姿势不对?翻遍了官方文档也每个说明
from nacos-sdk-nodejs.
namespace的值是不是填名称,是填对应的id,亲测有效
本地自己搭的nacos命名空间用id是可以的,测试环境用域名没有生效,感觉直连用域名不用host:port有问题
from nacos-sdk-nodejs.
用serverPort指定端口
from nacos-sdk-nodejs.
域名已经通过Nginx代理了端口了
from nacos-sdk-nodejs.
域名已经通过Nginx代理了端口了
serverPort这里不是用服务启动的端口,是用服务对外暴露的端口。比如我服务起来是8848,但是通过域名对外暴露是https默认的443,那这里serverAddr就用域名,serverPort指定443。而且这里要注意一点,域名不要加前面的协议,如果是https需要设置ssl: true。本地可以打开debug进行调试,踩了不少坑
{
"serverAddr": "test.com",
"serverPort": "443",
"ssl": true
}
from nacos-sdk-nodejs.
namespace的值是不是填名称,是填对应的id,亲测有效
👍👍👍
from nacos-sdk-nodejs.
Related Issues (20)
- [优化] subscribe config listener 触发逻辑 HOT 3
- 服务优雅下线后,订阅通知不会触发 HOT 7
- 不支持 login HOT 2
- "registerInstance" function does not work with the groupName parameter.
- 配置项ts定义0注释 HOT 1
- 是否支持 publishConfig 匹配 MD5,形成类似 redis 锁的形式?
- [ResponseTimeoutError]: Server no response in 3000ms, address#127.0.0.1:7777 HOT 5
- Class NacosNamingClient config parameter's server list cannot accept format http://127.0.0.1:8848
- 从 nacos 获取配置的时候,403鉴权失败无法获取
- how to recover from HostReactor error
- 线上nacos sdk内部报错 HOT 2
- registerInstance方法传参ts参数不对 HOT 1
- 客户端如何禁用缓存
- 执行jest用例后,报了 ReferenceError: You are trying to `import` a file after the Jest environment has been torn down. From test/modules/config-center/index.spec.js
- Error: [CLIENT-BEAT] failed to send beat
- 在项目中使用nacos-sdk-nodejs后,服务一段时间后会挂掉 HOT 2
- NacosNamingClient 的subscribe 无法订阅所有集群的实例,如果不传集群名,默认订阅DEFAULT,而go版本的sdk是可以订阅所有集群实例的 HOT 4
- nacosNaming support typescript
- 缓存文件的时候没有处理路径中的特殊字符
- [Security] 依赖 VM2 存在安全漏洞 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nacos-sdk-nodejs.