fixed api connection settings

removed leading space causing failed connection