You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

自建Typebot.io后台登录后无限加载报错求助

自建Typebot.io登录后台无限加载,日志报"Cannot read properties of null (reading 'id')"

自建Typebot.io应用后,登录管理面板页面持续无限加载,日志输出如下错误:

Something went wrong TypeError: Cannot read properties of null (reading 'id')
    at u (/app/apps/builder/.next/server/chunks/1681.js:1:537)
    ... 8 lines matching cause stack trace ...
    at async NextNodeServer.handleCatchallRenderRequest (/app/node_modules/.pnpm/next@14.1.0_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/next-server.js:268:37) {
  code: 'INTERNAL_SERVER_ERROR',
  name: 'TRPCError',
  [cause]: TypeError: Cannot read properties of null (reading 'id')
      at u (/app/apps/builder/.next/server/chunks/1681.js:1:537)
      at async Object.o [as createContext] (/app/apps/builder/.next/server/chunks/9108.js:1:85781)
      at async Object.createContext (file:///app/node_modules/.pnpm/@trpc+server@10.40.0/node_modules/@trpc/server/dist/nodeHTTPRequestHandler-cf01c646.mjs:12:20)
      at async resolveHTTPResponse (file:///app/node_modules/.pnpm/@trpc+server@10.40.0/node_modules/@trpc/server/dist/resolveHTTPResponse-68c8befb.mjs:141:15)
      at async file:///app/node_modules/.pnpm/@trpc+server@10.40.0/node_modules/@trpc/server/dist/nodeHTTPRequestHandler-cf01c646.mjs:67:9
      at async file:///app/node_modules/.pnpm/@trpc+server@10.40.0/node_modules/@trpc/server/dist/adapters/next.mjs:44:9
      at async K (/app/node_modules/.pnpm/next@14.1.0_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js:20:16545)
      at async U.render (/app/node_modules/.pnpm/next@14.1.0_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js:20:16981)
      at async NextNodeServer.runApi (/app/node_modules/.pnpm/next@14.1.0_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/next-server.js:556:9)
      at async NextNodeServer.handleCatchallRenderRequest (/app/node_modules/.pnpm/next@14.1.0_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/next-server.js:268:37)
}

已尝试重装Easy Panel和Typebot,问题未解决。


排查与解决方案:

  • 检查数据库用户关联数据:错误源于TRPC上下文创建时读取null对象的id字段,大概率是登录用户的关联团队/工作区数据缺失。进入数据库查看用户表及关联表,确认当前用户记录完整,无空值关联项。
  • 清理缓存并重新构建:
    1. 执行pnpm clean清除应用缓存
    2. 运行pnpm build重新构建Next.js应用
    3. 清除浏览器本地存储和Cookie后重新登录
  • 校验环境变量:确认NEXT_PUBLIC_APP_URL等核心环境变量配置正确,前后端请求路径一致,无拼写错误。
  • 切换稳定版本部署:确认当前Typebot版本与Easy Panel兼容,尝试切换到官方最新release分支重新部署,避免使用开发分支的不稳定代码。
  • 检查TRPC上下文逻辑:若有自定义部署配置,查看TRPC的createContext函数,确保获取用户信息时添加非空判断,避免直接访问null对象的属性。

内容的提问来源于stack exchange,提问作者Miguel

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.20 22:40:20