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

please fix error #35

Open
yogizigova27 opened this issue Sep 15, 2024 · 0 comments
Open

please fix error #35

yogizigova27 opened this issue Sep 15, 2024 · 0 comments

Comments

@yogizigova27
Copy link

please fix Error in get_pvp_fight: 'data'

Traceback (most recent call last):

File "C:\Users\User\Downloads\MuskEmpireBot-main (1)\MuskEmpireBot-main\main.py", line 13, in
asyncio.run(main())
│ │ └ <function main at 0x000001D082E63E20>
│ └ <function run at 0x000001D082FA1D80>
└ <module 'asyncio' from 'C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\...

File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
│ │ └ <coroutine object main at 0x000001D087488F20>
│ └ <function BaseEventLoop.run_until_complete at 0x000001D0837ED900>

File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 636, in run_until_complete
self.run_forever()
│ └ <function ProactorEventLoop.run_forever at 0x000001D0838A52D0>

File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\windows_events.py", line 321, in run_forever
super().run_forever()

File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 603, in run_forever
self._run_once()
│ └ <function BaseEventLoop._run_once at 0x000001D0837EF370>

File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 1909, in _run_once
handle._run()
│ └ <function Handle._run at 0x000001D083756D40>
└ <Handle Task.task_wakeup()>

File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
│ │ │ │ │ └ <member '_args' of 'Handle' objects>
│ │ │ │ └ <Handle Task.task_wakeup()>
│ │ │ └ <member '_callback' of 'Handle' objects>
│ │ └ <Handle Task.task_wakeup()>
│ └ <member '_context' of 'Handle' objects>
└ <Handle Task.task_wakeup()>

File "C:\Users\User\Downloads\MuskEmpireBot-main (1)\MuskEmpireBot-main\bot\launcher.py", line 88, in run_bot_with_delay
await run_bot(tg_client=tg_client, proxy=proxy, additional_data=additional_data)
│ │ │ └ [{'User-Agent': 'Mozilla/5.0 (iPad; CPU OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/1...
│ │ └ None
│ └ <pyrogram.client.Client object at 0x000001D0874E7940>
└ <function run_bot at 0x000001D086E527A0>

File "C:\Users\User\Downloads\MuskEmpireBot-main (1)\MuskEmpireBot-main\bot\core\bot.py", line 421, in run_bot
await CryptoBot(tg_client=tg_client, additional_data=additional_data).run(proxy=proxy)
│ │ │ └ None
│ │ └ [{'User-Agent': 'Mozilla/5.0 (iPad; CPU OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/1...
│ └ <pyrogram.client.Client object at 0x000001D0874E7940>
└ <class 'bot.core.bot.CryptoBot'>

File "C:\Users\User\Downloads\MuskEmpireBot-main (1)\MuskEmpireBot-main\bot\core\bot.py", line 401, in run
await self.starting_pvp()
│ └ <function CryptoBot.starting_pvp at 0x000001D0874EC0D0>
└ <bot.core.bot.CryptoBot object at 0x000001D087504460>

File "C:\Users\User\Downloads\MuskEmpireBot-main (1)\MuskEmpireBot-main\bot\core\bot.py", line 214, in starting_pvp
await self._perform_pvp(
│ └ <function CryptoBot._perform_pvp at 0x000001D0874C7D90>
└ <bot.core.bot.CryptoBot object at 0x000001D087504460>

File "C:\Users\User\Downloads\MuskEmpireBot-main (1)\MuskEmpireBot-main\bot\core\bot.py", line 128, in _perform_pvp
response_json = await self.get_pvp_fight(json_body=json_data)
│ │ └ {'data': {'league': 'gold', 'strategy': 'aggressive'}}
│ └ <function CryptoBotApi.get_pvp_fight at 0x000001D0874C48B0>
└ <bot.core.bot.CryptoBot object at 0x000001D087504460>

File "C:\Users\User\Downloads\MuskEmpireBot-main (1)\MuskEmpireBot-main\bot\helper\utils.py", line 81, in wrapper
return await func(self, *args, **kwargs)
│ │ │ └ {'json_body': {'data': {'league': 'gold', 'strategy': 'aggressive'}}}
│ │ └ ()
│ └ <bot.core.bot.CryptoBot object at 0x000001D087504460>
└ <function CryptoBotApi.get_pvp_fight at 0x000001D0874C4940>

File "C:\Users\User\Downloads\MuskEmpireBot-main (1)\MuskEmpireBot-main\bot\helper\utils.py", line 59, in wrapper
return await func(self, response_json=response_data, **kwargs)
│ │ │ └ {'json_body': {'data': {'league': 'gold', 'strategy': 'aggressive'}}}
│ │ └ {'success': False, 'error': 'A new version of the app has been released. Please refresh the page to apply the update.'}
│ └ <bot.core.bot.CryptoBot object at 0x000001D087504460>
└ <function CryptoBotApi.get_pvp_fight at 0x000001D0874C5090>

File "C:\Users\User\Downloads\MuskEmpireBot-main (1)\MuskEmpireBot-main\bot\core\api.py", line 262, in get_pvp_fight
if response_json["data"].get("opponent"):
└ {'success': False, 'error': 'A new version of the app has been released. Please refresh the page to apply the update.'}

KeyError: 'data'

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

1 participant