当前位置: 首页 > news >正文

Timeout or no response waiting for NATS JetStream server

当使用jetStream 出现"Timeout or no response waiting for NATS JetStream server" 错误的时候要注意后面的“no response”,尤其是开发测试,要去check server 是否启动了 jet stream。

[20112] 2025/01/24 08:27:42.738396 [INF]     _ ___ _____ ___ _____ ___ ___   _   __  __
[20112] 2025/01/24 08:27:42.738396 [INF]  _ | | __|_   _/ __|_   _| _ \ __| /_\ |  \/  |
[20112] 2025/01/24 08:27:42.738396 [INF] | || | _|  | | \__ \ | | |   / _| / _ \| |\/| |
[20112] 2025/01/24 08:27:42.738396 [INF]  \__/|___| |_| |___/ |_| |_|_\___/_/ \_\_|  |_|
[20112] 2025/01/24 08:27:42.738396 [INF] 
[20112] 2025/01/24 08:27:42.738396 [INF]          https://docs.nats.io/jetstream
[20112] 2025/01/24 08:27:42.738396 [INF] 
[20112] 2025/01/24 08:27:42.738396 [INF] ---------------- JETSTREAM ----------------
[20112] 2025/01/24 08:27:42.738396 [INF]   Max Memory:      35.78 GB
[20112] 2025/01/24 08:27:42.738396 [INF]   Max Storage:     1.00 TB
[20112] 2025/01/24 08:27:42.738396 [INF]   Store Directory: "C:\Users\79162\AppData\Local\Temp\nats\jetstream"
[20112] 2025/01/24 08:27:42.738396 [INF] -------------------------------------------

my launch.json content is

{// Use IntelliSense to learn about possible attributes.// Hover to view descriptions of existing attributes.// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387"version": "0.2.0","configurations": [{"name": "Launch Package","type": "go","request": "launch","mode": "auto","program": "main.go","args": ["-V","--jetstream"]}]
} 

ps: my timeout setting code for debugging

Options options = new Options.Builder().server("nats://127.0.0.1:4222").socketWriteTimeout(Duration.ofSeconds(1010)).socketReadTimeoutMillis(60*1000*10)
.connectionTimeout(Duration.ofSeconds(59))  // Set timeout.build();

be attention: connectionTimeout must less than socketWriteTimeout

http://www.lryc.cn/news/528142.html

相关文章:

  • 5.2 软件需求分析
  • DF 开发1
  • 【现代深度学习技术】深度学习计算 | 参数管理
  • 团体程序设计天梯赛-练习集——L1-024 后天
  • JVM栈溢出线上环境排查
  • Java实现FIFO缓存策略实战
  • set集合
  • 【数据结构】 并查集 + 路径压缩与按秩合并 python
  • 无耳科技 Solon v3.0.7 发布(2025农历新年版)
  • UART、I2C和SPI对比
  • Vue 响应式渲染 - 待办事项简单实现
  • ResNeSt: Split-Attention Networks论文学习笔记
  • 澳洲硕士毕业论文写作中如何把握主题
  • STM32 LED呼吸灯
  • Java数据库操作指南:快速上手JDBC【学术会议-2025年数字化教育与信息技术(DEIT 2025】
  • 2024年个人总结
  • GitHub 仓库的 Archived 功能详解:中英双语
  • LeetCode:56.合并区间
  • Vue演练场基础知识(七)插槽
  • 进程池的制作(linux进程间通信,匿名管道... ...)
  • 【Linux】Linux C比较两个 IPv6 网关地址是否相等,包括前缀
  • 【uniapp】uniapp使用java线程池
  • 面试题-Java集合框架
  • Java基础教程(007):方法的重载与方法的练习
  • 【ESP32】ESP-IDF开发 | WiFi开发 | TCP传输控制协议 + TCP服务器和客户端例程
  • npm cnpm pnpm npx yarn的区别
  • debian12.9编译freeswitch1.10.12【默认安装】
  • 使用 C/C++ 调用 libcurl 调试消息
  • 【愚公系列】《循序渐进Vue.js 3.x前端开发实践》030-自定义组件的插槽Mixin
  • 大一计算机的自学总结:异或运算