You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: functions.php
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -173,6 +173,9 @@ function sendRequest($request, $apiSessionRetry = false)
173
173
174
174
$result = json_decode($result, true);
175
175
176
+
// Due to a bug in the netcup CCP DNS API, sometimes sessions expire too early (statuscode 4001, error message: "The session id is not in a valid format."
177
+
// We work around this bug by trying to login again once.
178
+
// See Github issue #21.
176
179
if ($result['statuscode'] === 4001 && $apiSessionRetry === false) {
177
180
outputWarning("Received API error 4001: The session id is not in a valid format. Most likely the session expired. Logging in again and retrying once.");
0 commit comments