You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After running the docker image with correct settings :
WARNING: Published ports are discarded when using host network mode
2024-05-05 10:07:14,636 INFO Login to EcoFlow API https://api.ecoflow.com/auth/login
2024-05-05 10:07:15,447 ERROR Failed to extract key 'name' from response:
...
The text was updated successfully, but these errors were encountered:
After running the docker image with correct settings :
WARNING: Published ports are discarded when using host network mode 2024-05-05 10:07:14,636 INFO Login to EcoFlow API https://api.ecoflow.com/auth/login 2024-05-05 10:07:15,447 ERROR Failed to extract key 'name' from response: ...
After debugging I propose to modify the code here like this since the name is only used for one log entry:
try:
token=response["data"]["token"]
user_id=response["data"]["user"]["userId"]
user_name=response["data"]["user"]["name"]
exceptKeyErroraskey:
ifkey=="name":
log.warning(f"Failed to extract key {key} from response: {response}. Continuing anyway")
user_name="nickname not set in app"raiseException(f"Failed to extract key {key} from response: {response}")
After running the docker image with correct settings :
WARNING: Published ports are discarded when using host network mode
2024-05-05 10:07:14,636 INFO Login to EcoFlow API https://api.ecoflow.com/auth/login
2024-05-05 10:07:15,447 ERROR Failed to extract key 'name' from response:
...
The text was updated successfully, but these errors were encountered: