'Exception: Command 'command' was unsuccessful for 4 tries. Latest response: 'command'

I've created this simple tello code:

from djitellopy import Tello
tello = Tello()

tello.connect()
tello.takeoff()

tello.move_left(100)
tello.rotate_clockwise(90)
tello.move_forward(100)

tello.land()

However, every time I try to run the code, the drone light is yellow, even when I've connected to its wifi and I get this error:

Exception: Command 'command' was unsuccessful for 4 tries. Latest response: 'command'



Solution 1:[1]

What worked for me was to first connect to the app, I took off and landed with the ryze tello app, then tried the code again and it worked straight away.

Solution 2:[2]

I had the same problem.

Then I connected the app and there was a need to activate the drone through the app. After that, I could connect the PC to the drone and take off / land.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Tomerikoo
Solution 2 Sérgio Ildefonso