Skip to content

Commit

Permalink
Provide more information on error "More than 180 requests per minute."
Browse files Browse the repository at this point in the history
  • Loading branch information
stecklars committed Mar 21, 2022
1 parent c039b17 commit ff24ed4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions functions.php
Expand Up @@ -203,6 +203,10 @@ function login($customernr, $apikey, $apipassword)
return $result['responsedata']['apisessionid'];
}

if ($result['statuscode'] === 4013) {
$result['longmessage'] = $result['longmessage'] . ' [ADDITIONAL INFORMATION: This error from the netcup DNS API also often indicates that you have supplied wrong API credentials. Please check them in the config file.]';
}

outputStderr(sprintf("Error while logging in: %s Exiting.", $result['longmessage']));
return false;
}
Expand Down

0 comments on commit ff24ed4

Please sign in to comment.