Skip to content

"Error 401 on request" error #37

Open

Description

@PolliSoft

I just built the non-Docker version of OMBI-bot for Telegram. However, when I run it I get the following error and I don't know how to troubleshoot it.

OMBI-Bot version 2.1. (Same error on master branch)
OMBI is v4.0.483.0.
My env file is:

OMBI_HOST=http://localhost:5000
OMBI_KEY=xyzombikeyxyz
OMBI_BOT_TOKEN=xyzbotkeyxyz
OMBI_BOT_NAME=@bot_name

java -jar c:\Utils\ombi-bot-2.1.jar -p c:\Utils\ombi-bot.env

[trace, com.bot4s.telegram.clients.ScalajHttpClient] REQUEST 1fce7bda-2d06-4982-918d-b573ed4cfb1e DeleteWebhook
[error, com.bot4s.telegram.clients.ScalajHttpClient] RESPONSE 1fce7bda-2d06-4982-918d-b573ed4cfb1e java.lang.RuntimeException: Error 401 on request
Exception in thread "main" java.lang.RuntimeException: Error 401 on request
at com.bot4s.telegram.clients.ScalajHttpClient.$anonfun$sendRequest$13(ScalajHttpClient.scala:107)
at scala.util.Success.$anonfun$map$1(Try.scala:251)
at scala.util.Success.map(Try.scala:209)
at scala.concurrent.Future.$anonfun$map$1(Future.scala:288)
at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:29)
at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:29)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:60)
at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(Unknown Source)
at java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source)
at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)

Activity

  1. StackTraceYo commented on Oct 16, 2020

    @StackTraceYo
    Owner

    @PolliSoft gonna try and reproduce it tonight

  2. daurpam commented on Nov 15, 2020

    @daurpam

    Hello, I've just installed the bot on v4 and seems to load well, @PolliSoft Did you try to remove "@" from your OMBI_BOT_NAME variable, I've seen this error the first time run in docker, and I don't use @ to name bot.
    Try it

  3. PolliSoft commented on Nov 16, 2020

    @PolliSoft
    Author

    Tried it now, same error.

  4. StackTraceYo commented on Nov 16, 2020

    @StackTraceYo
    Owner

    @PolliSoft does that happen on boot? or after you try and run a command?

  5. PolliSoft commented on Nov 17, 2020

    @PolliSoft
    Author

    On boot.

  6. StackTraceYo commented on Nov 17, 2020

    @StackTraceYo
    Owner

    that usually indicates either a wrong bot token/bot name or your other bot is still running

  7. PolliSoft commented on Nov 17, 2020

    @PolliSoft
    Author

    I got it to work. I want to call it a rookie mistake...
    I had to remove the comments "// " on each line of the .env file. I thought that the double back slashes escaped the explanation.
    When I see the pasted .env file I gave you, I feel really ashamed!!!

  8. StackTraceYo commented on Nov 17, 2020

    @StackTraceYo
    Owner

    no thats my fault. i will make a change to it so it ignores those

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

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions