Not sure if where the problem was as it does not appear to contact anything.
But definitely sloppy work. And an exterior connection to top it off. Electrical tape and exposed.
Seen too many of those in my years here... many stories. For instance at a major shopping mall that I cannot name, Xmas light strings wrapped around an exterior metal stair ramp with taped connections between strings. Total incompetence.