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

Error fetching nicehash_accounts_coordinator data: 'Response' object has no attribute 'reason' #11

Open
livello opened this issue Aug 9, 2021 · 4 comments

Comments

@livello
Copy link

livello commented Aug 9, 2021

HASS core-2021.8.4

Configuration

nicehash:
organization_id: elishome
api_key: ******************
api_secret: ***************
currency: EUR
balances: true # (default = false) - Enable balance sensors
rigs: true # (default = false) - Enable rig sensors
devices: true # (default = false) - Enable device sensors
payouts: true # (default = false) - Enable payout sensors`

Debug log

2021-08-09 14:27:00 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry UPnP/IGD for upnp
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 293, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File "/usr/src/homeassistant/homeassistant/components/upnp/init.py", line 90, in async_setup_entry
udn = entry.data[CONFIG_ENTRY_UDN]
KeyError: 'udn'
2021-08-09 14:27:00 ERROR (MainThread) [custom_components.nicehash.coordinators] Error fetching nicehash_accounts_coordinator data: 'Response' object has no attribute 'reason'
2021-08-09 14:27:00 ERROR (MainThread) [custom_components.nicehash] Unable to get NiceHash accounts
2021-08-09 14:27:00 ERROR (MainThread) [homeassistant.setup] Error during setup of component nicehash
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 249, in _async_setup_component
result = await task
File "/config/custom_components/nicehash/init.py", line 93, in async_setup
raise PlatformNotReady
homeassistant.exceptions.PlatformNotReady: None

@v00g100skr
Copy link

same problem with async_setup

@config-old
Copy link

@Meatballs1
Copy link

should be reason_phrase

@spoettin
Copy link

spoettin commented Apr 1, 2024

I got this error as well when I used my freshly generated API token. I realized afterwards that Nicehash wanted me to verify the new API token ... after verification of the API token (in my case via clicking a link in an email), the error message went away and integration started working.

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

5 participants