What to check
Disconnect it if safe and stop charging. Note which cable, dock or other power source was in use.
What your result tells you
Bring the details of the charging setup for inspection before testing it again.
Manufacturer troubleshooting and reference
Get help with this issue
PlayStation controller charging repair