YaoApp / yao

:rocket: A performance app engine to create web services and applications in minutes.Suitable for AI, IoT, Industrial Internet, Connected Vehicles, DevOps, Energy, Finance and many other use-cases.

Home Page:https://yaoapps.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

wwsheng009 opened this issue · 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