Skip to content

SpeechToTextV1.add_corpus() uses wrong http method (GET, should use POST) #207

@alexchao

Description

@alexchao

Currently, using add_corpus will break with a WatsonException: Unknown error error. This is due to the method using the wrong HTTP method (GET, instead of POST). The tests don't catch this because the assertion in test_custom_corpora only checks the number of requests made and not the details of those requests.

I have a patch that should be ready soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions