[2026-04-24 23:21:41] docflow.INFO: Apel createDoc {"data":{"amoAccountId":"32607138","amoUserId":null,"amoEntityId":"41873965","amoEntityType":"2","templateId":"11612","corporateEntityId":null,"settlementAccountId":null,"is_signed":null,"gdi":null,"number":null,"currentAmoUserId":"9389918","lang":"ru"}} {"uid":"5b2dd16"}
[2026-04-24 23:21:42] docflow.INFO: Token is valid for account 32607138. [] {"uid":"5b2dd16"}
[2026-04-24 23:21:42] docflow.DEBUG: getClientAuth returned {"auth":"[object] (stdClass: {\"domain\":\"techakkdoubles.amocrm.ru\",\"access_token\":\"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjQ4OGQ4NTEzNjE1MWE0NzI0MWViNzA5YmUxYzFjM2NkNDZjYWU1NDEzMDhiMDlkODhhNDBkOTQyMGI2Nzc0MDRlODYwYjA0NWNhYmUwYjFlIn0.eyJhdWQiOiIwZDY0ZGZmYi1lNTRiLTQ0OGYtOWZiZi1iYWYyMjUxYTExZGIiLCJqdGkiOiI0ODhkODUxMzYxNTFhNDcyNDFlYjcwOWJlMWMxYzNjZDQ2Y2FlNTQxMzA4YjA5ZDg4YTQwZDk0MjBiNjc3NDA0ZTg2MGIwNDVjYWJlMGIxZSIsImlhdCI6MTc3NzAyMDUxNCwibmJmIjoxNzc3MDIwNTE0LCJleHAiOjE3NzcxMDY5MTQsInN1YiI6IjkzODk5MTgiLCJncmFudF90eXBlIjoiIiwiYWNjb3VudF9pZCI6MzI2MDcxMzgsImJhc2VfZG9tYWluIjoiYW1vY3JtLnJ1IiwidmVyc2lvbiI6Miwic2NvcGVzIjpbInB1c2hfbm90aWZpY2F0aW9ucyIsImNybSIsIm5vdGlmaWNhdGlvbnMiXSwiaGFzaF91dWlkIjoiNWQ0Zjc0N2EtMzRmYy00ZDQ5LWE3NzctYmY2MDdlM2FjZGRiIiwiYXBpX2RvbWFpbiI6ImFwaS1iLmFtb2NybS5ydSJ9.FlmlIRHCr56pTEBrnaF2ipaQPbmuvM6LWWG2KpG8nvGf9sFrJQgXYy4CDNuD0vJMsTPQxP3LS0ixdLJuxYc-IXcPOpwZsNeHZAJ35-Rx0M8KwaNnKPISWP0CYJ06rAxoh41Kg8YEjAfSegRWPsxK0InGAnPtjwFQwfAo1j2we8tOIiCrKJDFli0hmz8H9kc_BRGEnZTi-utWlx0cBwMFXQuAHtRIA9n5TnWRvipcdPtijvXi2OenlcBsLA8X8Mav0M0_DdYhe2vfB4zW3THY81DfqDraUbWp6unWR4Bx1eRDOYmKlFVkT15KhaJC79I1H3j0oWSwonR6qlIlxju92w\"})","file":"/home/ytvmclwh/document.amocrm.md/src/Models/Docs.php","line":119} {"uid":"5b2dd16"}
[2026-04-24 23:21:43] docflow.DEBUG: AmoDrive docflow context request {"url":"https://gd.glucose-dev.online/api/docflow/google-context","query":{"account_id":"32607138","entity_id":"41873965","entity_type":"leads"}} {"uid":"5b2dd16"}
[2026-04-24 23:21:43] docflow.DEBUG: AmoDrive docflow context response {"payload":{"ok":true,"accountId":32607138,"entityId":"41873965","entityType":"leads","amodrive":{"installed":false,"widgetStatus":"not_installed","amoAccountId":null,"accountHost":null,"license":{"status":"expired","configuredStatus":"expired","expiresAt":null,"isExpired":true,"isTrial":false,"isActive":false,"expiredByDate":false,"daysRemaining":null,"isLifetime":false},"licenseActive":false,"googleConnected":false,"googleEmail":null,"googleHasDriveScope":false,"googleHasOwnershipScope":false,"readyForGeneratedFileMove":false,"readyForTransfer":false},"folder":null}} {"uid":"5b2dd16"}
[2026-04-24 23:21:43] docflow.DEBUG: AmoDrive prepare-generated-doc request {"url":"https://gd.glucose-dev.online/api/docflow/prepare-generated-doc","payload":{"account_id":"32607138","entity_id":"41873965","entity_type":"leads","generator_email":"info@glucose.md"}} {"uid":"5b2dd16"}
[2026-04-24 23:21:43] docflow.WARNING: AmoDrive prepare-generated-doc request failed {"http_code":null,"error":"HTTP/2 404 ","response":"[object] (stdClass: {\"ok\":false,\"error\":\"AmoDrive is not installed for this account.\",\"accountId\":32607138})","payload":{"account_id":"32607138","entity_id":"41873965","entity_type":"leads","generator_email":"info@glucose.md"}} {"uid":"5b2dd16"}
[2026-04-24 23:21:43] docflow.DEBUG: GAS request {"url":"https://script.google.com/macros/s/AKfycbwrvOJD46zkuoTzdhpc1kulhV8jRfgQBFZfQ121nkIip_k8yKit4xrbWTOzaJ-C-Yed6w/exec","body":{"templateFileId":"1z1HqyBpTDTbzBabCOjcWZvHePQCP-ZVT-8VtbmbmLHY","accountId":"32607138","folderId":"1Us2AfskxgdA729xVr0F2vjZU9y5PlYDe","key":"~VTsK5dcnHc2cSSsjM$LFSjLlgbmJXwrp3R2P5nd","data":"{\"fileName\":\"Document Template \\u0410124\\u0434 20260424232143\",\"leadId\":\"41873965\",\"entities\":{\"\\u0441\\u0434\\u0435\\u043b\\u043a\\u0430\":{\"Text area field\":\"https:\\/\\/drive.google.com\\/drive\\/folders\\/1Rk_cE3pCXOYpMHipa0MRj2DS5Lsufdpg\",\"ID\":\"41873965\",\"\\u0421\\u0434\\u0435\\u043b\\u043a\\u0430_\\u043d\\u0430\\u0438\\u043c\\u0435\\u043d\\u043e\\u0432\\u0430\\u043d\\u0438\\u0435\":\"Test Lead\",\"Lead_name\":\"Test Lead\",\"\\u0411\\u044e\\u0434\\u0436\\u0435\\u0442\":\"0\",\"Budget\":\"0\",\"\\u041e\\u0442\\u0432\\u0435\\u0442\\u0441\\u0442\\u0432\\u0435\\u043d\\u043d\\u044b\\u0439\":\"Petru Croitor\",\"Responsible\":\"Petru Croitor\"},\"lead\":{\"Text area field\":\"https:\\/\\/drive.google.com\\/drive\\/folders\\/1Rk_cE3pCXOYpMHipa0MRj2DS5Lsufdpg\",\"ID\":\"41873965\",\"\\u0421\\u0434\\u0435\\u043b\\u043a\\u0430_\\u043d\\u0430\\u0438\\u043c\\u0435\\u043d\\u043e\\u0432\\u0430\\u043d\\u0438\\u0435\":\"Test Lead\",\"Lead_name\":\"Test Lead\",\"\\u0411\\u044e\\u0434\\u0436\\u0435\\u0442\":\"0\",\"Budget\":\"0\",\"\\u041e\\u0442\\u0432\\u0435\\u0442\\u0441\\u0442\\u0432\\u0435\\u043d\\u043d\\u044b\\u0439\":\"Petru Croitor\",\"Responsible\":\"Petru Croitor\"},\"\\u0434\\u043e\\u043a\\u0443\\u043c\\u0435\\u043d\\u0442\":{\"\\u0414\\u0430\\u0442\\u0430\":\"24.04.2026\",\"\\u041d\\u043e\\u043c\\u0435\\u0440\":\"\\u0410124\\u0434\"},\"document\":{\"Date\":\"24.04.2026\",\"Number\":\"\\u0410124\\u0434\"}}}","edit":true}} {"uid":"5b2dd16"}
[2026-04-24 23:21:48] docflow.DEBUG: GAS raw response {"raw":"[object] (stdClass: {\"code\":1,\"url\":\"https://docs.google.com/open?id=1hOEkexil7MTk_cAIaI4cor6h-h0GW3Jw44UXIVRl5Xw\",\"file_id\":\"1hOEkexil7MTk_cAIaI4cor6h-h0GW3Jw44UXIVRl5Xw\",\"error\":\"\",\"vars\":\"\"})"} {"uid":"5b2dd16"}
[2026-04-24 23:21:48] docflow.WARNING: AmoDrive generated-file move is not ready. {"fileId":"1hOEkexil7MTk_cAIaI4cor6h-h0GW3Jw44UXIVRl5Xw","context":{"ok":true,"accountId":32607138,"entityId":"41873965","entityType":"leads","amodrive":{"installed":false,"widgetStatus":"not_installed","amoAccountId":null,"accountHost":null,"license":{"status":"expired","configuredStatus":"expired","expiresAt":null,"isExpired":true,"isTrial":false,"isActive":false,"expiredByDate":false,"daysRemaining":null,"isLifetime":false},"licenseActive":false,"googleConnected":false,"googleEmail":null,"googleHasDriveScope":false,"googleHasOwnershipScope":false,"readyForGeneratedFileMove":false,"readyForTransfer":false},"folder":null}} {"uid":"5b2dd16"}
[2026-04-24 23:35:55] docflow.INFO: Apel createDoc {"data":{"amoAccountId":"32607138","amoUserId":null,"amoEntityId":"41873965","amoEntityType":"2","templateId":"11612","corporateEntityId":null,"settlementAccountId":null,"is_signed":null,"gdi":null,"number":null,"currentAmoUserId":"9389918","lang":"ru"}} {"uid":"6d6e817"}
[2026-04-24 23:35:55] docflow.INFO: Token is valid for account 32607138. [] {"uid":"6d6e817"}
[2026-04-24 23:35:55] docflow.DEBUG: getClientAuth returned {"auth":"[object] (stdClass: {\"domain\":\"techakkdoubles.amocrm.ru\",\"access_token\":\"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjQ4OGQ4NTEzNjE1MWE0NzI0MWViNzA5YmUxYzFjM2NkNDZjYWU1NDEzMDhiMDlkODhhNDBkOTQyMGI2Nzc0MDRlODYwYjA0NWNhYmUwYjFlIn0.eyJhdWQiOiIwZDY0ZGZmYi1lNTRiLTQ0OGYtOWZiZi1iYWYyMjUxYTExZGIiLCJqdGkiOiI0ODhkODUxMzYxNTFhNDcyNDFlYjcwOWJlMWMxYzNjZDQ2Y2FlNTQxMzA4YjA5ZDg4YTQwZDk0MjBiNjc3NDA0ZTg2MGIwNDVjYWJlMGIxZSIsImlhdCI6MTc3NzAyMDUxNCwibmJmIjoxNzc3MDIwNTE0LCJleHAiOjE3NzcxMDY5MTQsInN1YiI6IjkzODk5MTgiLCJncmFudF90eXBlIjoiIiwiYWNjb3VudF9pZCI6MzI2MDcxMzgsImJhc2VfZG9tYWluIjoiYW1vY3JtLnJ1IiwidmVyc2lvbiI6Miwic2NvcGVzIjpbInB1c2hfbm90aWZpY2F0aW9ucyIsImNybSIsIm5vdGlmaWNhdGlvbnMiXSwiaGFzaF91dWlkIjoiNWQ0Zjc0N2EtMzRmYy00ZDQ5LWE3NzctYmY2MDdlM2FjZGRiIiwiYXBpX2RvbWFpbiI6ImFwaS1iLmFtb2NybS5ydSJ9.FlmlIRHCr56pTEBrnaF2ipaQPbmuvM6LWWG2KpG8nvGf9sFrJQgXYy4CDNuD0vJMsTPQxP3LS0ixdLJuxYc-IXcPOpwZsNeHZAJ35-Rx0M8KwaNnKPISWP0CYJ06rAxoh41Kg8YEjAfSegRWPsxK0InGAnPtjwFQwfAo1j2we8tOIiCrKJDFli0hmz8H9kc_BRGEnZTi-utWlx0cBwMFXQuAHtRIA9n5TnWRvipcdPtijvXi2OenlcBsLA8X8Mav0M0_DdYhe2vfB4zW3THY81DfqDraUbWp6unWR4Bx1eRDOYmKlFVkT15KhaJC79I1H3j0oWSwonR6qlIlxju92w\"})","file":"/home/ytvmclwh/document.amocrm.md/src/Models/Docs.php","line":119} {"uid":"6d6e817"}
[2026-04-24 23:35:56] docflow.DEBUG: AmoDrive docflow context request {"url":"https://gd.glucose-dev.online/api/docflow/google-context","query":{"account_id":"32607138","entity_id":"41873965","entity_type":"leads"}} {"uid":"6d6e817"}
[2026-04-24 23:35:56] docflow.DEBUG: AmoDrive docflow context response {"payload":{"ok":true,"accountId":32607138,"entityId":"41873965","entityType":"leads","amodrive":{"installed":false,"widgetStatus":"not_installed","amoAccountId":null,"accountHost":null,"license":{"status":"expired","configuredStatus":"expired","expiresAt":null,"isExpired":true,"isTrial":false,"isActive":false,"expiredByDate":false,"daysRemaining":null,"isLifetime":false},"licenseActive":false,"googleConnected":false,"googleEmail":null,"googleHasDriveScope":false,"googleHasOwnershipScope":false,"readyForGeneratedFileMove":false,"readyForTransfer":false},"folder":null}} {"uid":"6d6e817"}
[2026-04-24 23:35:56] docflow.DEBUG: AmoDrive prepare-generated-doc request {"url":"https://gd.glucose-dev.online/api/docflow/prepare-generated-doc","payload":{"account_id":"32607138","entity_id":"41873965","entity_type":"leads","generator_email":"info@glucose.md"}} {"uid":"6d6e817"}
[2026-04-24 23:35:56] docflow.WARNING: AmoDrive prepare-generated-doc request failed {"http_code":null,"error":"HTTP/2 404 ","response":"[object] (stdClass: {\"ok\":false,\"error\":\"AmoDrive is not installed for this account.\",\"accountId\":32607138})","payload":{"account_id":"32607138","entity_id":"41873965","entity_type":"leads","generator_email":"info@glucose.md"}} {"uid":"6d6e817"}
[2026-04-24 23:35:56] docflow.DEBUG: GAS request {"url":"https://script.google.com/macros/s/AKfycbwrvOJD46zkuoTzdhpc1kulhV8jRfgQBFZfQ121nkIip_k8yKit4xrbWTOzaJ-C-Yed6w/exec","body":{"templateFileId":"1z1HqyBpTDTbzBabCOjcWZvHePQCP-ZVT-8VtbmbmLHY","accountId":"32607138","folderId":"1Us2AfskxgdA729xVr0F2vjZU9y5PlYDe","key":"~VTsK5dcnHc2cSSsjM$LFSjLlgbmJXwrp3R2P5nd","data":"{\"fileName\":\"Document Template \\u0410125\\u0434 20260424233556\",\"leadId\":\"41873965\",\"entities\":{\"\\u0441\\u0434\\u0435\\u043b\\u043a\\u0430\":{\"Text area field\":\"https:\\/\\/drive.google.com\\/drive\\/folders\\/1Rk_cE3pCXOYpMHipa0MRj2DS5Lsufdpg\",\"ID\":\"41873965\",\"\\u0421\\u0434\\u0435\\u043b\\u043a\\u0430_\\u043d\\u0430\\u0438\\u043c\\u0435\\u043d\\u043e\\u0432\\u0430\\u043d\\u0438\\u0435\":\"Test Lead\",\"Lead_name\":\"Test Lead\",\"\\u0411\\u044e\\u0434\\u0436\\u0435\\u0442\":\"0\",\"Budget\":\"0\",\"\\u041e\\u0442\\u0432\\u0435\\u0442\\u0441\\u0442\\u0432\\u0435\\u043d\\u043d\\u044b\\u0439\":\"Petru Croitor\",\"Responsible\":\"Petru Croitor\"},\"lead\":{\"Text area field\":\"https:\\/\\/drive.google.com\\/drive\\/folders\\/1Rk_cE3pCXOYpMHipa0MRj2DS5Lsufdpg\",\"ID\":\"41873965\",\"\\u0421\\u0434\\u0435\\u043b\\u043a\\u0430_\\u043d\\u0430\\u0438\\u043c\\u0435\\u043d\\u043e\\u0432\\u0430\\u043d\\u0438\\u0435\":\"Test Lead\",\"Lead_name\":\"Test Lead\",\"\\u0411\\u044e\\u0434\\u0436\\u0435\\u0442\":\"0\",\"Budget\":\"0\",\"\\u041e\\u0442\\u0432\\u0435\\u0442\\u0441\\u0442\\u0432\\u0435\\u043d\\u043d\\u044b\\u0439\":\"Petru Croitor\",\"Responsible\":\"Petru Croitor\"},\"\\u0434\\u043e\\u043a\\u0443\\u043c\\u0435\\u043d\\u0442\":{\"\\u0414\\u0430\\u0442\\u0430\":\"24.04.2026\",\"\\u041d\\u043e\\u043c\\u0435\\u0440\":\"\\u0410125\\u0434\"},\"document\":{\"Date\":\"24.04.2026\",\"Number\":\"\\u0410125\\u0434\"}}}","edit":true}} {"uid":"6d6e817"}
[2026-04-24 23:36:04] docflow.DEBUG: GAS raw response {"raw":"[object] (stdClass: {\"code\":1,\"url\":\"https://docs.google.com/open?id=115Cr60R7xuoI95LabHWPfPrmfSkiQkd2ajekOeJb7Jw\",\"file_id\":\"115Cr60R7xuoI95LabHWPfPrmfSkiQkd2ajekOeJb7Jw\",\"error\":\"\",\"vars\":\"\"})"} {"uid":"6d6e817"}
[2026-04-24 23:36:04] docflow.WARNING: AmoDrive generated-file move is not ready. {"fileId":"115Cr60R7xuoI95LabHWPfPrmfSkiQkd2ajekOeJb7Jw","context":{"ok":true,"accountId":32607138,"entityId":"41873965","entityType":"leads","amodrive":{"installed":false,"widgetStatus":"not_installed","amoAccountId":null,"accountHost":null,"license":{"status":"expired","configuredStatus":"expired","expiresAt":null,"isExpired":true,"isTrial":false,"isActive":false,"expiredByDate":false,"daysRemaining":null,"isLifetime":false},"licenseActive":false,"googleConnected":false,"googleEmail":null,"googleHasDriveScope":false,"googleHasOwnershipScope":false,"readyForGeneratedFileMove":false,"readyForTransfer":false},"folder":null}} {"uid":"6d6e817"}
[2026-04-24 23:36:31] docflow.INFO: Apel createDoc {"data":{"amoAccountId":"32607138","amoUserId":null,"amoEntityId":"41873965","amoEntityType":"2","templateId":"11612","corporateEntityId":null,"settlementAccountId":null,"is_signed":null,"gdi":null,"number":null,"currentAmoUserId":"9389918","lang":"ru"}} {"uid":"ff930ca"}
[2026-04-24 23:36:32] docflow.INFO: Token is valid for account 32607138. [] {"uid":"ff930ca"}
[2026-04-24 23:36:32] docflow.DEBUG: getClientAuth returned {"auth":"[object] (stdClass: {\"domain\":\"techakkdoubles.amocrm.ru\",\"access_token\":\"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjQ4OGQ4NTEzNjE1MWE0NzI0MWViNzA5YmUxYzFjM2NkNDZjYWU1NDEzMDhiMDlkODhhNDBkOTQyMGI2Nzc0MDRlODYwYjA0NWNhYmUwYjFlIn0.eyJhdWQiOiIwZDY0ZGZmYi1lNTRiLTQ0OGYtOWZiZi1iYWYyMjUxYTExZGIiLCJqdGkiOiI0ODhkODUxMzYxNTFhNDcyNDFlYjcwOWJlMWMxYzNjZDQ2Y2FlNTQxMzA4YjA5ZDg4YTQwZDk0MjBiNjc3NDA0ZTg2MGIwNDVjYWJlMGIxZSIsImlhdCI6MTc3NzAyMDUxNCwibmJmIjoxNzc3MDIwNTE0LCJleHAiOjE3NzcxMDY5MTQsInN1YiI6IjkzODk5MTgiLCJncmFudF90eXBlIjoiIiwiYWNjb3VudF9pZCI6MzI2MDcxMzgsImJhc2VfZG9tYWluIjoiYW1vY3JtLnJ1IiwidmVyc2lvbiI6Miwic2NvcGVzIjpbInB1c2hfbm90aWZpY2F0aW9ucyIsImNybSIsIm5vdGlmaWNhdGlvbnMiXSwiaGFzaF91dWlkIjoiNWQ0Zjc0N2EtMzRmYy00ZDQ5LWE3NzctYmY2MDdlM2FjZGRiIiwiYXBpX2RvbWFpbiI6ImFwaS1iLmFtb2NybS5ydSJ9.FlmlIRHCr56pTEBrnaF2ipaQPbmuvM6LWWG2KpG8nvGf9sFrJQgXYy4CDNuD0vJMsTPQxP3LS0ixdLJuxYc-IXcPOpwZsNeHZAJ35-Rx0M8KwaNnKPISWP0CYJ06rAxoh41Kg8YEjAfSegRWPsxK0InGAnPtjwFQwfAo1j2we8tOIiCrKJDFli0hmz8H9kc_BRGEnZTi-utWlx0cBwMFXQuAHtRIA9n5TnWRvipcdPtijvXi2OenlcBsLA8X8Mav0M0_DdYhe2vfB4zW3THY81DfqDraUbWp6unWR4Bx1eRDOYmKlFVkT15KhaJC79I1H3j0oWSwonR6qlIlxju92w\"})","file":"/home/ytvmclwh/document.amocrm.md/src/Models/Docs.php","line":119} {"uid":"ff930ca"}
[2026-04-24 23:36:33] docflow.DEBUG: AmoDrive docflow context request {"url":"https://gd.glucose-dev.online/api/docflow/google-context","query":{"account_id":"32607138","entity_id":"41873965","entity_type":"leads"}} {"uid":"ff930ca"}
[2026-04-24 23:36:33] docflow.DEBUG: AmoDrive docflow context response {"payload":{"ok":true,"accountId":32607138,"entityId":"41873965","entityType":"leads","amodrive":{"installed":false,"widgetStatus":"not_installed","amoAccountId":null,"accountHost":null,"license":{"status":"expired","configuredStatus":"expired","expiresAt":null,"isExpired":true,"isTrial":false,"isActive":false,"expiredByDate":false,"daysRemaining":null,"isLifetime":false},"licenseActive":false,"googleConnected":false,"googleEmail":null,"googleHasDriveScope":false,"googleHasOwnershipScope":false,"readyForGeneratedFileMove":false,"readyForTransfer":false},"folder":null}} {"uid":"ff930ca"}
[2026-04-24 23:36:33] docflow.DEBUG: AmoDrive prepare-generated-doc request {"url":"https://gd.glucose-dev.online/api/docflow/prepare-generated-doc","payload":{"account_id":"32607138","entity_id":"41873965","entity_type":"leads","generator_email":"info@glucose.md"}} {"uid":"ff930ca"}
[2026-04-24 23:36:33] docflow.WARNING: AmoDrive prepare-generated-doc request failed {"http_code":null,"error":"HTTP/2 404 ","response":"[object] (stdClass: {\"ok\":false,\"error\":\"AmoDrive is not installed for this account.\",\"accountId\":32607138})","payload":{"account_id":"32607138","entity_id":"41873965","entity_type":"leads","generator_email":"info@glucose.md"}} {"uid":"ff930ca"}
[2026-04-24 23:36:33] docflow.DEBUG: GAS request {"url":"https://script.google.com/macros/s/AKfycbwrvOJD46zkuoTzdhpc1kulhV8jRfgQBFZfQ121nkIip_k8yKit4xrbWTOzaJ-C-Yed6w/exec","body":{"templateFileId":"1z1HqyBpTDTbzBabCOjcWZvHePQCP-ZVT-8VtbmbmLHY","accountId":"32607138","folderId":"1Us2AfskxgdA729xVr0F2vjZU9y5PlYDe","key":"~VTsK5dcnHc2cSSsjM$LFSjLlgbmJXwrp3R2P5nd","data":"{\"fileName\":\"Document Template \\u0410126\\u0434 20260424233633\",\"leadId\":\"41873965\",\"entities\":{\"\\u0441\\u0434\\u0435\\u043b\\u043a\\u0430\":{\"Text area field\":\"https:\\/\\/drive.google.com\\/drive\\/folders\\/1Rk_cE3pCXOYpMHipa0MRj2DS5Lsufdpg\",\"ID\":\"41873965\",\"\\u0421\\u0434\\u0435\\u043b\\u043a\\u0430_\\u043d\\u0430\\u0438\\u043c\\u0435\\u043d\\u043e\\u0432\\u0430\\u043d\\u0438\\u0435\":\"Test Lead\",\"Lead_name\":\"Test Lead\",\"\\u0411\\u044e\\u0434\\u0436\\u0435\\u0442\":\"0\",\"Budget\":\"0\",\"\\u041e\\u0442\\u0432\\u0435\\u0442\\u0441\\u0442\\u0432\\u0435\\u043d\\u043d\\u044b\\u0439\":\"Petru Croitor\",\"Responsible\":\"Petru Croitor\"},\"lead\":{\"Text area field\":\"https:\\/\\/drive.google.com\\/drive\\/folders\\/1Rk_cE3pCXOYpMHipa0MRj2DS5Lsufdpg\",\"ID\":\"41873965\",\"\\u0421\\u0434\\u0435\\u043b\\u043a\\u0430_\\u043d\\u0430\\u0438\\u043c\\u0435\\u043d\\u043e\\u0432\\u0430\\u043d\\u0438\\u0435\":\"Test Lead\",\"Lead_name\":\"Test Lead\",\"\\u0411\\u044e\\u0434\\u0436\\u0435\\u0442\":\"0\",\"Budget\":\"0\",\"\\u041e\\u0442\\u0432\\u0435\\u0442\\u0441\\u0442\\u0432\\u0435\\u043d\\u043d\\u044b\\u0439\":\"Petru Croitor\",\"Responsible\":\"Petru Croitor\"},\"\\u0434\\u043e\\u043a\\u0443\\u043c\\u0435\\u043d\\u0442\":{\"\\u0414\\u0430\\u0442\\u0430\":\"24.04.2026\",\"\\u041d\\u043e\\u043c\\u0435\\u0440\":\"\\u0410126\\u0434\"},\"document\":{\"Date\":\"24.04.2026\",\"Number\":\"\\u0410126\\u0434\"}}}","edit":true}} {"uid":"ff930ca"}
[2026-04-24 23:36:38] docflow.DEBUG: GAS raw response {"raw":"[object] (stdClass: {\"code\":1,\"url\":\"https://docs.google.com/open?id=1kjeogZOX1mW-nXUCdm29W-nSMhdEKroJndEodvcyBHI\",\"file_id\":\"1kjeogZOX1mW-nXUCdm29W-nSMhdEKroJndEodvcyBHI\",\"error\":\"\",\"vars\":\"\"})"} {"uid":"ff930ca"}
[2026-04-24 23:36:38] docflow.WARNING: AmoDrive generated-file move is not ready. {"fileId":"1kjeogZOX1mW-nXUCdm29W-nSMhdEKroJndEodvcyBHI","context":{"ok":true,"accountId":32607138,"entityId":"41873965","entityType":"leads","amodrive":{"installed":false,"widgetStatus":"not_installed","amoAccountId":null,"accountHost":null,"license":{"status":"expired","configuredStatus":"expired","expiresAt":null,"isExpired":true,"isTrial":false,"isActive":false,"expiredByDate":false,"daysRemaining":null,"isLifetime":false},"licenseActive":false,"googleConnected":false,"googleEmail":null,"googleHasDriveScope":false,"googleHasOwnershipScope":false,"readyForGeneratedFileMove":false,"readyForTransfer":false},"folder":null}} {"uid":"ff930ca"}
[2026-04-24 23:53:03] docflow.INFO: Apel createDoc {"data":{"amoAccountId":"32607138","amoUserId":null,"amoEntityId":"41873965","amoEntityType":"2","templateId":"11612","corporateEntityId":null,"settlementAccountId":null,"is_signed":null,"gdi":null,"number":null,"currentAmoUserId":"9389918","lang":"ru"}} {"uid":"7411654"}
[2026-04-24 23:53:04] docflow.INFO: Token is valid for account 32607138. [] {"uid":"7411654"}
[2026-04-24 23:53:04] docflow.DEBUG: getClientAuth returned {"auth":"[object] (stdClass: {\"domain\":\"techakkdoubles.amocrm.ru\",\"access_token\":\"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjQ4OGQ4NTEzNjE1MWE0NzI0MWViNzA5YmUxYzFjM2NkNDZjYWU1NDEzMDhiMDlkODhhNDBkOTQyMGI2Nzc0MDRlODYwYjA0NWNhYmUwYjFlIn0.eyJhdWQiOiIwZDY0ZGZmYi1lNTRiLTQ0OGYtOWZiZi1iYWYyMjUxYTExZGIiLCJqdGkiOiI0ODhkODUxMzYxNTFhNDcyNDFlYjcwOWJlMWMxYzNjZDQ2Y2FlNTQxMzA4YjA5ZDg4YTQwZDk0MjBiNjc3NDA0ZTg2MGIwNDVjYWJlMGIxZSIsImlhdCI6MTc3NzAyMDUxNCwibmJmIjoxNzc3MDIwNTE0LCJleHAiOjE3NzcxMDY5MTQsInN1YiI6IjkzODk5MTgiLCJncmFudF90eXBlIjoiIiwiYWNjb3VudF9pZCI6MzI2MDcxMzgsImJhc2VfZG9tYWluIjoiYW1vY3JtLnJ1IiwidmVyc2lvbiI6Miwic2NvcGVzIjpbInB1c2hfbm90aWZpY2F0aW9ucyIsImNybSIsIm5vdGlmaWNhdGlvbnMiXSwiaGFzaF91dWlkIjoiNWQ0Zjc0N2EtMzRmYy00ZDQ5LWE3NzctYmY2MDdlM2FjZGRiIiwiYXBpX2RvbWFpbiI6ImFwaS1iLmFtb2NybS5ydSJ9.FlmlIRHCr56pTEBrnaF2ipaQPbmuvM6LWWG2KpG8nvGf9sFrJQgXYy4CDNuD0vJMsTPQxP3LS0ixdLJuxYc-IXcPOpwZsNeHZAJ35-Rx0M8KwaNnKPISWP0CYJ06rAxoh41Kg8YEjAfSegRWPsxK0InGAnPtjwFQwfAo1j2we8tOIiCrKJDFli0hmz8H9kc_BRGEnZTi-utWlx0cBwMFXQuAHtRIA9n5TnWRvipcdPtijvXi2OenlcBsLA8X8Mav0M0_DdYhe2vfB4zW3THY81DfqDraUbWp6unWR4Bx1eRDOYmKlFVkT15KhaJC79I1H3j0oWSwonR6qlIlxju92w\"})","file":"/home/ytvmclwh/document.amocrm.md/src/Models/Docs.php","line":121} {"uid":"7411654"}
[2026-04-24 23:53:05] docflow.DEBUG: AmoDrive docflow context request {"url":"https://google.emale.uno/api/docflow/google-context","query":{"account_id":"32607138","entity_id":"41873965","entity_type":"leads"}} {"uid":"7411654"}
[2026-04-24 23:53:05] docflow.DEBUG: AmoDrive docflow context response {"url":"https://google.emale.uno/api/docflow/google-context","payload":{"ok":true,"accountId":32607138,"entityId":"41873965","entityType":"leads","amodrive":{"installed":true,"widgetStatus":"installed","amoAccountId":32607138,"accountHost":"techakkdoubles.amocrm.ru","license":{"status":"active","configuredStatus":"active","expiresAt":"2026-10-10T20:14:08.921Z","isExpired":false,"isTrial":false,"isActive":true,"expiredByDate":false,"daysRemaining":169,"isLifetime":false},"licenseActive":true,"googleConnected":true,"googleEmail":"fely3573@gmail.com","googleHasDriveScope":true,"googleHasDriveFileScope":true,"googleHasOwnershipScope":false,"readyForGeneratedFileMove":true,"readyForTransfer":true},"folder":{"id":"1Rk_cE3pCXOYpMHipa0MRj2DS5Lsufdpg","name":"41873965 - Test Lead","webViewLink":"https://drive.google.com/drive/folders/1Rk_cE3pCXOYpMHipa0MRj2DS5Lsufdpg"}}} {"uid":"7411654"}
[2026-04-24 23:53:05] docflow.DEBUG: AmoDrive prepare-generated-doc request {"url":"https://google.emale.uno/api/docflow/prepare-generated-doc","payload":{"account_id":"32607138","entity_id":"41873965","entity_type":"leads","generator_email":"info@glucose.md"}} {"uid":"7411654"}
[2026-04-24 23:53:08] docflow.WARNING: AmoDrive prepare-generated-doc request failed {"url":"https://google.emale.uno/api/docflow/prepare-generated-doc","http_code":null,"error":"HTTP/2 500 ","response":"[object] (stdClass: {\"ok\":false,\"error\":\"The user has not granted the app 54965449156 write access to the child file 1ODtEk3SgUyMGOyPLOtStAjccLZZBB2Lm, which would be affected by the operation on the parent.\",\"details\":null})","payload":{"account_id":"32607138","entity_id":"41873965","entity_type":"leads","generator_email":"info@glucose.md"}} {"uid":"7411654"}
[2026-04-24 23:53:08] docflow.DEBUG: AmoDrive prepare-generated-doc request {"url":"https://gd.glucose-dev.online/api/docflow/prepare-generated-doc","payload":{"account_id":"32607138","entity_id":"41873965","entity_type":"leads","generator_email":"info@glucose.md"}} {"uid":"7411654"}
[2026-04-24 23:53:08] docflow.WARNING: AmoDrive prepare-generated-doc request failed {"url":"https://gd.glucose-dev.online/api/docflow/prepare-generated-doc","http_code":null,"error":"HTTP/2 404 ","response":"[object] (stdClass: {\"ok\":false,\"error\":\"AmoDrive is not installed for this account.\",\"accountId\":32607138})","payload":{"account_id":"32607138","entity_id":"41873965","entity_type":"leads","generator_email":"info@glucose.md"}} {"uid":"7411654"}
[2026-04-24 23:53:08] docflow.DEBUG: GAS request {"url":"https://script.google.com/macros/s/AKfycbwrvOJD46zkuoTzdhpc1kulhV8jRfgQBFZfQ121nkIip_k8yKit4xrbWTOzaJ-C-Yed6w/exec","body":{"templateFileId":"1z1HqyBpTDTbzBabCOjcWZvHePQCP-ZVT-8VtbmbmLHY","accountId":"32607138","folderId":"1Us2AfskxgdA729xVr0F2vjZU9y5PlYDe","key":"~VTsK5dcnHc2cSSsjM$LFSjLlgbmJXwrp3R2P5nd","data":"{\"fileName\":\"Document Template \\u0410127\\u0434 20260424235305\",\"leadId\":\"41873965\",\"entities\":{\"\\u0441\\u0434\\u0435\\u043b\\u043a\\u0430\":{\"Text area field\":\"https:\\/\\/drive.google.com\\/drive\\/folders\\/1Rk_cE3pCXOYpMHipa0MRj2DS5Lsufdpg\",\"ID\":\"41873965\",\"\\u0421\\u0434\\u0435\\u043b\\u043a\\u0430_\\u043d\\u0430\\u0438\\u043c\\u0435\\u043d\\u043e\\u0432\\u0430\\u043d\\u0438\\u0435\":\"Test Lead\",\"Lead_name\":\"Test Lead\",\"\\u0411\\u044e\\u0434\\u0436\\u0435\\u0442\":\"0\",\"Budget\":\"0\",\"\\u041e\\u0442\\u0432\\u0435\\u0442\\u0441\\u0442\\u0432\\u0435\\u043d\\u043d\\u044b\\u0439\":\"Petru Croitor\",\"Responsible\":\"Petru Croitor\"},\"lead\":{\"Text area field\":\"https:\\/\\/drive.google.com\\/drive\\/folders\\/1Rk_cE3pCXOYpMHipa0MRj2DS5Lsufdpg\",\"ID\":\"41873965\",\"\\u0421\\u0434\\u0435\\u043b\\u043a\\u0430_\\u043d\\u0430\\u0438\\u043c\\u0435\\u043d\\u043e\\u0432\\u0430\\u043d\\u0438\\u0435\":\"Test Lead\",\"Lead_name\":\"Test Lead\",\"\\u0411\\u044e\\u0434\\u0436\\u0435\\u0442\":\"0\",\"Budget\":\"0\",\"\\u041e\\u0442\\u0432\\u0435\\u0442\\u0441\\u0442\\u0432\\u0435\\u043d\\u043d\\u044b\\u0439\":\"Petru Croitor\",\"Responsible\":\"Petru Croitor\"},\"\\u0434\\u043e\\u043a\\u0443\\u043c\\u0435\\u043d\\u0442\":{\"\\u0414\\u0430\\u0442\\u0430\":\"24.04.2026\",\"\\u041d\\u043e\\u043c\\u0435\\u0440\":\"\\u0410127\\u0434\"},\"document\":{\"Date\":\"24.04.2026\",\"Number\":\"\\u0410127\\u0434\"}}}","edit":true,"targetGoogleEmail":"fely3573@gmail.com"}} {"uid":"7411654"}
[2026-04-24 23:53:15] docflow.DEBUG: GAS raw response {"raw":"[object] (stdClass: {\"code\":1,\"url\":\"https://docs.google.com/open?id=1R1cbTkX67QMV1pNCcoIJWGxdDlL4cJAvJ2-69EdZohw\",\"file_id\":\"1R1cbTkX67QMV1pNCcoIJWGxdDlL4cJAvJ2-69EdZohw\",\"error\":\"\",\"vars\":\"\",\"amodrive_share\":{\"ok\":true,\"targetEmail\":\"fely3573@gmail.com\",\"permission\":{\"id\":\"01353484959694017971\",\"emailAddress\":\"fely3573@gmail.com\",\"role\":\"writer\",\"pendingOwner\":false}}})"} {"uid":"7411654"}
[2026-04-24 23:53:15] docflow.DEBUG: AmoDrive finalize request {"url":"https://google.emale.uno/api/docflow/finalize-generated-file","payload":{"account_id":"32607138","entity_id":"41873965","entity_type":"leads","file_id":"1R1cbTkX67QMV1pNCcoIJWGxdDlL4cJAvJ2-69EdZohw"}} {"uid":"7411654"}
[2026-04-24 23:53:16] docflow.WARNING: AmoDrive finalize request failed {"url":"https://google.emale.uno/api/docflow/finalize-generated-file","http_code":null,"error":"HTTP/2 500 ","response":"[object] (stdClass: {\"ok\":false,\"error\":\"File not found: 1R1cbTkX67QMV1pNCcoIJWGxdDlL4cJAvJ2-69EdZohw.\",\"details\":null})","payload":{"account_id":"32607138","entity_id":"41873965","entity_type":"leads","file_id":"1R1cbTkX67QMV1pNCcoIJWGxdDlL4cJAvJ2-69EdZohw"}} {"uid":"7411654"}
[2026-04-24 23:53:16] docflow.DEBUG: AmoDrive finalize request {"url":"https://gd.glucose-dev.online/api/docflow/finalize-generated-file","payload":{"account_id":"32607138","entity_id":"41873965","entity_type":"leads","file_id":"1R1cbTkX67QMV1pNCcoIJWGxdDlL4cJAvJ2-69EdZohw"}} {"uid":"7411654"}
[2026-04-24 23:53:16] docflow.WARNING: AmoDrive finalize request failed {"url":"https://gd.glucose-dev.online/api/docflow/finalize-generated-file","http_code":null,"error":"HTTP/2 404 ","response":"[object] (stdClass: {\"ok\":false,\"error\":\"AmoDrive is not installed for this account.\",\"accountId\":32607138})","payload":{"account_id":"32607138","entity_id":"41873965","entity_type":"leads","file_id":"1R1cbTkX67QMV1pNCcoIJWGxdDlL4cJAvJ2-69EdZohw"}} {"uid":"7411654"}
