[2025-01-07 05:01:03] Production.INFO: -- Xero Api Check -- [2025-01-07 05:01:03] Production.INFO: -- curl info --Array ( [url] => https://identity.xero.com/connect/token [content_type] => application/json; charset=UTF-8 [http_code] => 200 [header_size] => 853 [request_size] => 352 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 0.936567 [namelookup_time] => 0.540357 [connect_time] => 0.550482 [pretransfer_time] => 0.863608 [size_upload] => 82 [size_download] => 2755 [speed_download] => 2941 [speed_upload] => 87 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 0.936532 [redirect_time] => 0 [redirect_url] => [primary_ip] => 23.53.4.17 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 41934 ) [2025-01-07 05:01:03] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3MzYyNDQwNjMsImV4cCI6MTczNjI0NDM2MywiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzM2MjQ0MDYzLCJhdF9oYXNoIjoiMTA1bmhHUmdhdnJFbzlxQUMwSU1wdyIsInN1YiI6Ijk4MzYzNDUwNGIxNzVkNzA4ZmYwZWQ0ZGRkNmY2NjNkIiwiYXV0aF90aW1lIjoxNzMyNTI1NTY0LCJ4ZXJvX3VzZXJpZCI6IjQxOWY5MmM4LTkxZTEtNDllNS05ZmZiLWI4YTdjNmI3ODg0NSIsImdsb2JhbF9zZXNzaW9uX2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmI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aWQiOiI0MTlmOTJjOC05MWUxLTQ5ZTUtOWZmYi1iOGE3YzZiNzg4NDUiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6ImIyMDA3MDcxY2RmMjQ5MGRhODY4OTEyMTVhNDQwNTJiIiwic2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiLCJqdGkiOiJGNTNDRTI4MjFGRjY3QzE5NEU2QTNFQzgwQjFCNUVCQiIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiNzc3OWNmODUtMTcwNS00MmYyLWI1Y2MtYTdmZWQ3ZTNjNDI4Iiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.P5svoCREO1bgCgYdCjt5QAOpfRxaiNZMkBhmZVYwncwYwbFIaLugVZXizkefCBZ_IdwK5ezKzVDUmQHVctFkTgOeWp5SKeD1gfDz6UuYz_f8pB3XS5lg9DOGakIoljQOp9B-cG7S4C9xzNL9IBHaZRcr4-yccs4tswJN4gFU-8bkfdFwnmHRl-vwNmGiTEWklQThWXfd5PasH3kFBaV75-vUIGGUNea6VepOF4BVtn_m9k_Xjl_Oq5GpBpeqbJdRiJM9enjxe5BtORlJuELUAHHsOLOcJg0Nbuw7X5vUQz_Jk7mIFbZGGspXotHphm4dIt2tbRIR6gHkym2QgIN1ZQ [expires_in] => 1800 [token_type] => Bearer [refresh_token] => SZqOuOmYR7_rwVbkYcYn2zKEFHK3G5NIXxQvXWNR0aM [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 05:01:04] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAy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ImFtciI6WyJwd2QiXX0.P5svoCREO1bgCgYdCjt5QAOpfRxaiNZMkBhmZVYwncwYwbFIaLugVZXizkefCBZ_IdwK5ezKzVDUmQHVctFkTgOeWp5SKeD1gfDz6UuYz_f8pB3XS5lg9DOGakIoljQOp9B-cG7S4C9xzNL9IBHaZRcr4-yccs4tswJN4gFU-8bkfdFwnmHRl-vwNmGiTEWklQThWXfd5PasH3kFBaV75-vUIGGUNea6VepOF4BVtn_m9k_Xjl_Oq5GpBpeqbJdRiJM9enjxe5BtORlJuELUAHHsOLOcJg0Nbuw7X5vUQz_Jk7mIFbZGGspXotHphm4dIt2tbRIR6gHkym2QgIN1ZQ [expires_in] => 1800 [token_type] => Bearer [refresh_token] => SZqOuOmYR7_rwVbkYcYn2zKEFHK3G5NIXxQvXWNR0aM [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 05:01:04] Production.INFO: AccountID 56 [2025-01-07 05:01:04] Production.INFO: AccountName Alexander and Casey Law [2025-01-07 05:01:04] Production.INFO: Checkcustomer [2025-01-07 05:01:04] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Alexander%20and%20Casey%20Law" [2025-01-07 05:01:07] Production.INFO: Contact id print CheckCustomer Case===3b1c6fb0-8df6-447b-805b-319c8fd7f13f [2025-01-07 05:01:07] Production.INFO: -- count --1 [2025-01-07 05:01:07] Production.INFO: AccountID 188 [2025-01-07 05:01:07] Production.INFO: AccountName All Care Insurance Brokers Ltd. [2025-01-07 05:01:07] Production.INFO: Checkcustomer [2025-01-07 05:01:07] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="All%20Care%20Insurance%20Brokers%20Ltd." [2025-01-07 05:01:09] Production.INFO: Contact id print CheckCustomer Case===6d542d8f-684c-435c-82fd-abdec98b3c10 [2025-01-07 05:01:09] Production.INFO: -- count --1 [2025-01-07 05:01:09] Production.INFO: AccountID 235 [2025-01-07 05:01:09] Production.INFO: AccountName All Seasons Learning Center [2025-01-07 05:01:09] Production.INFO: Checkcustomer [2025-01-07 05:01:09] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="All%20Seasons%20Learning%20Center" [2025-01-07 05:01:13] Production.INFO: Contact id print CheckCustomer Case===680201a7-650c-4c24-b7d7-b8171bdcd911 [2025-01-07 05:01:13] Production.INFO: -- count --1 [2025-01-07 05:01:13] Production.INFO: AccountID 235 [2025-01-07 05:01:13] Production.INFO: AccountName All Seasons Learning Center [2025-01-07 05:01:13] Production.INFO: Checkcustomer [2025-01-07 05:01:13] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="All%20Seasons%20Learning%20Center" [2025-01-07 05:01:16] Production.INFO: Contact id print CheckCustomer Case===680201a7-650c-4c24-b7d7-b8171bdcd911 [2025-01-07 05:01:16] Production.INFO: -- count --1 [2025-01-07 05:01:16] Production.INFO: AccountID 235 [2025-01-07 05:01:16] Production.INFO: AccountName All Seasons Learning Center [2025-01-07 05:01:16] Production.INFO: Checkcustomer [2025-01-07 05:01:16] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="All%20Seasons%20Learning%20Center" [2025-01-07 05:01:18] Production.INFO: Contact id print CheckCustomer Case===680201a7-650c-4c24-b7d7-b8171bdcd911 [2025-01-07 05:01:18] Production.INFO: -- count --1 [2025-01-07 05:01:18] Production.INFO: -- Xero Add Inovice -- [2025-01-07 05:01:18] Production.INFO: CheckInvoice xerov2: INV11251 [2025-01-07 05:01:18] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11251 [2025-01-07 05:01:21] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 05:01:21] Production.INFO: Invoice SubTotal 18.210000 [2025-01-07 05:01:21] Production.INFO: Invoice DetTotal 18.21 [2025-01-07 05:01:21] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Alexander%20and%20Casey%20Law" [2025-01-07 05:01:23] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 05:01:27] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 05:01:30] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 05:01:33] Production.INFO: =========Invoices String here======{AccountCode : 234,DiscountRate : 0.000000,"Description": " From 11-21-2024 To 12-20-2024",Quantity : 1,UnitAmount : 0.710000,LineAmount : 0.710000},{AccountCode : 203,DiscountRate : 0.000000,"Description": "License for a Pay As You Go Cloud Phone extension",Quantity : 3,UnitAmount : 5.000000,LineAmount : 15.000000},{AccountCode : 203,DiscountRate : 0.000000,"Description": "e911 address registration (13162691100 - 225 N MARKET ST STE 230 WICHITA, KS 67202)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000} [2025-01-07 05:01:36] Production.INFO: ==== result ===== [2025-01-07 05:01:36] Production.INFO: { "Id": "84c5eb37-29d5-4416-b5d7-ac472c01ecaa", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736244096329)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "3552236b-2641-4b49-b209-1fe771c39c34", "InvoiceNumber": "INV11251", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 20.58, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "3b1c6fb0-8df6-447b-805b-319c8fd7f13f", "ContactStatus": "ACTIVE", "Name": "Alexander and Casey Law", "FirstName": "", "LastName": "", "EmailAddress": "", "BankAccountDetails": "", "AccountsReceivableTaxType": "TAX007", "AccountsPayableTaxType": "TAX007", "Addresses": [ { "AddressType": "STREET", "City": "", "Region": "", "PostalCode": "", "Country": "", "AttentionTo": "" }, { "AddressType": "POBOX", "City": "", "Region": "", "PostalCode": "", "Country": "", "AttentionTo": "" } ], "Phones": [ { "PhoneType": "DEFAULT", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "DDI", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "FAX", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "MOBILE", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" } ], "UpdatedDateUTC": "\/Date(1549906801707+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-12-21T00:00:00", "Date": "\/Date(1734739200000+0000)\/", "DueDateString": "2024-12-28T00:00:00", "DueDate": "\/Date(1735344000000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "From 11-21-2024 To 12-20-2024", "UnitAmount": 0.71, "TaxType": "OUTPUT", "TaxAmount": 0.09, "LineAmount": 0.71, "AccountCode": "234", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "2d7d2b99-4659-4091-aea3-ff1c8dda539d", "AccountID": "8dfd3f31-78c9-433b-85d4-b6b294f097b7", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "License for a Pay As You Go Cloud Phone extension", "UnitAmount": 5.00, "TaxType": "OUTPUT", "TaxAmount": 1.95, "LineAmount": 15.00, "AccountCode": "203", "Tracking": [], "Quantity": 3.0000, "DiscountRate": 0.00, "LineItemID": "f20bc5e7-a4e8-49b5-8511-0b9e679ccffa", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (13162691100 - 225 N MARKET ST STE 230 WICHITA, KS 67202)", "UnitAmount": 2.50, "TaxType": "OUTPUT", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "5d2d357b-9ec0-4719-836d-215626d57153", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 18.21, "TotalTax": 2.37, "Total": 20.58, "UpdatedDateUTC": "\/Date(1736244096250+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 05:01:36] Production.INFO: -- Create Invoice id --3552236b-2641-4b49-b209-1fe771c39c34 [2025-01-07 05:01:36] Production.INFO: -- Create Invoice Done -- [2025-01-07 05:01:36] Production.INFO: CheckInvoice xerov2: INV11155 [2025-01-07 05:01:36] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11155 [2025-01-07 05:01:39] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 05:01:39] Production.INFO: Invoice SubTotal 24.200000 [2025-01-07 05:01:39] Production.INFO: Invoice DetTotal 24.2 [2025-01-07 05:01:39] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="All%20Care%20Insurance%20Brokers%20Ltd." [2025-01-07 05:01:41] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 05:01:44] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 05:01:46] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 05:01:49] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 234,DiscountRate : 0.000000,"Description": " From 11-05-2024 To 12-04-2024",Quantity : 1,UnitAmount : 11.700000,LineAmount : 11.700000},{taxType:"TAX020",AccountCode : 203,"Description": "License for an Unlimited Canada/US Cloud Phone extension",Quantity : 1,UnitAmount : 10.000000,LineAmount : 10.000000},{taxType:"TAX020",AccountCode : 203,"Description": "e911 address registration (9053321362 - 1332 Khalsa Drive 11 Mississauga, ON L5S 0A2 Canada)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000} [2025-01-07 05:01:52] Production.INFO: ==== result ===== [2025-01-07 05:01:52] Production.INFO: { "Id": "af45ed50-5439-4ef7-9fe4-d22a022f787b", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736244112426)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "9f3a973f-c9d1-449e-8785-8fa15b0f17df", "InvoiceNumber": "INV11155", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 27.35, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "6d542d8f-684c-435c-82fd-abdec98b3c10", "ContactStatus": "ACTIVE", "Name": "All Care Insurance Brokers Ltd.", "FirstName": "Manwinder", "LastName": "Mangat", "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(1696240411443+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-12-05T00:00:00", "Date": "\/Date(1733356800000+0000)\/", "DueDateString": "2025-01-04T00:00:00", "DueDate": "\/Date(1735948800000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "From 11-05-2024 To 12-04-2024", "UnitAmount": 11.70, "TaxType": "TAX020", "TaxAmount": 1.52, "LineAmount": 11.70, "AccountCode": "234", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "7247e63a-16c1-488a-a81b-bd4ef7fa76ba", "AccountID": "8dfd3f31-78c9-433b-85d4-b6b294f097b7", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "License for an Unlimited Canada/US Cloud Phone extension", "UnitAmount": 10.00, "TaxType": "TAX020", "TaxAmount": 1.30, "LineAmount": 10.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "LineItemID": "6cf273e1-7666-4502-8fba-8227405fd2e1", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] }, { "Description": "e911 address registration (9053321362 - 1332 Khalsa Drive 11 Mississauga, ON L5S 0A2 Canada)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "LineItemID": "a2570f88-a380-4b4a-b1dd-dc73883cb261", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] } ], "SubTotal": 24.20, "TotalTax": 3.15, "Total": 27.35, "UpdatedDateUTC": "\/Date(1736244112333+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 05:01:52] Production.INFO: -- Create Invoice id --9f3a973f-c9d1-449e-8785-8fa15b0f17df [2025-01-07 05:01:52] Production.INFO: -- Create Invoice Done -- [2025-01-07 05:01:52] Production.INFO: CheckInvoice xerov2: INV10461 [2025-01-07 05:01:52] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV10461 [2025-01-07 05:01:55] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 05:01:55] Production.INFO: ========================== Exception occured ============================= [2025-01-07 05:01:55] Production.ERROR: exception 'ErrorException' with message 'Undefined offset: 33' 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 05:01:55] Production.INFO: ========================== Exception updated in job and email sent ============================= [2025-01-07 05:01:55] Production.INFO: ==3561== Releasing lock... [2025-01-07 05:01:55] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-10423 #Stops# [2025-01-07 05:01:55] Production.INFO: 30.75 MB #Memory Used#