Skip to content

Update api_structure.py#101

Closed
levonyan021 wants to merge 1 commit intosocialwifi:masterfrom
levonyan021:patch-1
Closed

Update api_structure.py#101
levonyan021 wants to merge 1 commit intosocialwifi:masterfrom
levonyan021:patch-1

Conversation

@levonyan021
Copy link

Problem with information processing "routeros_api/api_structure.py" line 31

api.get_resource('/ip/dhcp-server/lease/').get()

DHCP Lease -> Active Host Name is 'User-�Š'

Error log:
File "/venv/lib/python3.12/site-packages/routeros_api/api_structure.py", line 31, in get_python_value
return bytes.decode()

Please accept this

Problem with information processing "routeros_api/api_structure.py" line 31

api.get_resource('/ip/dhcp-server/lease/').get()

DHCP Lease -> Active Host Name is 'User-�Š'

Error log:
  File "/venv/lib/python3.12/site-packages/routeros_api/api_structure.py", line 31, in get_python_value
    return bytes.decode()

Please accept this
@levonyan021
Copy link
Author

levonyan021 commented Jan 17, 2025

Screenshot 2025-01-17 175438
After this the value is saved as " User-�� ", and everything works without errors

@jgoclawski
Copy link
Member

Fixed in #104

@jgoclawski jgoclawski closed this Mar 7, 2025
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

Successfully merging this pull request may close these issues.

2 participants