Skip to content

cannot access local variable 'web_req' #80

@rafinha-dev

Description

@rafinha-dev

I'm having a truble to use telepathy. I'm using a virtual space with python to run, try many times with the phone number, and after the verification from telegram the script return that issue:

Server resent the older message xxxxxxxxxxxxxx, ignoring
[!] Performing basic scan
[-] Fetching details for durov...
Traceback (most recent call last):
File "/home/debian/Documents/telepathy_virtual2/bin/telepathy", line 8, in
sys.exit(cli())
^^^^^
File "/home/debian/Documents/telepathy_virtual2/lib/python3.11/site-packages/click/core.py", line 829, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/debian/Documents/telepathy_virtual2/lib/python3.11/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/debian/Documents/telepathy_virtual2/lib/python3.11/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/debian/Documents/telepathy_virtual2/lib/python3.11/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/debian/Documents/telepathy_virtual2/lib/python3.11/site-packages/telepathy/telepathy.py", line 1740, in cli
client.loop.run_until_complete(main())
File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/debian/Documents/telepathy_virtual2/lib/python3.11/site-packages/telepathy/telepathy.py", line 466, in main
group_description = web_req["group_description"]
^^^^^^^
UnboundLocalError: cannot access local variable 'web_req' where it is not associated with a value

Apparently this is a problem with the request response.I need some help to try to fix this problem.
I will try to use the script and another machine too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions