I’m having the same error. It does work with ROS1 though.
For more context:
on AWS EC2 instance,
installed Isaac Sim and ROS2 Foxy and Moveit2 Foxy
Opened up Isaac Sim - MoveIt Tutorials, hit play,
Opened up a terminal, sourced ros2 setup.bash, and entered ros2 topic list. It did not show any of the topics.
Thought this was an EC2 instance problem, tested this on my local machine, same error.
Installed ROS1, and tested this with ROS1, and it worked. I was able to see all the topics by doing rostopic list.
I tried doing ROS_LOCAHOST_ONLY=1, but still same errors