The Rasa X git integration was recently enhanced so that it is much easier. You no longer have to generate a key. The updated instructions are here.
From the Rasa X UI, select the button to connect to a repository then copy the generated key and add it to your git repo. Make sure to enable write access when you add the key.
i tried
when i click on connect to repository a window popup shows
u are connected to the repository: **git@github.com:vaseem-ml/medicare.git
but in the status bottom left hand corner it says you are not connected
an error shows in terminal
Exception occurred while handling uri: 'http://localhost:5002/api/projects/default/git_repositories/1/status'
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/sanic/app.py", line 976, in handle_request
response = await response
File "/usr/local/lib/python3.6/site-packages/rasax/community/api/decorators.py", line 205, in decorated_function
return await await_and_return_response(args, kwargs, request)
File "/usr/local/lib/python3.6/site-packages/rasax/community/api/decorators.py", line 135, in await_and_return_response
response = await response
File "/usr/local/lib/python3.6/site-packages/rasax/community/api/blueprints/git.py", line 152, in get_repository_status
repository_status = git_service.get_repository_status()
File "/usr/local/lib/python3.6/site-packages/rasax/community/services/integrated_version_control/git_service.py", line 741, in get_repository_status
is_remote_ahead = self.is_remote_branch_ahead()
File "/usr/local/lib/python3.6/site-packages/rasax/community/services/integrated_version_control/git_service.py", line 558, in is_remote_branch_ahead
self._fetch()
File "/usr/local/lib/python3.6/site-packages/rasax/community/services/integrated_version_control/git_service.py", line 146, in _fetch
self._repository.git.fetch()
AttributeError: 'NoneType' object has no attribute 'git'
Looks like Rasa X is having a problem connecting to your git repo. I would disconnect the repo and start over using the latest instructions and latest Rasa X release.
Could you share your solution? I have same issue with connecting a repo via Rasa X UI…
UPDATE: I’ve found that such error happens when rasa-x runs in “local mode”. Unfortunately rasa team removed appropriate LOCAL_MODE variable from their official docker composes (starting from version 0.28.x) and “forgot” mention how to deal with it…