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

the bot speaks! #1

Merged
merged 8 commits into from
Jan 16, 2020
Merged

Conversation

agnescameron
Copy link
Collaborator

@agnescameron agnescameron commented Jan 2, 2020

This was a bit more involved than anticipated.

The dialogflow library that was part of the /lib/ folder of the react project is now deprecated, and won't actually talk to the dialogflow API. The current implementation of the dialogflow library is intended for NodeJS servers, and as such doesn't get authentication right on the client side. (as per this git issue: googleapis/google-cloud-node#2933 (comment)). I tried the fix listed here but it's a bit fiddly, and non-ideal. Doesn't make a huge amount of sense when we'll eventually run our own server anyway.

To get around this, the project now uses a nodeJS server, which is started along with the app by running npm run dev

NB this is gonna fail the netlify test I would assume because Netlify can't run a server?

@cosmicespresso cosmicespresso merged commit bdd834b into cosmicespresso:master Jan 16, 2020
cosmicespresso added a commit that referenced this pull request Feb 7, 2020
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

Successfully merging this pull request may close these issues.

2 participants