Gitlab runner api register runner not a link

Runner registered through API has been in the state of link failure, through the server terminal registration is normal, why?