Skip to content

Commit ff24ed4

Browse files
committed
Provide more information on error "More than 180 requests per minute."
1 parent c039b17 commit ff24ed4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

functions.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,10 @@ function login($customernr, $apikey, $apipassword)
203203
return $result['responsedata']['apisessionid'];
204204
}
205205

206+
if ($result['statuscode'] === 4013) {
207+
$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.]';
208+
}
209+
206210
outputStderr(sprintf("Error while logging in: %s Exiting.", $result['longmessage']));
207211
return false;
208212
}

0 commit comments

Comments
 (0)