Giter Site home page Giter Site logo

Comments (6)

ezhang7423 avatar ezhang7423 commented on June 10, 2024

Digging further, it seems like the code will call /api/stream/event several times in rapid succession:

https://lichess.org/api/stream/event None 15 True
[04/12/24 08:42:14] INFO     Next challenge will be created after 08:43:14 (0 challenges in last 24 hours)         matchmaking.py:292
<Response [200]> 200 
https://lichess.org/api/stream/event None 15 True
<Response [200]> 200 
https://lichess.org/api/stream/event None 15 True
<Response [200]> 200 
https://lichess.org/api/stream/event None 15 True
<Response [200]> 200 
https://lichess.org/api/stream/event None 15 True
<Response [200]> 200 
https://lichess.org/api/stream/event None 15 True

This happened within the course of a second...

from lichess-bot.

ezhang7423 avatar ezhang7423 commented on June 10, 2024

Another interesting note...this seems to happen because of a certain API token. When switching to a different API token, there is no issue...

from lichess-bot.

MarkZH avatar MarkZH commented on June 10, 2024

What scopes are on the two API tokens? Go to the API access tokens page in your bot's preferences on lichess to see a list. Label the lists to indicate which one causes problems and which doesn't.

from lichess-bot.

ezhang7423 avatar ezhang7423 commented on June 10, 2024

Both API tokens have the correct scopes - the API token that is currently not working was working just a few days ago. If you're open to it, I can DM you privately the API token to debug with.

from lichess-bot.

MarkZH avatar MarkZH commented on June 10, 2024

@ezhang7423 Sure, that will be useful. I'm m.z.h on the lichess discord server.

from lichess-bot.

MarkZH avatar MarkZH commented on June 10, 2024

Please reopen if the problem persists and you can provide more details.

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.