This commit is contained in:
2026-06-21 04:35:46 -04:00
parent 41cf566299
commit 7e264fc915

View File

@@ -206,24 +206,6 @@ function vs01_post_to_orchestrator($envelope, $config = null) {
$curl_error = curl_error($ch); $curl_error = curl_error($ch);
curl_close($ch); curl_close($ch);
// --- DEBUG LOGGING ---
// Writes every orchestrator POST attempt (request + response) to a
// dedicated debug log, independent of timing. Read with:
// tail -50 /var/www/hubzilla/addon/vs01/debug.log
// Remove this block once the 400 root cause is found and fixed.
@file_put_contents(
__DIR__ . '/debug.log',
'[' . date('c') . "] vs01 POST to orchestrator\n" .
" url: $receiver_url\n" .
" http_code: $http_code\n" .
" curl_error: " . ($curl_error ?: '(none)') . "\n" .
" request_payload: $payload\n" .
" response_body: " . ($response === false ? '(curl failed)' : $response) . "\n" .
"----\n",
FILE_APPEND
);
// --- END DEBUG LOGGING ---
if ($curl_error) { if ($curl_error) {
logger('vs01_spool: curl error: ' . $curl_error); logger('vs01_spool: curl error: ' . $curl_error);
return 'Network error: ' . $curl_error; return 'Network error: ' . $curl_error;