GithubHelp home page GithubHelp logo

leagueofporo / capsulefarmerevolved Goto Github PK

View Code? Open in Web Editor NEW
827.0 9.0 133.0 1.23 MB

Automatically drops from lolesports.com and farm Esports Capsules

License: Other

Python 77.12% Dockerfile 1.19% HTML 21.69%
hacktoberfest esports leageuoflegends league-of-legends

capsulefarmerevolved's People

Contributors

14rovi avatar alepouna avatar djordykoert avatar hypixus avatar itsspirax avatar kindreduwu avatar leagueofporo avatar mazen-ghaleb avatar mgaulia avatar mj-gh avatar penguax avatar rektile avatar s-sizz avatar shdw9 avatar skribb11es avatar vitorsammarco avatar wiflow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

capsulefarmerevolved's Issues

[Bug]: Since update my Black Desert Online launcher wont open

kép_2023-02-10_175656207

What happened?

I downloaded the newest (v1.3) update, and the moment i opened the .exe file, my game closed and after that it said check my internet connection.. There was nothing wrong with my internet connection before, and to be sure i did the same on my other pc and the same thing happened.
I switched back to v1.2 and the game now opens, but seems like something is still wrong, because i cant update the game via launcher...

What should happen?

Open the game, and the upadater should work.

Capsule Farmer Version

v1.3

Operating System

Windows 10

Operating System Version

No response

Relevant log output

No response

Notes

No response

My issue is not a question

  • I acknowledge that this issue is not a question or feature request.

Docker image fails to build on arm based devices

Hi

This tool can be run 24/7 on a raspberry pi to avoid having to keep the pc on to farm drops, when building the docker image on a Raspberry pi, the build fails since the image being pulled, python:3.10-slim, is only compatible with x86 machines

To fix this, i have changed to python:3.10-slim-buster, and everything works fine after that

Maybe adding a note on the docker instructions to let people know of this possibility and what to do in that case would be nice
Also i would suggest running the container with the following command instead:
docker run -it --restart unless-stopped -d -v /path/to/config.yaml:/config/config.yaml capsulefarmerevolved
so that the container will automatically restart on device reboot.

[Bug] Docker README instructions have conflicting options

[9:26:32] Φ docker run -it --rm --restart unless-stopped --name CapsuleFarmer -d -v CapsuleFarmerEvolved/config.yaml:/config/config.yaml leagueofporo/capsulefarmer:master
docker: Conflicting options: --restart and --rm.
See 'docker run --help'.

character " in password

All my accounts work fine except one with a " in the password. I can't even start the exe if its added to the config.yaml. Any workaround besides changing the password?

Login FAILED everytime i try to connect

So the bot was working perfectly without any problem but i wanted to transfer it to my home VSP, and when i try to run it, i just get the Login FAILED error even tho my logs are written properly.

I tried restarting the script on my AWS VPS but it now says the same thing Login FAILED any idea?

[Bug]:

What happened?

Program ran for a couple minutes seemed fine. Just shuts down randomly. Sometimes after a long period but no idea why

What should happen?

Program keeps running until I shut it down...?

Capsule Farmer Version

latest

Operating System

Windows 10

Operating System Version

No response

Relevant log output

No response

Notes

No response

My issue is not a question

  • I acknowledge that this issue is not a question or feature request.

Can I run it on a external server

So I was wondering if running this tool on a server an not on my computer will get me banned.
I guess it would be more efficient since I will not have to keep my computer running

[Feature] Refactor file structure

The project currently has a lot of files that are generally unorganized and messy. They make sense due to proper naming by Poro but we should organize things a little.

Proposing this file structure:

.github/
src/
   # Contains the Python files (Config.py, FarmThread.py, etc) and the pip files (if possible), poro icon, any sound files, etc
config/ 
   # Contains config.json / config.yaml and the 'bestStreams.txt' 
setup/ 
   # Various pre-made setup scripts (for docker, deployment in other hosting services or OSes, as well as 'self build' tools) 
LICENSE
README.md
CONDUCT.md

This isn't the best structure, frankly the current is just fine, but I believe if we can organize the project better and with subfolders, developing and maintaining it will become a piece of cake.

This shouldn't affect the end user as they download the build version anyways, but rather developers that wish to jump in the project, so it's definitely beneficial!

[Bug]: Raspberry Docker installation failed? No Docker console output

What happened?

I tryed to run the docker command and wanted to see the console output

Console output

What should happen?

It should show me the output of docker. Now I don't know if the farmer is running or not

Capsule Farmer Version

Latest I guess because the docker command was used (1.2)

Operating System

Other (Non Windows are not natively supported)

Operating System Version

Debian GNU/Linux 11 (bullseye) - Linux/arm64/v8 running on raspberry pi 3

Relevant log output

No response

Notes

Before I did use the local installed version that I needed to self compile. That did take ages but it was running fine.

My issue is not a question

  • I acknowledge that this issue is not a question or feature request.

[Suggestion]: WebHook improvements

What is your idea?

So the WebHook as it is now is pretty cool. But getting a notification for EVERY Account is pretty annoying and maybe not optimal. Especially if you got like 5 accounts active.

What should happen?

Maybe after a drop wait a little for all accounts to update then only send ONE notification with the info added which of the accounts all got it.
Maybe this could be configurable aswell.

My request is not a question

  • I acknowledge that this issue is not a question or a bug request.

[Bug]: 'Last drop: N/A' & 'Drop: 0' - No data after getting a drop.

What happened?

Heartbeat is refreshing normally, ~every minute. At the latest drop (CBLOL) tested it and checked lolesports.com, I got the reward.
'Works', but at the same time it's annoying to see no information about drops farmed and maybe don't even see that I didn't earn each reward but everyone else did.
Installed on VPS, ubuntu 20.04

What should happen?

Show the last time when a drop was farmed and how many since the Capsule Farmer Evolved was started.

Capsule Farmer Version

v1.1

Operating System

Other (Non Windows are not natively supported)

Operating System Version

Ubuntu 20.04

Relevant log output

-

Notes

The VPS was restarted multiple - and reinstalled 3x times.

My issue is not a question

  • I acknowledge that this issue is not a question or feature request.

Stuck on "enter 2fa code"

constantly asks for 2fa codes, sometimes cycles between login and live and then asks again for another code

[Enchantment]: Handle invalid config files

What is your idea?

There are cases were users will enter a bad/corrupt yaml file. Instead of just throwing the python error, lets give them a pretty message and a link to the config tool

What should happen?

As described above

My request is not a question

  • I acknowledge that this issue is not a question or a bug request.

[Bug]: Getting 2factor on my mail

What happened?

I am getting a 2factor code even tho I am logged in

What should happen?

I shouldn't receive 2factor code if I am logged in already

Capsule Farmer Version

v1.2

Operating System

Windows 11

Operating System Version

Version 22H2

Relevant log output

No response

Notes

No response

My issue is not a question

  • I acknowledge that this issue is not a question or feature request.

[Enchantment] Reference 'API token' for requests as a variable

There are various places in the code (and future PRs) that have a variable 'x-api-key' which seems to be a public key the website provides.

We should specify this key as a variable (potentially configurable as well) but it would be even better to have this variable be fetched dynamically when the program performs logins and session refresh, in the event it changes randomly during that period.

[Bug]: Randomly crashing after a few hours of use

What happened?

So I use the farmer while I'm away at school. I turn it on at 6:55 or 7am and around noon the farmer crashes and I don't get anymore drops.

What should happen?

The farmer shouldnt crash while nothing is being changed to it other than the passage of time

Capsule Farmer Version

v1.2

Operating System

Windows 10

Operating System Version

Windows 10 Home 21H2 Build 19044.2486

Relevant log output

I put the file in the notes!

Notes

I just want to know what the issue is since i would like for the farmer to run while im at school without any problems.
capsulefarmer-2023-02-06.log

My issue is not a question

  • I acknowledge that this issue is not a question or feature request.

[Suggestion]: Stability improvement via exception handling.

What is your idea?

Currently the exception handling within application causes a straight up failure whenever Riot API refuses to cooperate. Good example could be recent (few minutes ago actually) incident with servers being overloaded.
I believe it is of a critical priority to add proper exception handling to the project, so that there is no need for restarting batch scripts nor non-intuitive messages for majority of users.

Reasoning behind that is of a multiple kind:

  1. Proper exception handling results in actual, tangible stability improvement. The code should be capable of running in a constant loop, utilizing log as an eventual output of issues encountered, resulting in smoother user experience and no necessity for workarounds such as restarting scripts.
  2. Any sort of debugging is much simpler if logs contain properly handled messages Finding and understanding which part of code has caused a failure is not always the easiest, unless proper traceback is shown - and currently it is displayed only for main thread failures.
  3. Current state of application cannot handle any 403 response - which is what servers seem to default to in case of any internal problems - making the login loop without meaningful messages in logs for users. Even with debug=true all we get is 403 and FAILED in next line. Adding handling that would point to possible meaning of this error code would greatly decrease influx of users reporting "it dies" without ability to elaborate.

What should happen?

  1. The application has multitude of exception types that are all properly handled.
  2. Main thread is never crashing. If any errors occur, they should be thrown into log instead of breaking main loop.
  3. Without debugging turned on, users should get a message pointer to what could be an issue.
  4. With debugging turned on, in case of any exception logs should contain proper traceback to cause of the issue.

My request is not a question

  • I acknowledge that this issue is not a question or a bug request.

[Bug] Has to be manually restarted every few hours

What happened?

After a few hours it seems like you get locked out (403) and then the script doesn't know how to handle it. My uneducated guess is that it's a token that expires. I thought it might be rate-limiting but I'm only using a single account and it happens even if there's only a couple of matches going so that seems doubtful. From the logs it looks like it attempts to resend the request but just fails over and over for about 10 minutes until eventually it can't even log back in.

This happens a couple of times per day. A simple workaround might be to just restart the whole thing automatically if a 403 is detected since manually restarting fixes it.

What should happen?

Keeps working indefinitely.

Capsule Farmer Version

1.1

Operating System

Other (Non Windows are not natively supported)

Operating System Version

Arch Linux
Kernel 6.1.7-zen1-1-zen
Python 3.10.9

Running with pipenv run python ./main.py
If it's not happening with the release binary I guess it could be something on my end. But it appears to be networking related rather than anything on my machine.

Relevant log output

2023-02-04 03:35:18,618 ERROR: Error in thefeeltrain. The program will try to recover.
Traceback (most recent call last):
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/FarmThread.py", line 40, in run
    dropsAvailable = self.browser.sendWatchToLive()
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 177, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 215, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-04 03:35:18,619 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:35:22,961 ERROR: Error in thefeeltrain. The program will try to recover.
Traceback (most recent call last):
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/FarmThread.py", line 40, in run
    dropsAvailable = self.browser.sendWatchToLive()
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 177, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 215, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-04 03:35:22,961 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:35:26,498 ERROR: Error in thefeeltrain. The program will try to recover.
Traceback (most recent call last):
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/FarmThread.py", line 40, in run
    dropsAvailable = self.browser.sendWatchToLive()
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 177, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 215, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-04 03:35:26,498 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:35:30,871 ERROR: Error in thefeeltrain. The program will try to recover.
Traceback (most recent call last):
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/FarmThread.py", line 40, in run
    dropsAvailable = self.browser.sendWatchToLive()
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 177, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 215, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-04 03:35:30,871 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:35:36,044 ERROR: Error in thefeeltrain. The program will try to recover.
Traceback (most recent call last):
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/FarmThread.py", line 40, in run
    dropsAvailable = self.browser.sendWatchToLive()
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 177, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 215, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-04 03:35:36,044 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:35:43,338 ERROR: Error in thefeeltrain. The program will try to recover.
Traceback (most recent call last):
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/FarmThread.py", line 40, in run
    dropsAvailable = self.browser.sendWatchToLive()
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 177, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 215, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-04 03:35:43,338 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:35:51,427 ERROR: Error in thefeeltrain. The program will try to recover.
Traceback (most recent call last):
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/FarmThread.py", line 40, in run
    dropsAvailable = self.browser.sendWatchToLive()
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 177, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 215, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-04 03:35:51,427 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:36:02,176 ERROR: Error in thefeeltrain. The program will try to recover.
Traceback (most recent call last):
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/FarmThread.py", line 40, in run
    dropsAvailable = self.browser.sendWatchToLive()
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 177, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 215, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-04 03:36:02,176 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:36:14,407 ERROR: Error in thefeeltrain. The program will try to recover.
Traceback (most recent call last):
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/FarmThread.py", line 40, in run
    dropsAvailable = self.browser.sendWatchToLive()
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 177, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 215, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-04 03:36:14,407 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:36:27,336 ERROR: Error in thefeeltrain. The program will try to recover.
Traceback (most recent call last):
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/FarmThread.py", line 40, in run
    dropsAvailable = self.browser.sendWatchToLive()
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 177, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 215, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-04 03:36:27,336 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:36:40,765 ERROR: Error in thefeeltrain. The program will try to recover.
Traceback (most recent call last):
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/FarmThread.py", line 40, in run
    dropsAvailable = self.browser.sendWatchToLive()
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 177, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 215, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-04 03:36:40,765 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:36:53,791 ERROR: Error in thefeeltrain. The program will try to recover.
Traceback (most recent call last):
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/FarmThread.py", line 40, in run
    dropsAvailable = self.browser.sendWatchToLive()
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 177, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 215, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-04 03:36:53,791 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:37:06,974 ERROR: Error in thefeeltrain. The program will try to recover.
Traceback (most recent call last):
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/FarmThread.py", line 40, in run
    dropsAvailable = self.browser.sendWatchToLive()
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 177, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 215, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-04 03:37:06,974 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:37:20,565 ERROR: Error in thefeeltrain. The program will try to recover.
Traceback (most recent call last):
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/FarmThread.py", line 40, in run
    dropsAvailable = self.browser.sendWatchToLive()
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 177, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 215, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-04 03:37:20,566 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:37:33,138 ERROR: Error in thefeeltrain. The program will try to recover.
Traceback (most recent call last):
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/FarmThread.py", line 40, in run
    dropsAvailable = self.browser.sendWatchToLive()
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 177, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 215, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-04 03:37:33,138 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:37:45,243 ERROR: Error in thefeeltrain. The program will try to recover.
Traceback (most recent call last):
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/FarmThread.py", line 40, in run
    dropsAvailable = self.browser.sendWatchToLive()
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 177, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 215, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-04 03:37:45,243 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:37:58,575 ERROR: Error in thefeeltrain. The program will try to recover.
Traceback (most recent call last):
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/FarmThread.py", line 40, in run
    dropsAvailable = self.browser.sendWatchToLive()
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 177, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 215, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-04 03:37:58,575 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:38:11,538 ERROR: Error in thefeeltrain. The program will try to recover.
Traceback (most recent call last):
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/FarmThread.py", line 40, in run
    dropsAvailable = self.browser.sendWatchToLive()
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 177, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 215, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-04 03:38:11,538 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:38:24,802 ERROR: Error in thefeeltrain. The program will try to recover.
Traceback (most recent call last):
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/FarmThread.py", line 40, in run
    dropsAvailable = self.browser.sendWatchToLive()
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 177, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 215, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-04 03:38:24,802 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:38:37,838 ERROR: Error in thefeeltrain. The program will try to recover.
Traceback (most recent call last):
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/FarmThread.py", line 40, in run
    dropsAvailable = self.browser.sendWatchToLive()
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 177, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 215, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-04 03:38:37,838 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:38:50,797 ERROR: Error in thefeeltrain. The program will try to recover.
Traceback (most recent call last):
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/FarmThread.py", line 40, in run
    dropsAvailable = self.browser.sendWatchToLive()
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 177, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 215, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-04 03:38:50,797 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:39:03,492 ERROR: Error in thefeeltrain. The program will try to recover.
Traceback (most recent call last):
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/FarmThread.py", line 40, in run
    dropsAvailable = self.browser.sendWatchToLive()
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 177, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 215, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-04 03:39:03,492 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:39:15,729 ERROR: Error in thefeeltrain. The program will try to recover.
Traceback (most recent call last):
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/FarmThread.py", line 40, in run
    dropsAvailable = self.browser.sendWatchToLive()
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 177, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 215, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-04 03:39:15,729 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:39:28,489 ERROR: Error in thefeeltrain. The program will try to recover.
Traceback (most recent call last):
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/FarmThread.py", line 40, in run
    dropsAvailable = self.browser.sendWatchToLive()
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 177, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 215, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-04 03:39:28,489 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:39:41,460 ERROR: Error in thefeeltrain. The program will try to recover.
Traceback (most recent call last):
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/FarmThread.py", line 40, in run
    dropsAvailable = self.browser.sendWatchToLive()
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 177, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 215, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-04 03:39:41,460 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:39:54,180 ERROR: Error in thefeeltrain. The program will try to recover.
Traceback (most recent call last):
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/FarmThread.py", line 40, in run
    dropsAvailable = self.browser.sendWatchToLive()
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 177, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 215, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-04 03:39:54,180 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:40:07,599 ERROR: Error in thefeeltrain. The program will try to recover.
Traceback (most recent call last):
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/FarmThread.py", line 40, in run
    dropsAvailable = self.browser.sendWatchToLive()
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 177, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 215, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-04 03:40:07,599 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:42:22,544 ERROR: Error in thefeeltrain. The program will try to recover.
Traceback (most recent call last):
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/FarmThread.py", line 40, in run
    dropsAvailable = self.browser.sendWatchToLive()
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 177, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 215, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-04 03:42:22,545 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:42:30,257 ERROR: Error in thefeeltrain. The program will try to recover.
Traceback (most recent call last):
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/FarmThread.py", line 40, in run
    dropsAvailable = self.browser.sendWatchToLive()
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 177, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 215, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-04 03:42:30,257 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:42:43,377 ERROR: Error in thefeeltrain. The program will try to recover.
Traceback (most recent call last):
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/FarmThread.py", line 40, in run
    dropsAvailable = self.browser.sendWatchToLive()
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 177, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 215, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-04 03:42:43,377 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:42:55,492 ERROR: Error in thefeeltrain. The program will try to recover.
Traceback (most recent call last):
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/FarmThread.py", line 40, in run
    dropsAvailable = self.browser.sendWatchToLive()
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 177, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "/mnt/Blue/Linux/git/CapsuleFarmerEvolved/Browser.py", line 215, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-04 03:42:55,492 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:43:13,707 ERROR: Login for thefeeltrain FAILED!
2023-02-04 03:43:13,707 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:43:28,431 ERROR: Login for thefeeltrain FAILED!
2023-02-04 03:43:28,431 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:43:41,136 ERROR: Login for thefeeltrain FAILED!
2023-02-04 03:43:41,136 WARNING: Thread thefeeltrain has finished.
2023-02-04 03:43:41,136 ERROR: Maximum login retries reached for account thefeeltrain

My issue is not a question

  • I acknowledge that this issue is not a question or feature request.

Password character restriction

Hi, it seems that the EXE can't recognize certain special characters from the config file, here is an exemple:

lRm*Jc5g@G45!nK

As far as I know letters/numbers and dashes( - ) work correctly.

Here is my log when using special charaters:

2023-01-31 23:13:15,850 ERROR: Login for MainAccount FAILED!
2023-01-31 23:13:15,861 WARNING: Thread MainAccount has finished.
2023-01-31 23:13:27,273 ERROR: Login for MainAccount FAILED!
2023-01-31 23:13:27,273 WARNING: Thread MainAccount has finished.
2023-01-31 23:13:38,752 ERROR: Login for MainAccount FAILED!
2023-01-31 23:13:38,752 WARNING: Thread MainAccount has finished.
2023-01-31 23:13:38,752 ERROR: Maximum login retries reached for account MainAccount

windows7 support

hi...
python 3.10 dosent work on windows 7 ... only 3.8 and less
please solve this probleam

[Suggestion]: Add 'expected results' for the Installation guide

Hey

Could you please add what is 'expected' behavior for the steps in the Installation guide? For example, I'm running the .exe file, and it shows 'LOGIN' in green and closes after like 3 seconds later, and I don't know if I did something wrong, or is it working, or what is expected here.

[Suggestion]: Switch to the "old browser" mode when v1.2 gets stuck in login and live due to the 403 error

What is your idea?

This can be a new feature in the next version. Just open the old version with the browser when the farmer crashes. This way we don't miss out on drops. Today when it was crashing way too much, i had my tabs open manually. I got three drops but people who had farmer open only got two. Now i know it might be just me and other got unlucky and whatnot, but most of them in discord agreed. So even its for 20 minutes I dont mind having the browser open and when the farmer is stable again (for like 10 mins) it can close the browser. Please try to add 2FA to the new browser that it will open(which we can see like the old version) without having to give the code again when the browser opens (that is when the farmer crashes on 403)
Just a suggestion.

What should happen?

Simple, when it breaks open a browser like old times and do it the old fashioned way for like 10 minutes and then if it stabilizes go back to the new way. Try to add the 2fa too so we don't have to manually enter it again when the browser opens. And do add a notification to the webhook when the farmer has these error and is switching to browser mode and when it's going back to farming mode (closing the browser).

My request is not a question

  • I acknowledge that this issue is not a question or a bug request.

Program crashing when \ in password

I tried running a program with the right values, but it still crashed. After some digging, I found the problem.
In my password is a character backslash (\) this escapes the program, so it will crash.
I already resolved it for my self by escaping the escape (\\).

Error:
yaml.scanner.ScannerError: while scanning a double-quoted scalar in "./config.yaml", line 4, column 15 found unknown escape character 'm' in "./config.yaml", line 4, column 19

[Suggestion]: Add a uptime timer

What is your idea?

A timer which shows the time that the program has been running. Would be a fun QoL thing in my opinion.

What should happen?

Add a timer which shows time running

My request is not a question

  • I acknowledge that this issue is not a question or a bug request.

.Exe keeps Crashing

I'm currently on 2 accounts.
One account manages to login, other keeps failing.

After I left single account, it shows "Login" status, but crashes after around a minute.

Any ideas?

[Suggestion]: Discord integration

What is your idea?

Similar to the twitter bot poro has set up but locally. You could add another command on the config to forward the drops messages to one discord channel of your group. (A friends group or a larger community)

What should happen?

Using webhooks from discord, something like:

You got one drop from "X League" on time "X"

Optionaly you could add your own discord tag as another variable, so the message above tags you when there is a drop for the notification sound.

My request is not a question

  • I acknowledge that this issue is not a question or a bug request.

[Bug]: Program crashes

What happened?

I've got "/" in my password and I guess it's causing the bug

What should happen?

fix

Capsule Farmer Version

v1.1

Operating System

Windows 11

Operating System Version

No response

Relevant log output

No response

My issue is not a question

  • I acknowledge that this issue is not a question or feature request.

[Suggestion]: Android Wiki page add more commands

What is your idea?

I find that the Github page that explains how to install CapsuleFarmerEvolved on Android is difficult for beginners who have no prior programming knowledge.

What should happen?

Between steps 5 and 6, you need to add
Move to the config file: cd CapsuleFarmerEvolved/config
and before step 7, add
Now move to the src file: cd CapsuleFarmerEvolved/src

My request is not a question

  • I acknowledge that this issue is not a question or a bug request.

[Suggestion]: Sound Notification

What is your idea?

I was inspired by suggestion of sound notification of drop (as suggested by TimCZE) to suggest a sound whenever status changes such as going from "Live" to "Login"/"Wait" or waiting for 2FA. This can be done by user input from the config.yaml file too by having another flag than drop notification.

Also, I would like to suggest to add in .gitignore logs and sessions folder as well as the config.yaml (it can be generated now from the webpage).

What should happen?

  • Sound Notification Example:
    image

My request is not a question

  • I acknowledge that this issue is not a question or a bug request.

[Suggestion]: Display what stream the last drop came from

What is your idea?

This is a very minor thing but I personally, as well as a few others often open up the esports website to identify where the last drop came from.

Would be a nice QOL addition to have it be displayed inside the farmer.


Love what you do, stay awesome!

What should happen?

An additional column besides the "Last drop" column; either on left or right to be added.
Elsewhere is fine too.

With title "Drop source/origin"

displaying what stream the latest drop originated from.

My request is not a question

  • I acknowledge that this issue is not a question or a bug request.

Add verifyable pgp signature to binary releases/ Add checksums for downloads

Hi Poro,

as the project grows, at some point someone may try to distribute a malware version of the software. Two things could be done to somewhat reduce the risk of people getting tricked into downloading something different from your release:

  1. After compiling the binary calculate the checksum (md5, sha1, sha256) of it and publish it with the releases and in release notes, so that people can verify they downloaded the same file you produced.

  2. Sign the binaries with your pgp keys, so users can verify that you produced the build and not someone else that maybe got access to your github account [1]

Both verification steps should be added in the Readme to the install guide.

Of course this is for somewhat advanced users and results in more work for you, but maybe could save some people in the future.

[1] https://gist.github.com/cyphar/21a1b213901a0a0ec19764ac03646ebe

Traceback console error.

Did all the things I need to do, got this error:
Traceback (most recent call last):
File "D:\Capsule farmer V2\CapsuleFarmerEvolved-master\main.py", line 11, in
if browser.login(config.username, config.password):
File "D:\Capsule farmer V2\CapsuleFarmerEvolved-master\Browser.py", line 37, in login
if resJson.get("type", "") and resJson["response"].get("parameters", "") and resJson["response"]["parameters"].get("uri", ""):
KeyError: 'response'
Tried to fill the data in the config file, 0 success.

[Suggestion] Drop notification sound.

It would be cool if you could add sound when you get drop.
In the config you could add

sound: true / false
soundfile: "filename"

so the user can turn it on or off, or customize the sound.

[Suggestion]: Automatic restart after an error

What is your idea?

I have had the problem several times now that the bot had a login failed error after a few hours. The bot has therefore stopped working. I only saw the problem after a few hours because I run the bot on my Raspberry Pi and have therefore missed a few drops.
I never had such problems with the old bot.

Therefore, would it be possible for the Python script to restart automatically?

What should happen?

If it were possible in the programming, it would be good if the bot automatically restarted after every error.

My request is not a question

  • I acknowledge that this issue is not a question or a bug request.

Send 2FA codes one by one

Hi

I tried using multiple accounts using 2FA with the same email with the 2FA version and I noticed all 2FA codes arrived at exactly the same time to my inbox. This made it so I couldn't know which 2FA code was for which account.

Is it possible to send the first code for the first account then wait until you type the second one and the send the next and so forth?

Or could you add a delay between accounts so that you get the codes in cronological order?

Thank you,
Zvamp

[Typo]: README

What happened?

In ReadME, there is the following typo "invrease" instead of increase
image

What should happen?

Switch it back to increase

Capsule Farmer Version

v1.2

Operating System

Windows 11

Operating System Version

No response

Relevant log output

No response

Notes

No response

My issue is not a question

  • I acknowledge that this issue is not a question or feature request.

The farmer just keep going to login

Once i Log inside the farmer it'll jump to Login and then LIVE status, after a while like 2-3 mins it goes again into login status and keep Looping I looked at the log and it spat out these continuesly

2023-02-03 19:44:28,489 WARNING: Thread Magixian has finished.
2023-02-03 19:44:37,854 ERROR: Error in Magixian. The program will try to recover.
Traceback (most recent call last):
File "FarmThread.py", line 40, in run
File "Browser.py", line 177, in sendWatchToLive
File "Browser.py", line 215, in __sendWatch
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-03 19:44:37,854 WARNING: Thread Magixian has finished.
2023-02-03 19:44:47,466 ERROR: Error in Magixian. The program will try to recover.
Traceback (most recent call last):
File "FarmThread.py", line 40, in run
File "Browser.py", line 177, in sendWatchToLive
File "Browser.py", line 215, in __sendWatch
StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-03 19:44:47,467 WARNING: Thread Magixian has finished.

[Bug]: All non 2fa accounts stop working even if one 2fa account requests a code

What happened?

As the title says.
image

What should happen?

to not do that.

Capsule Farmer Version

v1.2

Operating System

Windows 10

Operating System Version

Windows 10 Pro | 10.0.1.19045 BUILD 19045

Relevant log output

2023-02-07 19:14:29,397 ERROR: Error in gf. The program will try to recover.
Traceback (most recent call last):
  File "D:\Programs\Lol capsule farmer\CapsuleFarmerEvolved-1.2\FarmThread.py", line 41, in run
    self.browser.sendWatchToLive()
  File "D:\Programs\Lol capsule farmer\CapsuleFarmerEvolved-1.2\Browser.py", line 172, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "D:\Programs\Lol capsule farmer\CapsuleFarmerEvolved-1.2\Browser.py", line 221, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
Exceptions.StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-07 19:14:30,394 WARNING: Thread gf has finished.
2023-02-07 19:14:32,407 INFO: Starting a thread for gf.
2023-02-07 19:14:32,424 INFO: Thread for gf was created.
2023-02-07 19:14:32,425 DEBUG: Starting new HTTPS connection (1): login.leagueoflegends.com:443
2023-02-07 19:14:32,730 DEBUG: https://login.leagueoflegends.com:443 "GET /?redirect_uri=https://lolesports.com/&lang=en HTTP/1.1" 302 0
2023-02-07 19:14:32,732 DEBUG: Starting new HTTPS connection (1): auth.riotgames.com:443
2023-02-07 19:14:32,898 DEBUG: https://auth.riotgames.com:443 "GET /authorize?client_id=rso-web-client-prod&redirect_uri=https%3A%2F%2Flogin.leagueoflegends.com%2Foauth2-callback&scope=openid&response_type=code&state=A2hBv0xNySLvBlGnPQEI_Wpn-Yt6IoFStEqT7vLBM7c&ui_locales=en HTTP/1.1" 303 None
2023-02-07 19:14:32,943 DEBUG: https://auth.riotgames.com:443 "GET /login HTTP/1.1" 200 None
2023-02-07 19:14:34,016 DEBUG: https://auth.riotgames.com:443 "PUT /api/v1/authorization HTTP/1.1" 200 None
2023-02-07 19:14:35,101 DEBUG: https://login.leagueoflegends.com:443 "GET /oauth2-callback?code=ZWMxOklHdEhURlJpbmx5TmoxenlPWlZXb0EuMnR4YldwSDhNSTlmbWlfTGlpYThsQQ%3D%3D&iss=https%3A%2F%2Fauth.riotgames.com&state=A2hBv0xNySLvBlGnPQEI_Wpn-Yt6IoFStEqT7vLBM7c&session_state=mXU7AfiYmzAp6xpINhb0DfZvpVcRy2E6vxW65ABgLno._9qjlvuz7yoLLxXn1FN2aw HTTP/1.1" 200 None
2023-02-07 19:14:35,109 DEBUG: Starting new HTTPS connection (1): login.riotgames.com:443
2023-02-07 19:14:35,426 DEBUG: https://login.riotgames.com:443 "POST /sso/login HTTP/1.1" 200 None
2023-02-07 19:14:35,429 DEBUG: Starting new HTTPS connection (1): login.lolesports.com:443
2023-02-07 19:14:35,744 DEBUG: https://login.lolesports.com:443 "POST /sso/login HTTP/1.1" 200 None
2023-02-07 19:14:35,750 DEBUG: Starting new HTTPS connection (1): login.playvalorant.com:443
2023-02-07 19:14:36,054 DEBUG: https://login.playvalorant.com:443 "POST /sso/login HTTP/1.1" 200 None
2023-02-07 19:14:36,275 DEBUG: https://login.leagueoflegends.com:443 "POST /sso/callback HTTP/1.1" 302 90
2023-02-07 19:14:36,278 DEBUG: Starting new HTTPS connection (1): lolesports.com:443
2023-02-07 19:14:36,462 DEBUG: https://lolesports.com:443 "GET / HTTP/1.1" 200 None
2023-02-07 19:14:36,658 DEBUG: https://auth.riotgames.com:443 "GET /authorize?client_id=esports-rna-prod&redirect_uri=https://account.rewards.lolesports.com/v1/session/oauth-callback&response_type=code&scope=openid&prompt=none&state=https://lolesports.com/?memento=na.en_GB HTTP/1.1" 303 None
2023-02-07 19:14:36,662 DEBUG: Starting new HTTPS connection (1): account.rewards.lolesports.com:443
2023-02-07 19:14:37,300 DEBUG: https://account.rewards.lolesports.com:443 "GET /v1/session/oauth-callback?code=ZWMxOm5QUjY1Y1puZkVsVFJNWENHVzE2b0EuQThLbnJsX2VmWXNWRXNHWEU3bDJBQQ%3D%3D&iss=https%3A%2F%2Fauth.riotgames.com&state=https%3A%2F%2Flolesports.com%2F%3Fmemento%3Dna.en_GB&session_state=qNR2rZoqkPfew0qBH6_HUebjZgfD1SQ5sAFY5Ftnexg.ek5Om3-mgdGmrQ8ZolmS4w HTTP/1.1" 307 0
2023-02-07 19:14:37,338 DEBUG: https://lolesports.com:443 "GET / HTTP/1.1" 200 None
2023-02-07 19:14:37,370 DEBUG: https://account.rewards.lolesports.com:443 "GET /v1/session/token HTTP/1.1" 403 None
2023-02-07 19:14:37,372 DEBUG: Resetting dropped connection: account.rewards.lolesports.com
2023-02-07 19:14:37,483 DEBUG: https://account.rewards.lolesports.com:443 "GET /v1/session/clientconfig/rms HTTP/1.1" 403 None
2023-02-07 19:14:37,484 ERROR: Login for gf FAILED!
2023-02-07 19:14:39,491 WARNING: Thread gf has finished.
2023-02-07 19:14:39,491 DEBUG: Sleeping {account} before retrying login.
2023-02-07 19:14:40,844 DEBUG:  s until session expires.
2023-02-07 19:14:40,883 DEBUG: https://esports-api.lolesports.com:443 "GET /persisted/gw/getLive?hl=en-GB HTTP/1.1" 200 1760
2023-02-07 19:14:40,916 DEBUG: https://rex.rewards.lolesports.com:443 "POST /v1/events/watch HTTP/1.1" 403 None
2023-02-07 19:14:40,917 ERROR: Error in smurf. The program will try to recover.
Traceback (most recent call last):
  File "D:\Programs\Lol capsule farmer\CapsuleFarmerEvolved-1.2\FarmThread.py", line 41, in run
    self.browser.sendWatchToLive()
  File "D:\Programs\Lol capsule farmer\CapsuleFarmerEvolved-1.2\Browser.py", line 172, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "D:\Programs\Lol capsule farmer\CapsuleFarmerEvolved-1.2\Browser.py", line 221, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
Exceptions.StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-07 19:14:45,021 DEBUG:  s until session expires.
2023-02-07 19:14:45,060 DEBUG: https://esports-api.lolesports.com:443 "GET /persisted/gw/getLive?hl=en-GB HTTP/1.1" 200 1760
2023-02-07 19:14:45,092 DEBUG: https://rex.rewards.lolesports.com:443 "POST /v1/events/watch HTTP/1.1" 403 None
2023-02-07 19:14:45,092 ERROR: Error in main. The program will try to recover.
Traceback (most recent call last):
  File "D:\Programs\Lol capsule farmer\CapsuleFarmerEvolved-1.2\FarmThread.py", line 41, in run
    self.browser.sendWatchToLive()
  File "D:\Programs\Lol capsule farmer\CapsuleFarmerEvolved-1.2\Browser.py", line 172, in sendWatchToLive
    res = self.__sendWatch(self.liveMatches[tid])
  File "D:\Programs\Lol capsule farmer\CapsuleFarmerEvolved-1.2\Browser.py", line 221, in __sendWatch
    raise StatusCodeAssertException(201, res.status_code, res.request.url)
Exceptions.StatusCodeAssertException.StatusCodeAssertException: Received unexpected status code. Wanted 201 but got 403 in https://rex.rewards.lolesports.com/v1/events/watch
2023-02-07 19:15:09,503 INFO: Starting a thread for gf.
2023-02-07 19:15:09,520 INFO: Thread for gf was created.
2023-02-07 19:15:09,520 WARNING: Thread smurf has finished.
2023-02-07 19:15:09,520 WARNING: Thread main has finished.
2023-02-07 19:15:09,521 DEBUG: Starting new HTTPS connection (1): login.leagueoflegends.com:443
2023-02-07 19:15:09,784 DEBUG: https://login.leagueoflegends.com:443 "GET /?redirect_uri=https://lolesports.com/&lang=en HTTP/1.1" 302 0
2023-02-07 19:15:09,787 DEBUG: Starting new HTTPS connection (1): auth.riotgames.com:443
2023-02-07 19:15:09,963 DEBUG: https://auth.riotgames.com:443 "GET /authorize?client_id=rso-web-client-prod&redirect_uri=https%3A%2F%2Flogin.leagueoflegends.com%2Foauth2-callback&scope=openid&response_type=code&state=uAP4LplgR49BPD4j5im0vKwWG0AgD7MGBJ2MPZkrfPk&ui_locales=en HTTP/1.1" 303 None
2023-02-07 19:15:09,999 DEBUG: https://auth.riotgames.com:443 "GET /login HTTP/1.1" 200 None
2023-02-07 19:15:10,529 INFO: Starting a thread for main.
2023-02-07 19:15:10,548 INFO: Thread for main was created.
2023-02-07 19:15:10,548 INFO: Starting a thread for smurf.
2023-02-07 19:15:10,550 DEBUG: Starting new HTTPS connection (1): login.leagueoflegends.com:443
2023-02-07 19:15:10,569 INFO: Thread for smurf was created.
2023-02-07 19:15:10,571 DEBUG: Starting new HTTPS connection (1): login.leagueoflegends.com:443
2023-02-07 19:15:10,853 DEBUG: https://login.leagueoflegends.com:443 "GET /?redirect_uri=https://lolesports.com/&lang=en HTTP/1.1" 302 0
2023-02-07 19:15:10,855 DEBUG: Starting new HTTPS connection (1): auth.riotgames.com:443
2023-02-07 19:15:10,859 DEBUG: https://login.leagueoflegends.com:443 "GET /?redirect_uri=https://lolesports.com/&lang=en HTTP/1.1" 302 0
2023-02-07 19:15:10,861 DEBUG: Starting new HTTPS connection (1): auth.riotgames.com:443
2023-02-07 19:15:11,016 DEBUG: https://auth.riotgames.com:443 "GET /authorize?client_id=rso-web-client-prod&redirect_uri=https%3A%2F%2Flogin.leagueoflegends.com%2Foauth2-callback&scope=openid&response_type=code&state=n2QAF4_X9pufSWom1-biVb550XQ5U7Be9E7PTtWI0zY&ui_locales=en HTTP/1.1" 303 None
2023-02-07 19:15:11,025 DEBUG: https://auth.riotgames.com:443 "GET /authorize?client_id=rso-web-client-prod&redirect_uri=https%3A%2F%2Flogin.leagueoflegends.com%2Foauth2-callback&scope=openid&response_type=code&state=n2QAF4_X9pufSWom1-biVb550XQ5U7Be9E7PTtWI0zY&ui_locales=en HTTP/1.1" 303 None
2023-02-07 19:15:11,060 DEBUG: https://auth.riotgames.com:443 "GET /login HTTP/1.1" 200 None
2023-02-07 19:15:11,064 DEBUG: https://auth.riotgames.com:443 "PUT /api/v1/authorization HTTP/1.1" 200 None
2023-02-07 19:15:11,069 DEBUG: https://auth.riotgames.com:443 "GET /login HTTP/1.1" 200 None
2023-02-08 21:06:47,842 DEBUG: Resetting dropped connection: auth.riotgames.com
2023-02-08 21:06:48,129 DEBUG: https://auth.riotgames.com:443 "PUT /api/v1/authorization HTTP/1.1" 404 None
2023-02-08 21:06:48,135 ERROR: Login for gf FAILED!
2023-02-08 21:06:48,146 DEBUG: Resetting dropped connection: auth.riotgames.com
2023-02-08 21:06:49,271 WARNING: Thread gf has finished.
2023-02-08 21:06:49,344 DEBUG: https://auth.riotgames.com:443 "PUT /api/v1/authorization HTTP/1.1" 404 None
2023-02-08 21:06:49,346 ERROR: Login for smurf FAILED!
2023-02-08 21:06:49,348 DEBUG: Resetting dropped connection: auth.riotgames.com
2023-02-08 21:06:50,282 WARNING: Thread smurf has finished.
2023-02-08 21:06:50,283 DEBUG: Sleeping {account} before retrying login.
2023-02-08 21:06:50,492 DEBUG: https://auth.riotgames.com:443 "PUT /api/v1/authorization HTTP/1.1" 404 None
2023-02-08 21:06:50,493 ERROR: Login for main FAILED!
2023-02-08 21:07:20,290 INFO: Starting a thread for smurf.
2023-02-08 21:07:20,346 INFO: Thread for smurf was created.
2023-02-08 21:07:20,351 DEBUG: Sleeping {account} before retrying login.
2023-02-08 21:07:20,354 DEBUG: Starting new HTTPS connection (1): login.leagueoflegends.com:443
2023-02-08 21:07:20,681 DEBUG: https://login.leagueoflegends.com:443 "GET /?redirect_uri=https://lolesports.com/&lang=en HTTP/1.1" 302 0
2023-02-08 21:07:20,683 DEBUG: Starting new HTTPS connection (1): auth.riotgames.com:443
2023-02-08 21:07:20,858 DEBUG: https://auth.riotgames.com:443 "GET /authorize?client_id=rso-web-client-prod&redirect_uri=https%3A%2F%2Flogin.leagueoflegends.com%2Foauth2-callback&scope=openid&response_type=code&state=8Ab-aoAp1hRlCVF2dV_4PXJNOVQy1LMAGmf0Jmpxrsg&ui_locales=en HTTP/1.1" 303 None
2023-02-08 21:07:20,898 DEBUG: https://auth.riotgames.com:443 "GET /login HTTP/1.1" 200 None
2023-02-08 21:07:22,026 DEBUG: https://auth.riotgames.com:443 "PUT /api/v1/authorization HTTP/1.1" 200 None
2023-02-08 21:07:22,861 DEBUG: https://login.leagueoflegends.com:443 "GET /oauth2-callback?code=ZWMxOmVjQzU1V0g3blVXR3dBRHlCQjhoQUEuU1ViSjNQVEdyTHBpbU5DS19iMU9QUQ%3D%3D&iss=https%3A%2F%2Fauth.riotgames.com&state=8Ab-aoAp1hRlCVF2dV_4PXJNOVQy1LMAGmf0Jmpxrsg&session_state=cVLQpVPPxqpOgia-scv0NIb5cIgFz3EWpnzEN4IEJ-c.Dhcypt1eJzYRIsQ4hPdUOQ HTTP/1.1" 200 None
2023-02-08 21:07:22,886 DEBUG: Starting new HTTPS connection (1): login.riotgames.com:443
2023-02-08 21:07:23,260 DEBUG: https://login.riotgames.com:443 "POST /sso/login HTTP/1.1" 200 None
2023-02-08 21:07:23,263 DEBUG: Starting new HTTPS connection (1): login.lolesports.com:443
2023-02-08 21:07:23,648 DEBUG: https://login.lolesports.com:443 "POST /sso/login HTTP/1.1" 200 None
2023-02-08 21:07:23,651 DEBUG: Starting new HTTPS connection (1): login.playvalorant.com:443
2023-02-08 21:07:23,957 DEBUG: https://login.playvalorant.com:443 "POST /sso/login HTTP/1.1" 200 None
2023-02-08 21:07:24,191 DEBUG: https://login.leagueoflegends.com:443 "POST /sso/callback HTTP/1.1" 302 90
2023-02-08 21:07:24,194 DEBUG: Starting new HTTPS connection (1): lolesports.com:443
2023-02-08 21:07:24,363 DEBUG: https://lolesports.com:443 "GET / HTTP/1.1" 200 None
2023-02-08 21:07:24,548 DEBUG: https://auth.riotgames.com:443 "GET /authorize?client_id=esports-rna-prod&redirect_uri=https://account.rewards.lolesports.com/v1/session/oauth-callback&response_type=code&scope=openid&prompt=none&state=https://lolesports.com/?memento=na.en_GB HTTP/1.1" 303 None
2023-02-08 21:07:24,551 DEBUG: Starting new HTTPS connection (1): account.rewards.lolesports.com:443
2023-02-08 21:07:25,144 DEBUG: https://account.rewards.lolesports.com:443 "GET /v1/session/oauth-callback?code=ZWMxOmY1NnRMeFRzc1czUnFnNExIMzhhdGcuM1Q0WVJnZGdYZTJDczdCWUFOcXB4Zw%3D%3D&iss=https%3A%2F%2Fauth.riotgames.com&state=https%3A%2F%2Flolesports.com%2F%3Fmemento%3Dna.en_GB&session_state=6CKoJbUMkZCmuHP1zHwYcy68c8DfY2lcLoRNAquQYhI.TadUCqR0Yq5jpZ7bj4LdKw HTTP/1.1" 307 0

Notes

Drink water, stay hydrated!

My issue is not a question

  • I acknowledge that this issue is not a question or feature request.

[Bug]: HTML error 200 when in directory with special characters

What happened?

browser thread fails authorization with error code 200 when running from a folder with special characters

Capture_decran_20230204_153418

![Capture_decran_18](https://user-images.githubusercontent.com/65429733/216786161-78407a5a-6e36-4aac-9093-7fa2fbc98544.png)

Fixed when moving it out of that directory.

Capture_decran_20230204_184352

Although I've seen others have issues in the onedrive directory too.

What should happen?

Thread runs correctly.

Capsule Farmer Version

1.1

Operating System

Windows 11

Operating System Version

No response

Relevant log output

Images shown above, log file not directly provided by user.

Notes

No response

My issue is not a question

  • I acknowledge that this issue is not a question or feature request.

[Suggestion]: PufferPanel template

What is your idea?

As I believe many people do, I have a VPS/server (which includes also a raspi) with PufferPanel on. That allows me to monitor the CLI of my [game] servers, including various programs.
A template should not be hard to implement https://docs.pufferpanel.com/en/latest/templates/templates.html .

What should happen?

I think having an approach like that would help a lot of people, both using native and docker, instead of going for eg: a systemd service. It can restarts automatically if it crashes, boots up with the VPS/server and other approach that could drastically improve the quality of a service like this

My request is not a question

  • I acknowledge that this issue is not a question or a bug request.

Mac support

I know it's python and you cant just run python main.py with the source code. Most people might not know that so it would be pretty wholesome if you also made a mac version.

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.