This is a python error. You need to check if you input string contains characters that are not valid digits for a base 10 number. See simple explanation here: https://www.geeksforgeeks.org/how-to-fix-valueerror-invalid-literal-for-int-with-base-10-in-python/
Also: https://learn.microsoft.com/en-us/azure/iot-hub/troubleshoot-error-codes?source=recommendations
You can mark it 'Accept Answer' and 'Upvote' if this helped you
Regards,
Abiola