Thunderbolt Ports Failing
I have a 2017 MacBook Pro 15" with four USB C/Thunderbolt ports. Yesterday it just quit unexpectedly. I could only get it to turn on for a short period of time before it would quit again (less than a minute). I was thinking the battery isn't taking enough of a charge to keep the computer running even though it was plugged into a power adapter. I decided to leave it plugged in overnight and see if I could get it to stay on. This morning I was able to power it up and it has kept running for several hours. It seems that the two on the right side have partially stopped working. The port at the back doesn't seem to work at all, it won't accept the power adapter to allow the laptop to charge will it recognize an external. The light on the external drive does not even light up. I am also unable to connect a second display using the Digital AV Multimedia Adapter to the back port.
The right front port will accept the power cable and shows the lightning bolt on the battery indicator, but won't mount an external drive nor does the second display work through that port. The two ports on the left seem to work without issue.
I suspect the reason why the laptop has kept running now is because I plugged the power adapter into the right front port (without realizing the issue) and it allowed the battery to charge overnight and is powering through the adapter.
I have had the Battery Service Recommended message for a while and now learning that perhaps the battery was covered under a recall for this model. Though not sure if it still applies and I don't know if that would even be causing the issue with the two ports on the right side.
I did make an appointment at an Apple Store to take it in when I didn't think it was able to even power on, I may keep that appointment to see if they can service the battery issue. Though I suspect any repair to the Thunderbolt ports won't be cheap.
MacBook Pro 15″, macOS 13.5