inveniosoftware / inveniosoftware/invenio-cli

Some API calls use a different endpoint

Open
#304 0 comments 0 reactions 0 assignees View on GitHub
bug
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.