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
Hey Florian - I had an issue with using munin-host.py. Since using urllib.request.urlopen() at line 312 under the VT API Requests, the response is in bytes and needs to be decoded or else an error "TypeErrorL the JSON object must be str, not 'bytes'" is given.
Currently
` response = urllib.request.urlopen('%s?%s' % (URLS[cat],
urllib.parse.urlencode(parameters)), context=ctx).read()
Hey Florian - I had an issue with using munin-host.py. Since using urllib.request.urlopen() at line 312 under the VT API Requests, the response is in bytes and needs to be decoded or else an error "TypeErrorL the JSON object must be str, not 'bytes'" is given.
Currently
` response = urllib.request.urlopen('%s?%s' % (URLS[cat],
urllib.parse.urlencode(parameters)), context=ctx).read()
`
Fix
` response = urllib.request.urlopen('%s?%s' % (URLS[cat],
urllib.parse.urlencode(parameters)), context=ctx).read()
`
The text was updated successfully, but these errors were encountered: