dialogflow-javascript-client
dialogflow-javascript-client copied to clipboard
ApiAiRequest error on mobile
I have created an ionic application which was working fine till 12th of this month when it was last tested. Now the application has started throwing APIAiRequest error on calling client.textRequest. The application works fine on browser and able to connect to dialogflow with this plugin but fails when trying the same from mobile after generating apk.
Has there been any changes that has been made in this api or has dialogflow itself has made some change? I would appreciate if someone could help.
@ATakaSKY
change in request.js
this.uri = this.apiAiClient.getApiBaseUrl() + "query?v=" + this.apiAiClient.getApiVersion(); replace to following. this.uri = "https://cors-anywhere.herokuapp.com/" + this.apiAiClient.getApiBaseUrl() + "query?v=" + this.apiAiClient.getApiVersion();
this worked me