Exception occurred during processing of request from ('172.17.17.61', 58050)
Traceback (most recent call last):
File "/usr/local/lib/python3.9/socketserver.py", line 683, in process_request_thread
self.finish_request(request, client_address)
File "/usr/local/lib/python3.9/socketserver.py", line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/home/appuser/app/srv/tcp_socket_server.py", line 17, in __init__
socketserver.BaseRequestHandler.__init__(self, request,
File "/usr/local/lib/python3.9/socketserver.py", line 747, in __init__
self.handle()
File "/home/appuser/app/srv/tcp_socket_server.py", line 29, in handle
cdrs, cdrdetails = parse_cdr(cdr)
File "/home/appuser/app/myhelpers/cdr.py", line 126, in parse_cdr
df_cdr_details["call_date"] = df_cdr["time_start"].apply(
File "/home/appuser/venv/lib/python3.9/site-packages/pandas/core/series.py", line 4626, in apply
return SeriesApply(self, func, convert_dtype, args, kwargs).apply()
File "/home/appuser/venv/lib/python3.9/site-packages/pandas/core/apply.py", line 1025, in apply
return self.apply_standard()
File "/home/appuser/venv/lib/python3.9/site-packages/pandas/core/apply.py", line 1076, in apply_standard
mapped = lib.map_infer(
File "pandas/_libs/lib.pyx", line 2834, in pandas._libs.lib.map_infer
File "/home/appuser/app/myhelpers/cdr.py", line 127, in <lambda>
lambda x: dt.date(dt.strptime(x, date_format))
TypeError: strptime() argument 1 must be str, not float
Exception when decoding cdr
in the .env i had set the info
to be
But when i changed to the same as the template it started working.
now i get,
Originally posted by @MrGlenn-tech in https://github.com/dorel14/3CX-Cdr-Tcp-Server/issues/16#issuecomment-2089815738