Rasa x link to google calendar is not working

Hi,

I hope this message finds you well. Maybe it’s just a very simple question, I’ve spent a day however I still can’t figure it out… I’ve already put the ‘credentials.json’ on github and I even create on in /etc/rasa and /etc/rasa/actions, but it is still not working.

Can I ask where is the working directory on rasa x?? I should put the json file in there.

app_1              | /app/rasa_sdk/utils.py:159: UserWarning: Your versions of rasa and rasa_sdk might not be compatible. You are currently running rasa version 1.10.0 and rasa_sdk version 2.0.0a1.
app_1              | To ensure compatibility use the same version for both, modulo the last number, i.e. using version A.B.x the numbers A and B should be identical for both rasa and rasa_sdk.
app_1              |   f"Your versions of rasa and "
app_1              | Exception occurred while handling uri: 'http://app:5055/webhook'
app_1              | Traceback (most recent call last):
app_1              |   File "/opt/venv/lib/python3.7/site-packages/sanic/app.py", line 976, in handle_request
app_1              |     response = await response
app_1              |   File "/app/rasa_sdk/endpoint.py", line 102, in webhook
app_1              |     result = await executor.run(action_call)
app_1              |   File "/app/rasa_sdk/executor.py", line 386, in run
app_1              |     events = action(dispatcher, tracker, domain)
app_1              |   File "/app/actions/actions.py", line 133, in run
app_1              |     '/etc/rasa/actions/credentials.json', SCOPES)
app_1              |   File "/opt/venv/lib/python3.7/site-packages/google_auth_oauthlib/flow.py", line 196, in from_client_secrets_file
app_1              |     with open(client_secrets_file, 'r') as json_file:
app_1              | FileNotFoundError: [Errno 2] No such file or directory: '/etc/rasa/actions/credentials.json'
rasa-production_1  | 2020-08-03 04:14:41 ERROR    rasa.core.processor  - Encountered an exception while running action 'action_create_event'. Bot will continue, but the actions events are lost. Please check the logs of your action server for more information.

thanks so much!!

Version: Rasa X 0.29.1

Does anyone can help :cry: it could be a very stupid question… but I really don’t know where should I put the credentials.json to.

Here is the code:

your help is much appreciated! :pray:

It sounds like your credentials.json is in the host filesystem under actions/credentials.json. If that’s the case, then it is mounted under /app/actions inside the container so your action code should find it at /app/actions/credentials.json.