Skip to content

"... Only TXT files are allowed." #206

Closed Answered by pmeier
lorenzo4519 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @lorenzo4519 👋

Could you run the following for me

$ python -c 'from ragna.core import PdfDocumentHandler; print(PdfDocumentHandler.is_available())'

If that is False something is wrong with your environment. If it is True however, could you run the following script when the UI (or just the API) is running and post the output

import httpx

client = httpx.Client(base_url="http://127.0.0.1:31476")
client.get("/").raise_for_status()

token = (
    client.post(
        "/token",
        data={
            "username": "ragna-206",
            "password": "ragna-206",
        },
    )
    .raise_for_status()
    .json()
)
client.headers["Authorization"] = f"Bearer {token}"

components = client.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by pmeier
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@pmeier
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants