Im facing the same problem but my code works my variable has the stt data but the terminal is filled with this error every time i use it after every while loop