Skip to content

API authentication not working in Python #37

@moqri

Description

@moqri

Error Message:
Exception: Failed to authenticate

Using the starter code:

from edison_client import EdisonClient, JobNames

client = EdisonClient(
    api_key=[my API code from my profile],
)

task_data = {
    "name": JobNames.LITERATURE,
    "query": "Which neglected diseases had a treatment developed by artificial intelligence?",
}

task_response = client.run_tasks_until_done(task_data)

Platform:
Linux, Python 3.11.6 | packaged by conda-forge | (main, Oct 3 2023, 10:40:35) [GCC 12.3.0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions