Git Product home page Git Product logo

Comments (4)

pwenker avatar pwenker commented on August 30, 2024 1

Hello everyone, sorry for the very late response!

I am developing a new simplified version of chessli with a graphical user interface.
Since I switch to the new https://github.com/lichess-org/berserk this issue will become obsolete.

from chessli.

maneeshsethi avatar maneeshsethi commented on August 30, 2024

I am also getting this error.

from chessli.

maneeshsethi avatar maneeshsethi commented on August 30, 2024

Anyone know a fix to this issue?

from chessli.

cyrillkuettel avatar cyrillkuettel commented on August 30, 2024

Also getting this error. (After running poetry update berserk which did ineed fix the previous error.


https://lichess.org/api#tag/Puzzles/operation/apiPuzzleActivity

Traceback (most recent call last):
  File "/opt/homebrew/lib/python3.11/site-packages/berserk/exceptions.py", line 63, in _catch_exception
    response.raise_for_status()
  File "/opt/homebrew/lib/python3.11/site-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://lichess.org/api/user/puzzle-activity

TL;DR; We're calling a deprecated method in berserk. Should be using Puzzles.get_puzzle_activity not the deprecated get_puzzle_activity

This is wrong (deprecated method in latest version of v0.12.8):

    def get_puzzle_activity(self, max=None):
        """Stream puzzle activity history starting with the most recent.

        :param int max: maximum number of entries to stream
        :return: puzzle activity history
        :rtype: iter
        """
- path = 'api/user//puzzle-activity'
+ path = 'api/user/puzzle/activity'
        params = {'max': max}
        return self._r.get(path, params=params, fmt=NDJSON, stream=True,
                           converter=models.PuzzleActivity.convert)

If you compare berserk/clients.py::get_puzzle_activity with the Lichess apiUserActivity Docs it is puzzle/activity

Side note:
This error can be reproduced by running:

poetry update berserk
chessli --user DrDrunkenstein tactics ankify --export-only

from chessli.

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.