Comments (7)
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.
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.
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.
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.
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.
Are you still having this issue?
from lichess-bot.
Please reopen this issue if you are still having problems.
from lichess-bot.
Related Issues (20)
- "301 Moved Permanently" when trying to upgrade to bot HOT 7
- Liches Variants HOT 7
- Backing off HOT 2
- EngineTerminatedError : Engine event loop dead HOT 2
- Illegal move handling - never ending game HOT 6
- Error when trying to start match: AttributeError: module 'chess.engine' has no attribute 'Opponent' HOT 2
- Error during correspondence games HOT 5
- Bot doesn't play the move supplied by the engine through UCI HOT 7
- What is the meaning of chess.engine.EngineTerminatedError: engine event loop dead? HOT 7
- info message pv parsing promotions HOT 2
- Engine isn't closed properly on invalid options HOT 1
- Problems creating a leela bot HOT 13
- Add tests for specific functions
- Improving type annotations HOT 2
- In FromPosition challenges: override selected UCI settings depending on the FEN HOT 8
- Question: Can one VM run two bots? HOT 6
- Add support for takeback requests HOT 1
- Endpoint /api/stream/event is rate limited. Waiting 0:01:00 seconds until next request. HOT 6
- OSError: [WinError 193] %1 is not a valid Win32 application HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lichess-bot.