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

NameError: name 'auth' is not defined #57

Open
andig opened this issue Nov 4, 2024 · 1 comment
Open

NameError: name 'auth' is not defined #57

andig opened this issue Nov 4, 2024 · 1 comment

Comments

@andig
Copy link

andig commented Nov 4, 2024

Using .env file I'm unable to connect:

2024-11-04 07:40:31,116:ERROR: No configuration file (config.ini) found in execution directory! Using environment variables.
2024-11-04 07:40:31,130:INFO: Authenticating with Zendure ...
2024-11-04 07:40:32,082:INFO: Getting device list ...
2024-11-04 07:40:32,535:INFO: []
2024-11-04 07:40:32,535:ERROR: Connecting to Zendure's MQTT broker failed!
Traceback (most recent call last):
  File "//solarflow-status.py", line 305, in zendure_mqtt_background_task
    auth = get_auth()
  File "//solarflow-status.py", line 298, in get_auth
    log.info(f'Zendure Auth: {auth}')
NameError: name 'auth' is not defined

This is using a Hyper 2000.

@andig
Copy link
Author

andig commented Nov 4, 2024

This might be the root cause:

2024-11-04 07:48:16,291:INFO: Getting device list ...
2024-11-04 07:48:16,738:DEBUG: https://app.zendure.tech:443 "POST /v2/productModule/device/queryDeviceListByConsumerId HTTP/11" 200 None
2024-11-04 07:48:16,739:INFO: []

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

1 participant