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

'NoneType' object has no attribute 'strip' #299

Closed
Maurotb opened this issue Aug 23, 2019 · 12 comments · Fixed by #314
Closed

'NoneType' object has no attribute 'strip' #299

Maurotb opened this issue Aug 23, 2019 · 12 comments · Fixed by #314
Labels
alexapy Issue relates to the API bug Something isn't working

Comments

@Maurotb
Copy link

Maurotb commented Aug 23, 2019

Describe the bug
A clear and concise description of what the bug is.

After ugrade my homassistant (docker) to 0.97.2 and alexa_media to 2.0
when i click on "Please hit confirm to begin login attempt." i have

2019-08-23 14:28:35 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.1864377072] 'NoneType' object has no attribute 'strip'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 128, in handle_call_service
connection.context(msg),
File "/usr/src/homeassistant/homeassistant/core.py", line 1235, in async_call
await asyncio.shield(self._execute_service(handler, service_call))
File "/usr/src/homeassistant/homeassistant/core.py", line 1260, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/components/configurator/init.py", line 235, in async_handle_service_call
await self.hass.async_add_job(callback, call.data.get(ATTR_FIELDS, {}))
File "/config/custom_components/alexa_media/init.py", line 152, in configuration_callback
login, callback_data)
File "/config/custom_components/alexa_media/init.py", line 142, in setup_platform_callback
await login.login(data=callback_data)
File "/usr/local/lib/python3.7/site-packages/alexapy/alexalogin.py", line 327, in login
await self._process_page(await post_resp.text(), site)
File "/usr/local/lib/python3.7/site-packages/alexapy/alexalogin.py", line 372, in _process_page
find_links()
File "/usr/local/lib/python3.7/site-packages/alexapy/alexalogin.py", line 338, in find_links
string = link.string.strip()
AttributeError: 'NoneType' object has no attribute 'strip'

@felipemfa
Copy link

I had the same problem, I removed the alexa_media.xxxxxxxxxxxxx.com.pickle file, tried to reconfigure however unsuccessfully. I downgraded, reconfigured and then I upgraded, so it worked.

@Maurotb
Copy link
Author

Maurotb commented Aug 23, 2019

Ok thanks, downgrading to 1.4.0 , authenticate and upgrade now work...
But this is an issue...

@felipemfa
Copy link

certainly! just a tip to help until it is fixed ;)

@gemixsan
Copy link

have the same problem, how can I download version 1.4.0? thanks

@felipemfa
Copy link

I use the Community addon.
just change in the "Available versions"

@alandtse alandtse added alexapy Issue relates to the API bug Something isn't working labels Aug 23, 2019
@alandtse
Copy link
Owner

Thanks for reporting. We'll fix it.

@gemixsan

This comment has been minimized.

@alandtse

This comment has been minimized.

@gemixsan

This comment has been minimized.

@alandtse

This comment has been minimized.

@matteos1
Copy link

same problem

@alandtse
Copy link
Owner

FYI, we have a fix pushed into dev in alexapy if you want to manually copy the files over alexapy. Again this is for advanced users.

@alandtse alandtse mentioned this issue Aug 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alexapy Issue relates to the API bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants