无法使用Dialogflow CX REST API

huangapple go评论54阅读模式
英文:

Unable to use the Dialogflow CX REST API

问题

当在 Postman 上测试 Dialogflow API 时,即使我已经指定了正确的 URL 并提供了正确的父级参数值,但我仍然收到了 404 错误。身份验证也已验证。

任何帮助将不胜感激。

作为参考,这是我尝试从我的代理获取环境列表的地方 这里有一个问题的图片,我已经为 ID 值提供了变量

对于大多数端点值,我都收到了相同的错误。不过 detectIntent 的工作正常。

英文:

When testing the dialogflow API on postman, I am getting a 404 error even though I have specified the correct URL while providing the correct parameters for the parent values. Authentication is also validated.

Any help would be appreciated.

For references, here's where I tried to retrieve list of environments from my agent Heres a pic of the problem. I have provided variables for the ID values

I am getting the same error for most of the endpoint values. It is however working on the detectIntent one

答案1

得分: 0

我明白了,我犯了一个错误。我没有从URL中移除“{parent=}”,显然花括号是Google的命名约定的一部分。

英文:

Nevermind, I got my mistake. I didnt remove the '{parent=}' from the URL, apparantly the curly brackets are part of google's naming convention.

huangapple
  • 本文由 发表于 2023年2月6日 18:10:38
  • 转载请务必保留本文链接:https://go.coder-hub.com/75359902.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定