Skip to content
This repository was archived by the owner on Sep 18, 2023. It is now read-only.
This repository was archived by the owner on Sep 18, 2023. It is now read-only.

AttributeError: 'NoneType' object has no attribute 'group' #202

Description

@ahmadperformve

I am using Windows 11 and have updated the poe-api module to Version: 0.4.17 but I am getting this error.

Traceback (most recent call last):
File "c:\Users\ThinkPad\Desktop\PerformVE\sentiment_analysis_api\Sentiment_Analysis_3\main.py", line 144, in
client = poe.Client(token)
^^^^^^^^^^^^^^^^^
File "C:\Users\ThinkPad\AppData\Local\Programs\Python\Python311\Lib\site-packages\poe.py", line 152, in init
self.connect_ws()
File "C:\Users\ThinkPad\AppData\Local\Programs\Python\Python311\Lib\site-packages\poe.py", line 405, in connect_ws
self.setup_connection()
File "C:\Users\ThinkPad\AppData\Local\Programs\Python\Python311\Lib\site-packages\poe.py", line 178, in setup_connection
self.next_data = self.get_next_data(overwrite_vars=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ThinkPad\AppData\Local\Programs\Python\Python311\Lib\site-packages\poe.py", line 226, in get_next_data
self.formkey = self.extract_formkey(r.text)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ThinkPad\AppData\Local\Programs\Python\Python311\Lib\site-packages\poe.py", line 203, in extract_formkey
script_text = re.search(script_regex, html).group(1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'group'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions