[2025-01-07 06:04:03] Production.INFO: -- Xero Api Check -- [2025-01-07 06:04:04] Production.INFO: -- curl info --Array ( [url] => https://identity.xero.com/connect/token [content_type] => application/json; charset=UTF-8 [http_code] => 200 [header_size] => 856 [request_size] => 352 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 0.74538 [namelookup_time] => 0.275159 [connect_time] => 0.285819 [pretransfer_time] => 0.55324 [size_upload] => 82 [size_download] => 2755 [speed_download] => 3696 [speed_upload] => 110 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 0.745351 [redirect_time] => 0 [redirect_url] => [primary_ip] => 23.53.4.17 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 43492 ) [2025-01-07 06:04:04] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3MzYyNDc4NDQsImV4cCI6MTczNjI0ODE0NCwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzM2MjQ3ODQ0LCJhdF9oYXNoIjoibkdpWHJxenB5bW13bC16ZHM3cGd3ZyIsInN1YiI6Ijk4MzYzNDUwNGIxNzVkNzA4ZmYwZWQ0ZGRkNmY2NjNkIiwiYXV0aF90aW1lIjoxNzMyNTI1NTY0LCJ4ZXJvX3VzZXJpZCI6IjQxOWY5MmM4LTkxZTEtNDllNS05ZmZiLWI4YTdjNmI3ODg0NSIsImdsb2JhbF9zZXNzaW9uX2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmI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iI0MTlmOTJjOC05MWUxLTQ5ZTUtOWZmYi1iOGE3YzZiNzg4NDUiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6ImIyMDA3MDcxY2RmMjQ5MGRhODY4OTEyMTVhNDQwNTJiIiwic2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiLCJqdGkiOiJGNTNDRTI4MjFGRjY3QzE5NEU2QTNFQzgwQjFCNUVCQiIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiNzc3OWNmODUtMTcwNS00MmYyLWI1Y2MtYTdmZWQ3ZTNjNDI4Iiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.gUgO5_cIC7vO_AdMQCW9jNWm7odeFJ96vDZXi8vHc2gHBYJ06H-WnD1XkqJaanqkmDvGdC2qoG1tz43oV44zKkoOivXKSjiJnvb6_N9RLiWE7fFbfRz8YreDirhVJbv6CZRsnDN8ILPEhBQYp_aBX46X6QVdc2QQvpliXs4WxII9uW9qQlnYrFPz9rUBE7K2ze6HJs9if07fLy8RAQnKLDVVeTFYuHzGE2XjQnc2UQVqspxAIpuLnxMjCjY_hQKUfiQ-KD4N6bhfAhjMogAR_KALDYJe_i7RDNG3T72Zl0aEX0FyWR-I4axppmjMHyLS7e2iyOAdCe6yY86P3phT8Q [expires_in] => 1800 [token_type] => Bearer [refresh_token] => 23vkJEQtPIXkbVUDvYiKv88tyA1iXwVXttVn-ukqBgQ [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 06:04:04] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2N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2QiXX0.gUgO5_cIC7vO_AdMQCW9jNWm7odeFJ96vDZXi8vHc2gHBYJ06H-WnD1XkqJaanqkmDvGdC2qoG1tz43oV44zKkoOivXKSjiJnvb6_N9RLiWE7fFbfRz8YreDirhVJbv6CZRsnDN8ILPEhBQYp_aBX46X6QVdc2QQvpliXs4WxII9uW9qQlnYrFPz9rUBE7K2ze6HJs9if07fLy8RAQnKLDVVeTFYuHzGE2XjQnc2UQVqspxAIpuLnxMjCjY_hQKUfiQ-KD4N6bhfAhjMogAR_KALDYJe_i7RDNG3T72Zl0aEX0FyWR-I4axppmjMHyLS7e2iyOAdCe6yY86P3phT8Q [expires_in] => 1800 [token_type] => Bearer [refresh_token] => 23vkJEQtPIXkbVUDvYiKv88tyA1iXwVXttVn-ukqBgQ [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 06:04:04] Production.INFO: AccountID 78 [2025-01-07 06:04:04] Production.INFO: AccountName Halcyon Travel [2025-01-07 06:04:04] Production.INFO: Checkcustomer [2025-01-07 06:04:04] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Halcyon%20Travel" [2025-01-07 06:04:07] Production.INFO: Contact id print CheckCustomer Case===2fb0f102-2ef2-41cf-8d40-4c3f58cf996f [2025-01-07 06:04:07] Production.INFO: -- count --1 [2025-01-07 06:04:07] Production.INFO: AccountID 78 [2025-01-07 06:04:07] Production.INFO: AccountName Halcyon Travel [2025-01-07 06:04:07] Production.INFO: Checkcustomer [2025-01-07 06:04:07] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Halcyon%20Travel" [2025-01-07 06:04:09] Production.INFO: Contact id print CheckCustomer Case===2fb0f102-2ef2-41cf-8d40-4c3f58cf996f [2025-01-07 06:04:09] Production.INFO: -- count --1 [2025-01-07 06:04:09] Production.INFO: AccountID 230 [2025-01-07 06:04:09] Production.INFO: AccountName Harbourfront Medicine Cabinet [2025-01-07 06:04:09] Production.INFO: Checkcustomer [2025-01-07 06:04:09] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Harbourfront%20Medicine%20Cabinet" [2025-01-07 06:04:13] Production.INFO: Contact id print CheckCustomer Case===e4609e79-2a2f-49b0-a0f8-9766de2b1774 [2025-01-07 06:04:13] Production.INFO: -- count --1 [2025-01-07 06:04:13] Production.INFO: AccountID 230 [2025-01-07 06:04:13] Production.INFO: AccountName Harbourfront Medicine Cabinet [2025-01-07 06:04:13] Production.INFO: Checkcustomer [2025-01-07 06:04:13] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Harbourfront%20Medicine%20Cabinet" [2025-01-07 06:04:15] Production.INFO: Contact id print CheckCustomer Case===e4609e79-2a2f-49b0-a0f8-9766de2b1774 [2025-01-07 06:04:15] Production.INFO: -- count --1 [2025-01-07 06:04:15] Production.INFO: AccountID 25 [2025-01-07 06:04:15] Production.INFO: AccountName Harding Security [2025-01-07 06:04:15] Production.INFO: Checkcustomer [2025-01-07 06:04:15] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Harding%20Security" [2025-01-07 06:04:18] Production.INFO: Contact id print CheckCustomer Case===631aa009-5337-4bbb-817f-724f7ca5f6db [2025-01-07 06:04:18] Production.INFO: -- count --1 [2025-01-07 06:04:18] Production.INFO: AccountID 25 [2025-01-07 06:04:18] Production.INFO: AccountName Harding Security [2025-01-07 06:04:18] Production.INFO: Checkcustomer [2025-01-07 06:04:18] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Harding%20Security" [2025-01-07 06:04:20] Production.INFO: Contact id print CheckCustomer Case===631aa009-5337-4bbb-817f-724f7ca5f6db [2025-01-07 06:04:20] Production.INFO: -- count --1 [2025-01-07 06:04:20] Production.INFO: AccountID 25 [2025-01-07 06:04:20] Production.INFO: AccountName Harding Security [2025-01-07 06:04:20] Production.INFO: Checkcustomer [2025-01-07 06:04:20] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Harding%20Security" [2025-01-07 06:04:23] Production.INFO: Contact id print CheckCustomer Case===631aa009-5337-4bbb-817f-724f7ca5f6db [2025-01-07 06:04:23] Production.INFO: -- count --1 [2025-01-07 06:04:23] Production.INFO: -- Xero Add Inovice -- [2025-01-07 06:04:23] Production.INFO: CheckInvoice xerov2: INV10921 [2025-01-07 06:04:23] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV10921 [2025-01-07 06:04:25] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 06:04:25] Production.INFO: Invoice SubTotal 17.900000 [2025-01-07 06:04:25] Production.INFO: Invoice DetTotal 17.9 [2025-01-07 06:04:25] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Halcyon%20Travel" [2025-01-07 06:04:27] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 06:04:31] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 06:04:33] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 06:04:35] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 234,DiscountRate : 0.000000,"Description": " From 09-19-2024 To 10-18-2024",Quantity : 1,UnitAmount : 5.400000,LineAmount : 5.400000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "License for a Pay As You Go Cloud Phone extension",Quantity : 1,UnitAmount : 10.000000,LineAmount : 10.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "e911 address registration (19052019009 - 50 Anderson Ave., Markham, ON L6E 1A6 Canada)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000} [2025-01-07 06:04:38] Production.INFO: ==== result ===== [2025-01-07 06:04:38] Production.INFO: { "Id": "45af46cb-ca5f-4f80-8c91-d0ea7270448a", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736247878322)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "b882d987-0eb9-4c6d-bd0e-febf915ee94d", "InvoiceNumber": "INV10921", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 20.23, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "2fb0f102-2ef2-41cf-8d40-4c3f58cf996f", "ContactStatus": "ACTIVE", "Name": "Halcyon Travel", "EmailAddress": "", "BankAccountDetails": "", "Addresses": [ { "AddressType": "STREET", "City": "", "Region": "", "PostalCode": "", "Country": "" }, { "AddressType": "POBOX", "City": "", "Region": "", "PostalCode": "", "Country": "" } ], "Phones": [ { "PhoneType": "DEFAULT", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "DDI", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "FAX", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "MOBILE", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" } ], "UpdatedDateUTC": "\/Date(1533070479233+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-10-19T00:00:00", "Date": "\/Date(1729296000000+0000)\/", "DueDateString": "2024-11-18T00:00:00", "DueDate": "\/Date(1731888000000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "From 09-19-2024 To 10-18-2024", "UnitAmount": 5.40, "TaxType": "TAX020", "TaxAmount": 0.70, "LineAmount": 5.40, "AccountCode": "234", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "5528271f-3465-4abf-ade1-940070b77885", "AccountID": "8dfd3f31-78c9-433b-85d4-b6b294f097b7", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "License for a Pay As You Go Cloud Phone extension", "UnitAmount": 10.00, "TaxType": "TAX020", "TaxAmount": 1.30, "LineAmount": 10.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "e8755d37-d309-4088-a6a7-6be54bb697b0", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (19052019009 - 50 Anderson Ave., Markham, ON L6E 1A6 Canada)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "318ca20c-f458-422e-9558-5c6853f07866", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 17.90, "TotalTax": 2.33, "Total": 20.23, "UpdatedDateUTC": "\/Date(1736247878243+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 06:04:38] Production.INFO: -- Create Invoice id --b882d987-0eb9-4c6d-bd0e-febf915ee94d [2025-01-07 06:04:38] Production.INFO: -- Create Invoice Done -- [2025-01-07 06:04:38] Production.INFO: CheckInvoice xerov2: INV11242 [2025-01-07 06:04:38] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11242 [2025-01-07 06:04:41] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 06:04:41] Production.INFO: Invoice SubTotal 15.050000 [2025-01-07 06:04:41] Production.INFO: Invoice DetTotal 15.05 [2025-01-07 06:04:41] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Halcyon%20Travel" [2025-01-07 06:04:44] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 06:04:46] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 06:04:48] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 06:04:51] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 234,DiscountRate : 0.000000,"Description": " From 11-19-2024 To 12-18-2024",Quantity : 1,UnitAmount : 2.550000,LineAmount : 2.550000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "License for a Pay As You Go Cloud Phone extension",Quantity : 1,UnitAmount : 10.000000,LineAmount : 10.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "e911 address registration (19052019009 - 50 Anderson Ave., Markham, ON L6E 1A6 Canada)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000} [2025-01-07 06:04:54] Production.INFO: ==== result ===== [2025-01-07 06:04:54] Production.INFO: { "Id": "656d6c1c-fe1f-4421-bf57-19724b337eb3", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736247894612)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "8b416211-a486-476b-a186-faa93d106120", "InvoiceNumber": "INV11242", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 17.01, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "2fb0f102-2ef2-41cf-8d40-4c3f58cf996f", "ContactStatus": "ACTIVE", "Name": "Halcyon Travel", "EmailAddress": "", "BankAccountDetails": "", "Addresses": [ { "AddressType": "STREET", "City": "", "Region": "", "PostalCode": "", "Country": "" }, { "AddressType": "POBOX", "City": "", "Region": "", "PostalCode": "", "Country": "" } ], "Phones": [ { "PhoneType": "DEFAULT", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "DDI", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "FAX", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "MOBILE", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" } ], "UpdatedDateUTC": "\/Date(1533070479233+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-12-19T00:00:00", "Date": "\/Date(1734566400000+0000)\/", "DueDateString": "2025-01-18T00:00:00", "DueDate": "\/Date(1737158400000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "From 11-19-2024 To 12-18-2024", "UnitAmount": 2.55, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.55, "AccountCode": "234", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "8c7b11f6-f273-4bb9-bc73-0b873f315ee4", "AccountID": "8dfd3f31-78c9-433b-85d4-b6b294f097b7", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "License for a Pay As You Go Cloud Phone extension", "UnitAmount": 10.00, "TaxType": "TAX020", "TaxAmount": 1.30, "LineAmount": 10.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "eed3fac4-a51b-4180-9106-41c849ae9725", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (19052019009 - 50 Anderson Ave., Markham, ON L6E 1A6 Canada)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "7f87d93c-d640-4266-973b-01bcc6f5134d", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 15.05, "TotalTax": 1.96, "Total": 17.01, "UpdatedDateUTC": "\/Date(1736247894567+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 06:04:54] Production.INFO: -- Create Invoice id --8b416211-a486-476b-a186-faa93d106120 [2025-01-07 06:04:54] Production.INFO: -- Create Invoice Done -- [2025-01-07 06:04:54] Production.INFO: CheckInvoice xerov2: INV10819 [2025-01-07 06:04:54] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV10819 [2025-01-07 06:04:57] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 06:04:57] Production.INFO: ========================== Exception occured ============================= [2025-01-07 06:04:57] Production.ERROR: exception 'ErrorException' with message 'Undefined offset: 47' in /var/www/html/onswitch.neon.service/app/lib/XeroV2.php:0 Stack trace: #0 /var/www/html/onswitch.neon.service/app/lib/XeroV2.php(0): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8, 'Undefined offse...', '/var/www/html/o...', 0, Array) #1 /var/www/html/onswitch.neon.service/app/lib/XeroV2.php(0): App\Lib\XeroV2->GetInvoiceData() #2 /var/www/html/onswitch.neon.service/app/lib/XeroV2.php(0): App\Lib\XeroV2->CreateInvoice() #3 /var/www/html/onswitch.neon.service/app/Console/Commands/XeroInvoicePostV2.php(0): App\Lib\XeroV2->addInvoices() #4 [internal function]: App\Console\Commands\XeroInvoicePostV2->fire() #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\XeroInvoicePostV2), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 {main} [2025-01-07 06:04:57] Production.INFO: ========================== Exception updated in job and email sent ============================= [2025-01-07 06:04:57] Production.INFO: ==9078== Releasing lock... [2025-01-07 06:04:57] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-10442 #Stops# [2025-01-07 06:04:57] Production.INFO: 30.75 MB #Memory Used#