Giter Site home page Giter Site logo

Comments (7)

MarkZH avatar MarkZH commented on June 10, 2024

The first error occurs when lichess-bot first tries to connect to lichess.org:

requests.exceptions.HTTPError: 502 Server Error: Bad Gateway for url: https://lichess.org/api/token/test

The 502 error indicates something went wrong when connecting to https://lichess.org. Can you access lichess.org through a web browser?

from lichess-bot.

MarkZH avatar MarkZH commented on June 10, 2024

Sorry for not replying for so long. I just noticed that the 502 error only happens in the recent.log file. In the old.log file, the problem is due to the greeting configuration.

greeting:
  hello: Hi! I'm {Wanda!}. Good luck! Type !help for a list of commands I can respond
    to.
  goodbye: Good game!
  hello_spectators: Hi! I'm {Wanda!}. Type !help for a list of commands I can respond
    to.
  goodbye_spectators: Thanks for watching!

First, the exclamation point needs to go outside the curly brackets: {Wanda}!. Next, instead of "Wanda", the name inside the curly bracket should be me. This variable will be filled in by the name of your bot's account.

from lichess-bot.

Lolzenrith avatar Lolzenrith commented on June 10, 2024

I actually just now came back, so I did what you told me, and I'm probably doing something wrong, but it's still not working.

+++ https://lichess.org/3S0Qe6Fp/black Blitz vs WandaBotPuzzles (1500?) lichess-bot.py:584
(3S0Qe6Fp)
INFO Backing off play_game(...) for 30.4s (ValueError: expected ':' after _common.py:105
conversion specifier)
old.log
recent.log

                         I think it might have to do with the _common.py file, supposedly on line 105? Not sure though. The greeting wont even show up, and I can indeed access lichess.

from lichess-bot.

MarkZH avatar MarkZH commented on June 10, 2024

According to the logs, the greeting section of your config file doesn't work. Replace the greeting section with this:

greeting:
  hello: Hi! I'm {me}! Good luck! Type !help for a list of commands I can respond
    to.
  goodbye: Good game!
  hello_spectators: Hi! I'm {me}! Type !help for a list of commands I can respond
    to.
  goodbye_spectators: Thanks for watching!

Notice that {Wanda!} has been replaced by {me}! with the exclamation point moved outside the curly braces.

from lichess-bot.

MarkZH avatar MarkZH commented on June 10, 2024

Another option: If you want your original message, delete the curly braces entirely.

greeting:
  hello: Hi! I'm Wanda! Good luck! Type !help for a list of commands I can respond
    to.
  goodbye: Good game!
  hello_spectators: Hi! I'm Wanda! Type !help for a list of commands I can respond
    to.
  goodbye_spectators: Thanks for watching!

from lichess-bot.

MarkZH avatar MarkZH commented on June 10, 2024

Are you still having this issue?

from lichess-bot.

MarkZH avatar MarkZH commented on June 10, 2024

Please reopen this issue if you are still having problems.

from lichess-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.