MehulKhanna / PokeGrinder

An Auto-Grinding Bot for PokéMeow with Slash Commands! With a free Captcha Solver!
MIT License
12 stars 6 forks source link

HTTP 400 Bad Request #20

Closed not-toto closed 11 months ago

not-toto commented 11 months ago
Starting sessions...
 error while opening connection, websocket: close 4004: Authentication failed.
totoyum error while unmarshalling application command index, json: cannot unmarshal number into Go struct field .application_commands.options.choices.value of type string
<mydiscordusername>#0 has started grinding!
PokeGrinder is running, press CTRL+C to exit!
HTTP 400 Bad Request, {"message": "Invalid Form Body", "code": 50035, "errors": {"application_id": {"_errors": [{"code": "NUMBER_TYPE_COERCE", "message": "Value \"\" is not snowflake."}]}}}
HTTP 400 Bad Request, {"message": "Invalid Form Body", "code": 50035, "errors": {"application_id": {"_errors": [{"code": "NUMBER_TYPE_COERCE", "message": "Value \"\" is not snowflake."}]}}}
HTTP 400 Bad Request, {"message": "Invalid Form Body", "code": 50035, "errors": {"application_id": {"_errors": [{"code": "NUMBER_TYPE_COERCE", "message": "Value \"\" is not snowflake."}]}}}
HTTP 400 Bad Request, {"message": "Invalid Form Body", "code": 50035, "errors": {"application_id": {"_errors": [{"code": "NUMBER_TYPE_COERCE", "message": "Value \"\" is not snowflake."}]}}}
HTTP 400 Bad Request, {"message": "Invalid Form Body", "code": 50035, "errors": {"application_id": {"_errors": [{"code": "NUMBER_TYPE_COERCE", "message": "Value \"\" is not snowflake."}]}}}
HTTP 400 Bad Request, {"message": "Invalid Form Body", "code": 50035, "errors": {"application_id": {"_errors": [{"code": "NUMBER_TYPE_COERCE", "message": "Value \"\" is not snowflake."}]}}}
HTTP 400 Bad Request, {"message": "Invalid Form Body", "code": 50035, "errors": {"application_id": {"_errors": [{"code": "NUMBER_TYPE_COERCE", "message": "Value \"\" is not snowflake."}]}}}
^CHTTP 400 Bad Request, {"message": "Invalid Form Body", "code": 50035, "errors": {"application_id": {"_errors": [{"code": "NUMBER_TYPE_COERCE", "message": "Value \"\" is not snowflake."}]}}}

Hello, I am getting the above error whenever I try to execute the file. This happens on both windows and linux.

MehulKhanna commented 11 months ago
Starting sessions...
 error while opening connection, websocket: close 4004: Authentication failed.
totoyum error while unmarshalling application command index, json: cannot unmarshal number into Go struct field .application_commands.options.choices.value of type string
<mydiscordusername>#0 has started grinding!
PokeGrinder is running, press CTRL+C to exit!
HTTP 400 Bad Request, {"message": "Invalid Form Body", "code": 50035, "errors": {"application_id": {"_errors": [{"code": "NUMBER_TYPE_COERCE", "message": "Value \"\" is not snowflake."}]}}}
HTTP 400 Bad Request, {"message": "Invalid Form Body", "code": 50035, "errors": {"application_id": {"_errors": [{"code": "NUMBER_TYPE_COERCE", "message": "Value \"\" is not snowflake."}]}}}
HTTP 400 Bad Request, {"message": "Invalid Form Body", "code": 50035, "errors": {"application_id": {"_errors": [{"code": "NUMBER_TYPE_COERCE", "message": "Value \"\" is not snowflake."}]}}}
HTTP 400 Bad Request, {"message": "Invalid Form Body", "code": 50035, "errors": {"application_id": {"_errors": [{"code": "NUMBER_TYPE_COERCE", "message": "Value \"\" is not snowflake."}]}}}
HTTP 400 Bad Request, {"message": "Invalid Form Body", "code": 50035, "errors": {"application_id": {"_errors": [{"code": "NUMBER_TYPE_COERCE", "message": "Value \"\" is not snowflake."}]}}}
HTTP 400 Bad Request, {"message": "Invalid Form Body", "code": 50035, "errors": {"application_id": {"_errors": [{"code": "NUMBER_TYPE_COERCE", "message": "Value \"\" is not snowflake."}]}}}
HTTP 400 Bad Request, {"message": "Invalid Form Body", "code": 50035, "errors": {"application_id": {"_errors": [{"code": "NUMBER_TYPE_COERCE", "message": "Value \"\" is not snowflake."}]}}}
^CHTTP 400 Bad Request, {"message": "Invalid Form Body", "code": 50035, "errors": {"application_id": {"_errors": [{"code": "NUMBER_TYPE_COERCE", "message": "Value \"\" is not snowflake."}]}}}

