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

HA-Blueiris stopped working and "User input malformed" error #79

Closed
Dinth opened this issue Jul 30, 2020 · 15 comments
Closed

HA-Blueiris stopped working and "User input malformed" error #79

Dinth opened this issue Jul 30, 2020 · 15 comments
Labels
bug Something isn't working

Comments

@Dinth
Copy link

Dinth commented Jul 30, 2020

Hey. I had BlueIris component set up and working until few days ago it suddenly stopped working. I dont recall changing any configuration, definetely not in the component itself when it stopped working.

Request #1 to BlueIris (http://10.10.1.14:81) failed, Data: {'cmd': 'status', 'session': '44b0304d3b9a5dd765a0416a6d9d4159'}, Response: {'result': 'fail', 'session': '44b0304d3b9a5dd765a0416a6d9d4159'}
Request #0 to BlueIris (http://10.10.1.14:81) failed, Data: {'cmd': 'status', 'session': '029d1a7d690c5dab634f318443093f89'}, Response: {'result': 'fail', 'session': '029d1a7d690c5dab634f318443093f89'}
Request #1 to BlueIris (http://10.10.1.14:81) failed, Data: {'cmd': 'status', 'session': '029d1a7d690c5dab634f318443093f89'}, Response: {'result': 'fail', 'session': '029d1a7d690c5dab634f318443093f89'}
Request #0 to BlueIris (http://10.10.1.14:81) failed, Data: {'cmd': 'status', 'session': '02965ed76cb400db32e3431c7de93e38'}, Response: {'result': 'fail', 'session': '02965ed76cb400db32e3431c7de93e38'}
Request #1 to BlueIris (http://10.10.1.14:81) failed, Data: {'cmd': 'status', 'session': '02965ed76cb400db32e3431c7de93e38'}, Response: {'result': 'fail', 'session': '02965ed76cb400db32e3431c7de93e38'}
Request #1 to BlueIris (http://10.10.1.14:81) failed, Data: {'cmd': 'camlist', 'session': '13643a3d387661dd4377568049b2456e'}, Response: {'result': 'fail', 'session': '13643a3d387661dd4377568049b2456e'}
Request #0 to BlueIris (http://10.10.1.14:81) failed, Data: {'cmd': 'camlist', 'session': '682f0c1c473b111c05283b094b254397'}, Response: {'result': 'fail', 'session': '682f0c1c473b111c05283b094b254397'}
Request #1 to BlueIris (http://10.10.1.14:81) failed, Data: {'cmd': 'camlist', 'session': '682f0c1c473b111c05283b094b254397'}, Response: {'result': 'fail', 'session': '682f0c1c473b111c05283b094b254397'}
Request #0 to BlueIris (http://10.10.1.14:81) failed, Data: {'cmd': 'camlist', 'session': '3cfb5dfc55ff405b46d81f914c9841c1'}, Response: {'result': 'fail', 'session': '3cfb5dfc55ff405b46d81f914c9841c1'}
Request #1 to BlueIris (http://10.10.1.14:81) failed, Data: {'cmd': 'camlist', 'session': '3cfb5dfc55ff405b46d81f914c9841c1'}, Response: {'result': 'fail', 'session': '3cfb5dfc55ff405b46d81f914c9841c1'}

After that i have tried checking the component configuration, but noticed really weird behaviour. None of the dropdown menus can be opened (the ones where i can chose sensors), but most importantly, whenever i want to save changes im getting "User input malformed" error.

Screenshot 2020-07-30 at 22 11 35
Screenshot 2020-07-30 at 22 11 27

@Dinth Dinth changed the title User input malformed HA-Blueiris stopped working and "User input malformed" error Jul 30, 2020
@welbo97
Copy link

welbo97 commented Jul 31, 2020

Same problem here. I removed the integration and when I tried to reinstall fro HACS, it doesn't even show up in the repository list anymore. This started after a full server reboot, which included the BlueIris 5 Win10 vm. A HA restart got the repository added back into HACS. After adding the integration via configuration->integrations-> "+", and trying to log into BlueIris from the integration, this was in the logs:

2020-07-31 08:34:49 INFO (MainThread) [custom_components.blueiris.api.blue_iris_api] Initializing BlueIris
2020-07-31 08:34:49 INFO (MainThread) [custom_components.blueiris.api.blue_iris_api] Performing login
2020-07-31 08:34:49 INFO (MainThread) [custom_components.blueiris.api.blue_iris_api] Retrieving session ID
2020-07-31 08:34:50 WARNING (MainThread) [custom_components.blueiris.managers.config_flow_manager] Failed to access BlueIris Server (10.1.10.20)
2020-07-31 08:34:50 WARNING (MainThread) [custom_components.blueiris.config_flow] Cannot complete login
2020-07-31 08:34:50 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start
    resp = await task
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 39, in real_ip_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 73, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 127, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 129, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 145, in post
    return await super().post(request, flow_id)
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 60, in wrapper
    result = await method(view, request, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 106, in post
    result = await self._flow_mgr.async_configure(flow_id, data)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 153, in async_configure
    result = await self._async_handle_step(flow, cur_step["step_id"], user_input)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 201, in _async_handle_step
    result: Dict = await getattr(flow, method)(user_input)
  File "/config/custom_components/blueiris/config_flow.py", line 60, in async_step_user
    schema = await self._config_flow.get_default_data(new_user_input)
  File "/config/custom_components/blueiris/managers/config_flow_manager.py", line 116, in get_default_data
    config_data = await self._config_manager.get_basic_data(user_input)
  File "/config/custom_components/blueiris/managers/configuration_manager.py", line 65, in get_basic_data
    result.password
  File "/config/custom_components/blueiris/managers/password_manager.py", line 56, in decrypt
    decrypted = self.crypto.decrypt(data.encode()).decode()
  File "/usr/local/lib/python3.7/site-packages/cryptography/fernet.py", line 74, in decrypt
    timestamp, data = Fernet._get_unverified_token_data(token)
  File "/usr/local/lib/python3.7/site-packages/cryptography/fernet.py", line 92, in _get_unverified_token_data
    raise InvalidToken
cryptography.fernet.InvalidToken

And the error message: Unknown error occured, from the integration configuration flow.

@elad-bar
Copy link
Owner

please remove the integration and make sure you don't have .storage/.blueiris file,
afterwards, please restart the HA and try to add it once the HA fully started up

thanks

@welbo97
Copy link

welbo97 commented Jul 31, 2020

Removing the integration, removing the .storage/.blueiris file, restarting and re-adding the integration solved the problem for me.

@FuzzyMistborn
Copy link

Running into this now. Everything was working great. But then the cameras froze/wouldn't stream, so I tried to remove/readd and when I did I ran into the user input malformed error. Tried clearing out the .blueiris file and restarting several times, no luck.

@sdwilsh
Copy link

sdwilsh commented Aug 21, 2020

I'm also hitting this on a clean install of Home Assistant (and consequentially this integration).

@elad-bar
Copy link
Owner

It seems that the issue consisted with 3 different scenarios, first reported about lack of access to the server by @Dinth, was the issue fixed or still need me to investigate?
@welbo97 @FuzzyMistborn @sdwilsh are you still experiencing the same issue reported by @Dinth? If not, please open a separated issue

Thanks

@Dinth
Copy link
Author

Dinth commented Aug 29, 2020

Hi @elad-bar. I have removed the integration and addon (in HACS), manually removed .blueiris file, reinstalled the integration and tried to set it up, but im still getting "User input malformed" error

@elad-bar
Copy link
Owner

Please post the log after loading the HA with Debug log level for that component,
Based on that information I'll try to reproduce it

Thanks

@Dinth
Copy link
Author

Dinth commented Aug 29, 2020

Hi again. Actually, i have just tried to add it again, clicked "Reinstall" in HACS, double checked if .blueiris file is still absent, added integration and it worked. Im not sure why it was not working a week ago, but it definetely works now.
Thank you!

@Dinth Dinth closed this as completed Aug 29, 2020
@Dinth Dinth reopened this Aug 29, 2020
@Dinth
Copy link
Author

Dinth commented Aug 29, 2020

@welbo97 @FuzzyMistborn @sdwilsh can you please confirm if it works for you/try again if it doesnt?

@FuzzyMistborn
Copy link

Yes I got it working after trying again a bit later.

@elad-bar elad-bar added the bug Something isn't working label Sep 17, 2020
@dickeos
Copy link

dickeos commented May 31, 2022

Hello, I have just installed the BlueIris component on a clean HA install, and get this error message when logging in. I wnat to remove and try a reinstall as stated in this post but for the life of me I don't know where .storage/.blueiris file is. I am running on a x86 NUC, I think its running under Busybox

@kramttocs
Copy link
Collaborator

@dickeos
Take a look at this thread and see if it helps.
It lists a few ways to see the hidden folders
https://community.home-assistant.io/t/access-storage-folder/190186/18

@dickeos
Copy link

dickeos commented Jul 4, 2022

Thanks for responding. I have checked and the file does not exist, I have re installed but I still get "User input malformed: expected str for dictionary value @ data['port']"

I followed the install guide word for word.

Is there a specific version of BlueIris it needs to work with? I am using V5.5.1.12

@dickeos
Copy link

dickeos commented Jul 4, 2022

Figured it.... BI cant be on port 80. Used port 81 and all is well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants