Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error upon first start #20

Open
xBounceIT opened this issue Dec 6, 2024 · 1 comment
Open

Error upon first start #20

xBounceIT opened this issue Dec 6, 2024 · 1 comment

Comments

@xBounceIT
Copy link

I copied the wg0.conf and docker compose and added my own account.json but getting this error upon first start of the rewards_home:

ERROR:root:
Traceback (most recent call last):
File "/app/main.py", line 39, in main
earned_points = executeBot(currentAccount, args)
File "/app/main.py", line 234, in executeBot
with Browser(mobile=False, account=currentAccount, args=args) as desktopBrowser:
~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/src/browser.py", line 41, in init
self.localeLang, self.localeGeo = self.getLanguageCountry(args.lang, args.geo)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
File "/app/src/browser.py", line 234, in getLanguageCountry
).alpha_2
^^^^^^^
AttributeError: 'NoneType' object has no attribute 'alpha_2'

@haq
Copy link
Owner

haq commented Dec 10, 2024

Seems like an upstream issue. Try manually setting the language.

docker run --rm -it \
  --shm-size 4g \
  -v "$PWD"/accounts.json:/app/accounts.json \
  ghcr.io/haq/microsoft-rewards-bot python3 main.py --visible --lang en

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants