Failed to subscribe to feature values while connecting to Bluetooth

When establishing a Bluetooth connection and subscribing to feature values, the log shows a subscription failure with the error: did fail to update notification state: The handle is invalid.

Failed to subscribe to feature values while connecting to Bluetooth
 
 
Q