Mizar
September 12, 2023, 3:39am
1
Hi @All
Right now I’m testing Dialogflow ES API V2 on Postman, I’m trying to query just the agent. In order to quick start.
When sending the request through Google site, I got the response
When trying Via postman I got this message.
I have already set up the OAuth 2.0 From Google Cloud side and Postman side.
Anyone has faced this issue?
Error: getaddrinfo ENOTFOUND dialogflow.googleapis.com
1 Like
xavidop
September 12, 2023, 7:27am
2
Hi,
This is because you are missing the region. You have to contact the region at the beginning of the URL. For example: us-central1-dialogflow.googleapis.com
1 Like
Mizar
September 13, 2023, 1:11pm
3
hi @xavidop already tried with the region but look.
https://cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1-overview#rest_endpoints
I’m using the default service endpoint
then Im using the resource
Im getting 200 from Google Doc
But still, postman is telling me the URL doesn’t exist.
p>404. That’s an error.
The requested URL /v2beta1/parent=projects/testbot-df/agent was not found on this server.
That’s all we know.
xavidop
September 13, 2023, 1:21pm
4
yeah so the main issue I am seeing is that the URL is not correct, you have to specify the project id: the format is projects/ or projects//locations/.
make sure that the token it is not expired as well
Mizar
September 13, 2023, 1:28pm
5
Im creating the token each time when Im testing, and its working so fine.
For the project id is testbot-df
this is my URL, what could be the error here?https://dialogflow.googleapis.com/v2beta1/parent=projects/testbot-df/agent
xavidop
September 13, 2023, 1:32pm
6
Mizar
September 13, 2023, 4:59pm
8
xavidop
September 13, 2023, 5:54pm
9
try the URL I suggested with the region please
Mizar
September 13, 2023, 9:54pm
10
Any suggestions? I have billing enabled for this account and the id is working fine, the error is just the url but its the documentation url
xavidop
September 14, 2023, 5:38am
11
1 Like
xavidop
September 14, 2023, 5:39am
12
and this JS code:
authorize and load
execute
Mizar
September 14, 2023, 12:35pm
13
Tried with the API key according to documentation but also, Documentation says that only OAUTH2.0 is the method to access.
Did you create the API from the project and add that to the api call ?
xavidop
September 14, 2023, 1:04pm
14
yes I did!
You can use API key & ouath token or just oauth token. Using only API token will not work
Mizar
September 14, 2023, 1:44pm
15
Im testing it, but would like to achieve it from Postman, like sending a request before to prepare a collection to call all methods
xavidop
September 14, 2023, 2:24pm
16
let me know your progress!! happy to assist!