yao icon indicating copy to clipboard operation
yao copied to clipboard

[Bug] 配置了环境变量YAO_ALLOW_FROM后yao启动报错

Open wwsheng009 opened this issue 1 year ago • 0 comments

发生了什么?

在.env文件中配置了环境变量YAO_ALLOW_FROM不为空后yao启动报错

报错: panic: handlers are already registered for path '/api/__yao/list/:id/component/:xpath/:method'

相关截图(必需)

最小可复现例子(必需)

Please provide a minimal reproduction then upload to your GitHub. 请提供 最小重现,并上传到你的 GitHub 仓库

复现步骤

Steps to reproduce the behavior: 1. 2.

.env文件配置YAO_ALLOW_FROM="localhost" yao start

Expected behavior 1. 2. panic: handlers are already registered for path '/api/__yao/list/:id/component/:xpath/:method'

Context

  • Yao Version( Detail Version ):0.10.2
  • Xgen Version( Build Info ):
  • Platform:Arch LInux

wwsheng009 avatar Feb 06 '23 11:02 wwsheng009