Open codewithraviteja opened 9 months ago
@droidmaniac31 Share your code at least , how can someone assume what is the issue without the code !
@droidmaniac31 Kindly share your code to debug the issue. Do mask your credentials and keys while sharing your code.
I think you are trying to print "ltp" using the callback function, but getting KeyError because "ltp" is sometimes not present in message. Try this:
ltp_value = message[0].get('ltp') # Use get to avoid KeyError if 'ltp' is not present
Hello, I am getting this error!
And also please explain how to retrieve ltp in a proper way