# Rasa X version control with github error on discard changes

**URL:** <https://forum.rasa.com/t/rasa-x-version-control-with-github-error-on-discard-changes/39447>\
**Category:** \[Deprecated\] Rasa X Community Edition\
**Created:** [January 25, 2021, 4:55pm UTC](https://forum.rasa.com/t/rasa-x-version-control-with-github-error-on-discard-changes/39447 "2021-01-25T16:55:08Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![jbrix](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@jbrix](https://forum.rasa.com/u/jbrix)\
**Post date:** [January 25, 2021, 4:55pm UTC](https://forum.rasa.com/t/rasa-x-version-control-with-github-error-on-discard-changes/39447/1 "2021-01-25T16:55:08Z")

</div>

Hey there, I am using a server with Rasa X (V. 0.35.0) on it and I connected to my git repo. It loaded everything necessary and I am able to push my changes to git. But if I click on discard changes, I get a 404 Error and the status stays yellow. Furthermore if I chance the nlu.yml in my IDE and push it to my git repo, Rasa X does not see the changes - it stays green.

I already tried to restart the pods and disconnected and reconnected to the git repo.

This is my error-message

```
rasa-x_1 | Job "run_background_synchronization (trigger: cron[minute='*'], next run at: 2021-01-25 17:14:
00 UTC)" raised an exception
rasa-x_1 | Traceback (most recent call last):
rasa-x_1 | File "/usr/local/lib/python3.8/dist-packages/apscheduler/executors/base.py", line 125, in run_job
rasa-x_1 | retval = job.func(*job.args, **job.kwargs)
rasa-x_1 | File "/usr/local/lib/python3.8/dist-packages/rasax/community/services/integrated_version_con
trol/git_service.py", line 131, in run_background_synchronization
rasa-x_1 | loop.run_until_complete(git_service.synchronize_project(force_data_injection))
rasa-x_1 | File "uvloop/loop.pyx", line 1456, in uvloop.loop.Loop.run_until_complete
rasa-x_1 | File "/usr/local/lib/python3.8/dist-packages/rasax/community/services/integrated_version_con
trol/git_service.py", line 1114, in synchronize_project
rasa-x_1 | return await self._force_inject_latest_remote_changes()
rasa-x_1 | File "/usr/local/lib/python3.8/dist-packages/rasax/community/services/integrated_version_con
trol/git_service.py", line 1174, in _force_inject_latest_remote_changes
rasa-x_1 | await self._inject_data()
rasa-x_1 | File "/usr/local/lib/python3.8/dist-packages/rasax/community/services/integrated_version_con
trol/git_service.py", line 1146, in _inject_data
rasa-x_1 | await rasax.community.initialise.inject_files_from_disk(
rasa-x_1 | File "/usr/local/lib/python3.8/dist-packages/rasax/community/initialise.py", line 350, in in
ject_files_from_disk    
rasa-x_1 | inject_domain(
    rasa-x_1 | File "/usr/local/lib/python3.8/dist-packages/rasax/community/initialise.py", line 185, in in
    ject_domain
    rasa-x_1 | if not rasa.shared.core.domain.Domain.is_domain_file(
    rasa-x_1 | File "/usr/local/lib/python3.8/dist-packages/rasa/shared/core/domain.py", line 1582, in is_d
    omain_file
    rasa-x_1 | content = rasa.shared.utils.io.read_yaml_file(filename)
    rasa-x_1 | File "/usr/local/lib/python3.8/dist-packages/rasa/shared/utils/io.py", line 368, in read_yam
    l_file
    rasa-x_1 | return read_yaml(read_file(filename, DEFAULT_ENCODING))
    rasa-x_1 | File "/usr/local/lib/python3.8/dist-packages/rasa/shared/utils/io.py", line 349, in read_yam
    l
    rasa-x_1 | return yaml_parser.load(content) or {}
    rasa-x_1 | File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/main.py", line 343, in load
    rasa-x_1 | return constructor.get_single_data()
    rasa-x_1 | File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 113, in get_s
    ingle_data
    rasa-x_1 | return self.construct_document(node)
    rasa-x_1 | File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 123, in const
    ruct_document
    rasa-x_1 | for _dummy in generator:
    rasa-x_1 | File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 723, in const
    ruct_yaml_map
    rasa-x_1 | value = self.construct_mapping(node)
    rasa-x_1 | File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 440, in const
    ruct_mapping
    rasa-x_1 | return BaseConstructor.construct_mapping(self, node, deep=deep)
    rasa-x_1 | File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 255, in const
    ruct_mapping
    rasa-x_1 | value = self.construct_object(value_node, deep=deep)
    rasa-x_1 | File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 146, in const
    ruct_object
    rasa-x_1 | data = self.construct_non_recursive_object(node)
    rasa-x_1 | File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 181, in const
    ruct_non_recursive_object
    rasa-x_1 | data = constructor(self, node)
    rasa-x_1 | File "/usr/local/lib/python3.8/dist-packages/rasa/shared/utils/io.py", line 311, in env_var_
    constructor
    rasa-x_1 | raise ValueError(
    rasa-x_1 | ValueError: Error when trying to expand the environment variables in '${{ github.event_name ==
     'push' }}'. Please make sure to also set these environment variables: '['${{']'.
```

---

_[View the full topic](https://forum.rasa.com/t/rasa-x-version-control-with-github-error-on-discard-changes/39447)._
