eolinker / goku_lite

A Powerful HTTP API Gateway in pure golang!Goku API Gateway (中文名:悟空 API 网关)是一个基于 Golang开发的微服务网关,能够实现高性能 HTTP API 转发、服务编排、多租户管理、API 访问权限控制等目的,拥有强大的自定义插件系统可以自行扩展,并且提供友好的图形化配置界面,能够快速帮助企业进行 API 服务治理、提高 API 服务的稳定性和安全性。
https://www.eolinker.com/product/api_gateway/
GNU General Public License v3.0
3.1k stars 602 forks source link

[ERROR]Missing Strategy ID! #79

Closed chenlhcodes closed 3 years ago

chenlhcodes commented 3 years ago

您好,我在部署一个console和node后,调用API报错[ERROR]Missing Strategy ID!,且我已经启动了开发策略,请问是哪里配置错了呢。

chenlhcodes commented 3 years ago

使用开放策略是需要传递Strategy-Id的请求头的吧,换成普通策略,加上Strategy-Id后就成功了

eolinker commented 3 years ago

有可能是您开启了开放策略后,没有发布配置

eolinker commented 3 years ago

开放策略是不需要传递策略ID的,普通策略需要传递策略ID,修改完配置确认无误后,记得发布配置才生效。