treethought / flask-assistant

Framework for Building Virtual Assistants with Dialogflow and python
Apache License 2.0
379 stars 101 forks source link

Unknown error when running schema #73

Closed martinn closed 6 years ago

martinn commented 6 years ago

Hi there, just trying to follow the quick start, have followed all the steps but the schema webhook.py command is failing with errors below:

schema webhook.py
Generating intent schema...
Registering greeting intent
{'id': 'e2f91470-1651-46ba-849d-ae26c9038a0f', 'timestamp': '2018-03-01T07:03:57.609Z', 'lang': 'en', 'status': {'code': 400, 'errorType': 'bad_request', 'errorDetails': 'Unknown error errorid=766a2412-f5ba-42d1-aca3-86b5c6708e36', 'webhookTimedOut': False}}

Registering give-gender intent
{'id': '4266d750-3098-4b11-b368-60d91530e509', 'timestamp': '2018-03-01T07:03:57.873Z', 'lang': 'en', 'status': {'code': 400, 'errorType': 'bad_request', 'errorDetails': 'Unknown error errorid=fe0589e1-d201-4712-a853-a01f8809e0df', 'webhookTimedOut': False}}

Registering give-color intent
{'id': 'ca4c1e35-5b41-4510-9b6b-6a5d54750dd9', 'timestamp': '2018-03-01T07:03:58.139Z', 'lang': 'en', 'status': {'code': 400, 'errorType': 'bad_request', 'errorDetails': 'Unknown error errorid=fa8cda8d-ca83-4a5b-b8d2-5aa888e21d18', 'webhookTimedOut': False}}

Writing schema json to file
Generating entity schema...
Registering gender entity
{'id': '7349396e-b421-418f-88ac-94c7c599e31d', 'timestamp': '2018-03-01T07:03:58.409Z', 'lang': 'en', 'status': {'code': 400, 'errorType': 'bad_request', 'errorDetails': 'Unknown error errorid=5fa4784f-913d-4577-8f65-8136020dee4d', 'webhookTimedOut': False}}

Writing schema json to file

The credentials are correct as if I intentionally set them wrong I get a different "Not Authorized" message.

Unsure what else to try.

Thanks!

martinn commented 6 years ago

I managed to fix it. For future reference, I had the DEV_ACCESS_TOKEN and the CLIENT_ACCESS_TOKEN values reversed.