inveniosoftware / inveniosoftware/invenio-cli
Some API calls use a different endpoint
- Dominant language
- Python
- Stars
- 14
- Forks
- 49
- PR merge metrics
- No merged PRs in 30d
Description
Me and @carmenmarcos00 noticed a quite strange bug while trying to deploy InvenioRDM on VM on a custom host:
- We started by installing InvenioRDM following the "local installation"
- We modified invenio.cfg as follows:
```
SITE_UI_URL = "https://"
SITE_API_URL = "https:///api"
APP_ALLOWED_HOSTS = [, '0.0.0.0', 'localhost']
```
- InvenioRDM is started with
```
invenio-cli run --host 0.0.0.0
```
(this is actually wrong, but it's for the purpose of triggering the bug)
InvenioRDM is then accessible on `https://` and every api call from the frontend seems to be working (so it seems to be using `SITE_API_URL` from invenio.cfg`)
However, some features (e.g. Publishing a Draft) trigger some API calls that are executed against `0.0.0.0` (so ignoring what we set in `invenio.cfg`), obviously failing with a generic errors (because the browser is not being executed from the VM itself), while the others are against .
I'm sure this also involves the main codebase and not only the cli one, but needs more investigating.
Contributor guide
Assessment
This issue has not been assessed yet.