Skip to content

error with keyword "error" #80

Open

Description

@sysoutch

wit.send() returns false with text "I get this error message in epsxe: "Missing render texture extension!""
however this is totally fine "I get this problem in epsxe: "Missing render texture extension!"" (replacing "error" with "problem")
it's not a wit.ai issue, sentence is understood fine on their page and through curl.

It even fails when just writing a single word "error" ("err", "erro", "errror" <- all of them are fine, no issue here)

renamed the Entity from "errors" to "problems" - same issue.

my current dirty workaround: String messageRaw = event.getMessage().getContent().replaceAll("(?i)error", "errror");

Activity

  1. sysoutch commented on Dec 14, 2022

    @sysoutch
    Author

    could it be cause of line 76 in this script https://github.com/Clivern/wit-java/blob/master/src/main/java/com/clivern/wit/Wit.java where you are checking the response for "error"?

            if (this.response.equals("") || this.response.indexOf("error") > 0) {
                this.status = false;
            } else {
                this.status = true;
            }

    Edit: Can confirm, with uncommenting the 2nd if check, the error doesn't occur anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions