Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ApiAiRequest error on mobile #104

Open
ATakaSKY opened this issue Oct 15, 2018 · 1 comment
Open

ApiAiRequest error on mobile #104

ATakaSKY opened this issue Oct 15, 2018 · 1 comment

Comments

@ATakaSKY
Copy link

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.

@latheesh08
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants