Plug HTC One Extended Charger USB Wire - Unable to charge

Hi Guys

I bought a 3m USB cable wire for the HTC One so I can lie down in bed and use my phone with a longer cable while charging the phone. I noticed it kept saying Unable to charge while in host mode. Why is this? When I plugin the normal original USB wire in to charge the phone it works perfectly.Is the 3m wire not sufficient enough for the HTC One?

Thanks in advance