rdeepak2002 / reddit-place-script-2022

Script to draw an image onto r/place (https://www.reddit.com/r/place/)
909 stars 347 forks source link

Error when starting #330

Open ELPoupa opened 2 years ago

ELPoupa commented 2 years ago

Hi, when I start the software I get this error before closing itself. I use the latest version

http://image.noelshack.com/fichiers/2022/13/7/1649021358-fdzfzffz.png

Thanks in advance

Risewill23 commented 2 years ago

Try running the script on the latest latest version (Your script didn't match up with the latest version)

thoroc commented 2 years ago

This is happening in:

        if response.json()["data"] is None:
            waitTime = math.floor(
                response.json()["errors"][0]["extensions"]["nextAvailablePixelTs"]
            )
            logger.error(
                "Thread #{} : Failed placing pixel: rate limited", thread_index
            )
        else:
            waitTime = math.floor(
                response.json()["data"]["act"]["data"][0]["data"][
                    "nextAvailablePixelTimestamp"
                ]
            )
            logger.info("Thread #{} : Succeeded placing pixel", thread_index)
Risewill23 commented 2 years ago

I think its because there's no awaiting and the script didn't have time to get the response