RogerioBlanco / PixelCanvasBot

A bot to pixelcanvas.io
63 stars 24 forks source link

Pixelcanvas might've changed their api again #88

Closed Yelinz closed 5 years ago

Yelinz commented 5 years ago
Traceback (most recent call last):
  File ".\main.py", line 103, in <module>
    main()
  File ".\main.py", line 84, in main
    bot.init()
  File "F:\stuff\PixelCanvasBot\src\bot.py", line 32, in init
    self.canvas = self.setup_canvas()
  File "F:\stuff\PixelCanvasBot\src\bot.py", line 98, in setup_canvas
    canvas.update(actual_x, actual_y, EnumColor.index(raw[index] >> 4))
IndexError: bytearray index out of range
Yelinz commented 5 years ago

Well actually i mightve just been banned.

Yelinz commented 5 years ago

Well it turns out the servers were just down for a few weeks

Qh0stM4N commented 5 years ago

@Yelinz Can you confirm whether it is still working? Now i can't follow because doesnt contribute to any pixart. If think that still not working pls reopen this issue.

Yelinz commented 5 years ago

I tried to use the bot and it didn't work, so i think the API/ Validation actually changed and the downtime was for those changes. The Error is still the same.

The Webpage actually throws 503 sometimes, so i'm still not sure, will test more over the next few days.

Yelinz commented 5 years ago

Seems like its just getting DDOS attacks or something in that area, the API/ Validation is still fine Bot still works. The only problem is that the server has a high frequency of outages. When you hit an 503 on the Webpage just assume its down from a DDOS.

Pr0phet-of-Fear commented 5 years ago

I just started getting this issue. Website works fine. I'm not banned, because I can draw manually on the website; but every time I run the bot I get the same exact error message as OP. Might have something to do with them changing things around for April Fools yesterday?

Yelinz commented 5 years ago

Same here on April 1st it worked, but now there is something wrong.

It is the same error as in the Original comment.

Yelinz commented 5 years ago

Light debugging revealed presumably the problem.

If we use ipdb and look into the bytearray it says this: bytearray(b'{"error":"FUCK YOU "}')

I am not joking.

Qh0stM4N commented 5 years ago

bytearray(b'{"error":"FUCK YOU "}')

I am not joking. @Yelinz You not, but @arkeros :)

RogerioBlanco commented 5 years ago

Arkeros changed the way that need to download the bigchunck. So you guys just need update the bot to work well.