Finding space boundary elements end point coordinates

Hello all,
I am trying to locate the endpoints of the walls bounding a list of spaces I have filtered.


I am not sure what my issue is with the error that I am getting. Any help would be appreciated. Also here is a screen shot of the custom node I am using in case the issue is with my output from the node.