How do I get rid of this error?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By kakcalu13

I send data from Godot to Python3 through UDP using example

I get a ton of errors such as this:
E 0:00:06.349 put_packet: Condition "!peer_addr.is_valid()" is true. Returned: ERR_UNCONFIGURED

I kinda don’t need this as everything is working perfectly. How do I get rid of this error?

:bust_in_silhouette: Reply From: kakcalu13

Just move udp.put_packet(String(location).to_utf8()) out of the func _process() and that error will gone.