I am facing below error while executing python azure function from VSCODE. I have checked bindings and all extension, looks good. Could you please let me know what may cause this issue? Any help would be appriciated.
KafkaMessageReceiver: kafkaTrigger
For detailed output, run func with --verbose flag.
[2022-10-13T10:35:27.277Z] Host lock lease acquired by instance ID '0000000000000000000000009936F7DD'.
[2022-10-13T10:35:27.826Z] Worker process started and initialized.
[2022-10-13T10:36:04.297Z] Executing 'Functions.KafkaMessageReceiver' (Reason='(null)', Id=40b8568c-8bca-46df-8c93-2f7012b0accd)
[2022-10-13T10:36:04.957Z] Executed 'Functions.KafkaMessageReceiver' (Failed, Id=40b8568c-8bca-46df-8c93-2f7012b0accd, Duration=838ms)
[2022-10-13T10:36:04.958Z] System.Private.CoreLib: Exception while executing function: Functions.KafkaMessageReceiver. System.Private.CoreLib: Result: Failure
Exception: AttributeError: 'str' object has no attribute 'type'
Stack: File "C:\Program Files\Microsoft\Azure Functions Core Tools\workers\python\3.9/WINDOWS/X64\azure_functions_worker\dispatcher.py", line 388, in _handle__invocation_request
args[pb.name] = bindings.from_incoming_proto(
File "C:\Program Files\Microsoft\Azure Functions Core Tools\workers\python\3.9/WINDOWS/X64\azure_functions_worker\bindings\meta.py", line 88, in from_incoming_proto
return binding.decode(datum, trigger_metadata=metadata)
File "C:\Program Files\Microsoft\Azure Functions Core Tools\workers\python\3.9/WINDOWS/X64\azure\functions\kafka.py", line 176, in
decode
return cls.decode_multiple_events(data, trigger_metadata)
File "C:\Program Files\Microsoft\Azure Functions Core Tools\workers\python\3.9/WINDOWS/X64\azure\functions\kafka.py", line 265, in
decode_multiple_events
key=cls._decode_typed_data(
File "C:\Program Files\Microsoft\Azure Functions Core Tools\workers\python\3.9/WINDOWS/X64\azure\functions\meta.py", line 126, in _decode_typed_data
data_type = data.type
.