Hello, I am getting the above error whenever I try to execute the file. This happens on both windows and linux.

Can you share your config file? (Hiding the tokens). If you are grinding in a server with multiple bots, please try grinding in a server with only Pokemeow.

not-toto commented 11 months ago

  "Clients": [
    {
      "Token": "TOKEN",
      "ChannelID": "973161638758854680",
      "FishChannelID": "",
      "Hunting": true,
      "Fishing": false,
      "Balls": {
        "Common": "pb",
        "Uncommon": "pb",
        "Rare": "gb",
        "Super Rare": "ub",
        "Legendary": "mb",
        "Shiny": "mb",
        "Shiny Event": "mb",
        "Shiny Full-odds": "prb"
      },
      "FishBalls": {
        "Common": "pb",
        "Uncommon": "gb",
        "Rare": "ub",
        "Super Rare": "ub",
        "Legendary": "db",
        "Shiny": "mb",
        "Shiny Event": "mb",
        "Shiny Full-odds": "prb"
      },
      "AutoBuy": {
        "pb": 50,
        "gb": 25,
        "ub": 5,
        "mb": 0
      }
    },
    {
      "Token": "",
      "ChannelID": "",
      "FishChannelID": "",
      "Hunting": true,
      "Fishing": true,
      "Balls": {
        "Common": "pb",
        "Uncommon": "pb",
        "Rare": "gb",
        "Super Rare": "ub",
        "Legendary": "mb",
        "Shiny": "mb",
        "Shiny Event": "mb",
        "Shiny Full-odds": "prb"
      },
      "FishBalls": {
        "Common": "pb",
        "Uncommon": "gb",
        "Rare": "ub",
        "Super Rare": "ub",
        "Legendary": "db",
        "Shiny": "mb",
        "Shiny Event": "mb",
        "Shiny Full-odds": "prb"
      },
      "AutoBuy": {
        "pb": 50,
        "gb": 25,
        "ub": 5,
        "mb": 1
      }
    }
  ]
}
MehulKhanna commented 11 months ago
  "Clients": [
    {
      "Token": "TOKEN",
      "ChannelID": "973161638758854680",
      "FishChannelID": "",
      "Hunting": true,
      "Fishing": false,
      "Balls": {
        "Common": "pb",
        "Uncommon": "pb",
        "Rare": "gb",
        "Super Rare": "ub",
        "Legendary": "mb",
        "Shiny": "mb",
        "Shiny Event": "mb",
        "Shiny Full-odds": "prb"
      },
      "FishBalls": {
        "Common": "pb",
        "Uncommon": "gb",
        "Rare": "ub",
        "Super Rare": "ub",
        "Legendary": "db",
        "Shiny": "mb",
        "Shiny Event": "mb",
        "Shiny Full-odds": "prb"
      },
      "AutoBuy": {
        "pb": 50,
        "gb": 25,
        "ub": 5,
        "mb": 0
      }
    },
    {
      "Token": "",
      "ChannelID": "",
      "FishChannelID": "",
      "Hunting": true,
      "Fishing": true,
      "Balls": {
        "Common": "pb",
        "Uncommon": "pb",
        "Rare": "gb",
        "Super Rare": "ub",
        "Legendary": "mb",
        "Shiny": "mb",
        "Shiny Event": "mb",
        "Shiny Full-odds": "prb"
      },
      "FishBalls": {
        "Common": "pb",
        "Uncommon": "gb",
        "Rare": "ub",
        "Super Rare": "ub",
        "Legendary": "db",
        "Shiny": "mb",
        "Shiny Event": "mb",
        "Shiny Full-odds": "prb"
      },
      "AutoBuy": {
        "pb": 50,
        "gb": 25,
        "ub": 5,
        "mb": 1
      }
    }
  ]
}

Please set Hunting and Fishing to false in the config for the second client. That will fix the authentication failed error as you are not providing a token for the second client. As for the HTTP errors please try grinding in a server with only Pokemeow bot and no other bots and let me know if it works.

not-toto commented 11 months ago

It works, thanks.