2025-05-07 16:26:16.301 [info] Can't use the Electron fetcher in this environment. 2025-05-07 16:26:16.301 [info] Using the Node fetch fetcher. 2025-05-07 16:26:16.301 [info] Initializing Git extension service. 2025-05-07 16:26:16.301 [info] Successfully activated the vscode.git extension. 2025-05-07 16:26:16.301 [info] Enablement state of the vscode.git extension: true. 2025-05-07 16:26:16.301 [info] Successfully registered Git commit message provider. 2025-05-07 16:26:19.967 [warning] GitHub login failed 2025-05-07 16:26:19.969 [error] Error: GitHubLoginFailed at uT._authShowWarnings (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:480:55501) at processTicksAndRejections (node:internal/process/task_queues:95:5) at uT.getCopilotToken (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:480:54029) at V5.getCopilotToken (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:423:3589) at yB.waitForChatEnabled (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:441:17603) at yB.run (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:441:17487) at ik.askToUpgradeAuthPermissions (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:441:16858): Failed to get copilot token 2025-05-07 16:26:19.969 [error] You are not signed in to GitHub. Please sign in to use Copilot. 2025-05-07 16:26:19.969 [warning] [LanguageModelAccess] LanguageModel/Embeddings are not available without auth token 2025-05-07 16:26:19.969 [error] Error: GitHubLoginFailed at uT._authShowWarnings (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:480:55501) at processTicksAndRejections (node:internal/process/task_queues:95:5) at uT.getCopilotToken (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:480:54029) at V5.getCopilotToken (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:423:3589) at qk._getAuthSession (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:479:3082) at Object.o [as task] (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:479:738) at kp._processQueue (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:474:3192971) 2025-05-07 16:26:19.969 [warning] [LanguageModelAccess] LanguageModel/Embeddings are not available without auth token 2025-05-07 16:26:19.969 [error] Error: GitHubLoginFailed at uT._authShowWarnings (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:480:55501) at processTicksAndRejections (node:internal/process/task_queues:95:5) at uT.getCopilotToken (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:480:54029) at V5.getCopilotToken (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:423:3589) at qk._getAuthSession (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:479:3082) at t (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:479:2545) at qk._registerEmbeddings (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:479:3044) at async Promise.all (index 1) at async Promise.allSettled (index 0) at $b.waitForActivationBlockers (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:423:2190) at /home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:2340:5536 at aoo (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:2340:5349) at cw.n (file:///home/ubuntu/.vscode-server/cli/servers/Stable-17baf841131aa23349f217ca7c570c76ee87b957/server/out/vs/workbench/api/node/extensionHostProcess.js:111:13359) at cw.m (file:///home/ubuntu/.vscode-server/cli/servers/Stable-17baf841131aa23349f217ca7c570c76ee87b957/server/out/vs/workbench/api/node/extensionHostProcess.js:111:13322) at cw.l (file:///home/ubuntu/.vscode-server/cli/servers/Stable-17baf841131aa23349f217ca7c570c76ee87b957/server/out/vs/workbench/api/node/extensionHostProcess.js:111:12778) 2025-05-07 16:26:19.970 [info] activationBlocker from 'languageModelAccess' took for 3760ms 2025-05-07 16:26:21.330 [warning] GitHub login failed 2025-05-07 16:26:21.330 [info] copilot token chat_enabled: undefined, sku: 2025-05-07 16:26:26.432 [warning] GitHub login failed 2025-05-07 16:26:26.435 [error] You are not signed in to GitHub. Please sign in to use Copilot. 2025-05-07 16:26:26.435 [warning] [LanguageModelAccess] LanguageModel/Embeddings are not available without auth token 2025-05-07 16:26:26.435 [error] Error: GitHubLoginFailed at uT._authShowWarnings (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:480:55501) at processTicksAndRejections (node:internal/process/task_queues:95:5) at uT.getCopilotToken (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:480:54029) at V5.getCopilotToken (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:423:3589) at qk._getAuthSession (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:479:3082) at Object.o [as task] (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:479:738) at kp._processQueue (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:474:3192971) 2025-05-07 16:26:26.435 [warning] [LanguageModelAccess] LanguageModel/Embeddings are not available without auth token 2025-05-07 16:26:26.435 [error] Error: GitHubLoginFailed at uT._authShowWarnings (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:480:55501) at processTicksAndRejections (node:internal/process/task_queues:95:5) at uT.getCopilotToken (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:480:54029) at V5.getCopilotToken (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:423:3589) at qk._getAuthSession (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:479:3082) at t (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:479:2545) 2025-05-07 16:41:27.762 [warning] GitHub login failed 2025-05-07 16:41:27.763 [warning] [LanguageModelAccess] LanguageModel/Embeddings are not available without auth token 2025-05-07 16:41:27.763 [error] Error: GitHubLoginFailed at uT._authShowWarnings (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:480:55501) at processTicksAndRejections (node:internal/process/task_queues:95:5) at uT.getCopilotToken (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:480:54029) at V5.getCopilotToken (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:423:3589) at qk._getAuthSession (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:479:3082) at Object.o [as task] (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:479:738) at kp._processQueue (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:474:3192971) 2025-05-07 16:56:28.697 [warning] GitHub login failed 2025-05-07 16:56:28.698 [warning] [LanguageModelAccess] LanguageModel/Embeddings are not available without auth token 2025-05-07 16:56:28.698 [error] Error: GitHubLoginFailed at uT._authShowWarnings (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:480:55501) at processTicksAndRejections (node:internal/process/task_queues:95:5) at uT.getCopilotToken (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.26.7/dist/extension.js:480:54029) at V5.getCopilotTokencrm_organization_id); // obtención de adjuntos de registro de CRM $response = makeCurlRequest( "https://www.zohoapis.com/crm/v2/{$crmDataObj->pModule}/{$crmRecordId}/Attachments", 'GET', ["Authorization: Zoho-oauthtoken $getAccessToken->token"] ); $data = json_decode($response); // se valida si la respuesta es correcta if (empty($data->data)) exit(json_encode(["error" => "El registro no cuenta con archivos adjuntos"])); $attachments = $data->data; $customAttrTest = []; // se iteran los datos de los archivos adjuntos al registro de crm foreach ($attachments as $file) { $id = $file->id; $fileName = $file->File_Name; $author = strstr($file->Owner->email, '@', true); // se descarga el archivo adjunto $downloadFile = makeCurlRequest( "https://www.zohoapis.com/crm/v2/{$crmDataObj->pModule}/{$crmRecordId}/Attachments/{$id}", 'GET', ["Authorization: Zoho-oauthtoken $getAccessToken->token"] ); file_put_contents($fileName, $downloadFile); $fileProfile = array_merge($netDocumentsProfile, [["id" => "1", "value" => $author]]); var_dump($fileProfile); $upload = makeCurlRequest( "https://api.vault.netvoyage.com/v1/Document/upload", 'POST', [ "Authorization: Bearer $netDocumentsAccessToken", "Content-Type: multipart/form-data", "Accept: application/json" ], [ 'file' => new CURLFile($fileName), 'destination' => $crmDataObj->pDestination, 'cabinet' => $crmDataObj->pCabinet, 'return' => 'full', 'customAttributes' => json_encode($fileProfile) ] ); $uldata = json_decode($upload); $fileId = $uldata->standardAttributes->id ?? null; $envId = $uldata->standardAttributes->envId ?? null; $fileUrl = $uldata->standardAttributes->url ?? null; if (!$fileId) continue; $logMsg = "Archivo $fileName agregado a NetDocuments:\nEnvelope ID: $envId\nID: $fileId\nURL: https://vault.netvoyage.com/neWeb2/goId.aspx?id=$fileId&open=Y"; $recordObject = [ 'Usuario_Originador' => ['name' => $crmDataObj->pUsuarioOriginadorName, 'id' => $crmDataObj->pUsuarioOriginadorId], 'Interfase' => $crmDataObj->pInterfase, 'Modulo' => $crmDataObj->pModule, 'Log' => $logMsg, 'Registro' => $crmDataObj->pRegistroUrl ]; $body = ['data' => [$recordObject]]; makeCurlRequest( 'https://www.zohoapis.com/crm/v2/AptusLogs', 'POST', ["Authorization: Zoho-oauthtoken $getAccessToken->token"], json_encode($body) ); makeCurlRequest( "https://www.zohoapis.com/crm/v2/{$crmDataObj->pModule}/{$crmRecordId}/Attachments/{$id}", 'DELETE', ["Authorization: Zoho-oauthtoken $getAccessToken->token"] ); unlink($fileName); $customAttrTest[] = ["file_id" => $fileId, "attributes" => json_encode($fileProfile)]; } // Solo si se requiere debug if (isset($_REQUEST['debug']) && $_REQUEST['debug'] == '1') { makeCurlRequest( 'https://zohoapi-730085095.development.catalystserverless.com/server/Cliq/sendMessage', 'POST', ['Content-Type: application/json'], json_encode([ "client_key" => "704580140", "recipient" => "uploadattachmentstond", "bot_name" => "devbotq", "message" => json_encode($customAttrTest) ]) ); } echo json_encode([ "status" => "ok", "archivos_subidos" => count($customAttrTest), "detalle" => $customAttrTest ]); ?>