Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove learn method demo #9

Merged
merged 2 commits into from
Aug 23, 2023
Merged

Remove learn method demo #9

merged 2 commits into from
Aug 23, 2023

Conversation

juhoinkinen
Copy link
Member

The default demo usage

$ python3 annif_client.py

was crashing also in the learn step:

* Learning on a document
Traceback (most recent call last):
  File "annif_client.py", line 120, in <module>
    req = annif.learn(project_id='dummy-en', documents=documents)
  File "annif_client.py", line 60, in learn
    req.raise_for_status()
  File "/home/juhoi/git/Annif-client/venv/lib/python3.8/site-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://api.annif.org/v1/projects/dummy-en/learn

This is because the learn endpoint is denied by NGINX. Better to remove demoing of that method.

@juhoinkinen juhoinkinen added the bug Something isn't working label Aug 22, 2023
@juhoinkinen juhoinkinen merged commit 9b35db9 into master Aug 23, 2023
10 checks passed
@juhoinkinen juhoinkinen deleted the remove-learn-method-demo branch August 23, 2023 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant