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
While importing standard IIS log files using import_logs.py, the following exception was thrown when processing one particular file:
Exception in thread Thread-4:
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/var/www/html/piwik/misc/log-analytics/import_logs.py", line 1864, in _run_bulk
self._record_hits(hits)
File "/var/www/html/piwik/misc/log-analytics/import_logs.py", line 2010, in _record_hits
'requests': [self._get_hit_args(hit) for hit in hits]
File "/var/www/html/piwik/misc/log-analytics/import_logs.py", line 2010, in <listcomp>
'requests': [self._get_hit_args(hit) for hit in hits]
File "/var/www/html/piwik/misc/log-analytics/import_logs.py", line 1971, in _get_hit_args
urllib.parse.quote(args['urlref'], '')
File "/usr/lib/python3.8/urllib/parse.py", line 853, in quote
string = string.encode(encoding, errors)
UnicodeEncodeError: 'utf-8' codec can't encode character '\udcbf' in position 0: surrogates not allowed
While importing standard IIS log files using
import_logs.py
, the following exception was thrown when processing one particular file:Expected Behavior
Log should be imported successfully.
Current Behavior
Exception above is thrown.
Possible Solution
Steps to Reproduce (for Bugs)
Context
This has only happened once, on one particular file. We worked around it by removing the file from the batch, and processing then continued as normal.
Please let me know if there is any other information you need.
Your Environment
CustomVariables (v4.0.1)
HidePasswordReset (v4.3.3)
IntranetGeoIP (v4.0.0)
LogViewer (v4.0.1)
LoginLdap (v4.4.0)
Provider (v4.0.3)
SecurityInfo (v4.0.2)
The text was updated successfully, but these errors were encountered: