我想在ApiGee端进行简单的会话管理,所以我决定将会话状态保存在缓存中。我使用了PopulateCache、LookupCache和InvalidateCache策略来实现这一点。问题是,当此特定策略附加到流(无论是前流、后流或任何特定流)时,尽管ApiGee UI表示它已成功部署(在部署按钮上的环境名称旁边的绿色圆圈),修订仍无法正确部署。当我试图向代理发送请求时,我得到了
{
fault: {
faultstring: "Internal server error APIProxy revision 1 of myapp does not exist in environment test of organization marcinklopotek",
detail: {
errorcode: "messaging.adaptors.http.ServerError"
}
}
}重新部署也于事无补。
我设法隔离了这个案子来重现这个问题。
复制步骤:
预期结果:
实际结果:
-向代理发送请求会导致错误
{
fault: {
faultstring: "Internal server error APIProxy revision 1 of No-Target does not exist in environment test of organization marcinklopotek",
detail: {
errorcode: "messaging.adaptors.http.ServerError"
}
}
}-启动跟踪会话会导致错误
Error creating trace session for API proxy No-Target, revision 1, environment test.
Failed to create DebugSession 1406889941313附加信息:
-分离和删除策略也没有帮助,并且导致了相同的错误
-脱离和取消政策,挽救新的修改原因
Error Deploying
Path /no-target conflicts with existing deployment path for revision 1 of the APIProxy No-Target in organization marcinklopotek发布于 2014-08-09 15:26:49
这是阿皮吉的产品问题。当使用没有缓存资源的InvalidateCache策略时,在部署代理时会出现问题。解决方法是在环境中创建缓存资源,并引用策略中的缓存资源:
https://stackoverflow.com/questions/25078947
复制相似问题