Gracefully handle lack of the cookie

This commit is contained in:
2023-11-08 23:58:39 +01:00
parent 1ef84cb879
commit 0477fd5fa6
6 changed files with 13 additions and 4 deletions

View File

@ -102,6 +102,9 @@ function sendWuPostRequestHelper(
];
$postData = call_user_func_array($postComposer, $postComposerArgs);
if($postData === false)
return false;
$data = sendWuPostRequestInternal($endpoints[$endpoint], $postData, $saveCookie);
if($data['error'] == 500 && preg_match('/<ErrorCode>(ConfigChanged|CookieExpired|InvalidCookie)<\/ErrorCode>/', $data['out'])) {