[2025-01-07 06:07:03] Production.INFO: -- Xero Api Check -- [2025-01-07 06:07: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] => 857 [request_size] => 352 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 1.035837 [namelookup_time] => 0.284037 [connect_time] => 0.29505 [pretransfer_time] => 0.560385 [size_upload] => 82 [size_download] => 2755 [speed_download] => 2659 [speed_upload] => 79 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 1.035805 [redirect_time] => 0 [redirect_url] => [primary_ip] => 23.53.4.17 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 43546 ) [2025-01-07 06:07:04] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3MzYyNDgwMjQsImV4cCI6MTczNjI0ODMyNCwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzM2MjQ4MDI0LCJhdF9oYXNoIjoiUklxYWptWFlKMGVnQ3Utak4zWkY0ZyIsInN1YiI6Ijk4MzYzNDUwNGIxNzVkNzA4ZmYwZWQ0ZGRkNmY2NjNkIiwiYXV0aF90aW1lIjoxNzMyNTI1NTY0LCJ4ZXJvX3VzZXJpZCI6IjQxOWY5MmM4LTkxZTEtNDllNS05ZmZiLWI4YTdjNmI3ODg0NSIsImdsb2JhbF9zZXNzaW9uX2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmI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aWQiOiI0MTlmOTJjOC05MWUxLTQ5ZTUtOWZmYi1iOGE3YzZiNzg4NDUiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6ImIyMDA3MDcxY2RmMjQ5MGRhODY4OTEyMTVhNDQwNTJiIiwic2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiLCJqdGkiOiJGNTNDRTI4MjFGRjY3QzE5NEU2QTNFQzgwQjFCNUVCQiIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiNzc3OWNmODUtMTcwNS00MmYyLWI1Y2MtYTdmZWQ3ZTNjNDI4Iiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.WuOjA_O2dZhBb_eNlQXfIHnMySBlWDgRRv9bblT-2CCDntdUW0e9319x1pWSg5vKqGcYeUlsJBRhS-2XFaY5HeLH2hkTQ5Kht7qwOqmMI8SFKqpG74MOMftyEKhnb3vyioVQJRK4GvDlqwiRbRsk2wdWSDuPlk7obaK89ZsTYYvZV7D7MVrRxK610WVcOl62aDI2JhtclWN-Mq4eB8XYbbneJ-YSOw0mJhg3PpfM-0xw15CAD-Yt-8RVHB-DWb799j6-YPjvTsE38UB4gIFkmYZUFu1Q8hpoTJ4NSryT3TvLRP72L1ZvT_OabWWzIarhh8lt4CBd8426vFs4wgUI1g [expires_in] => 1800 [token_type] => Bearer [refresh_token] => DLhAYcUxrIO1uv0hhYw8v6Kiab72NSMzZJj60a24P7Y [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 06:07:04] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOE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tciI6WyJwd2QiXX0.WuOjA_O2dZhBb_eNlQXfIHnMySBlWDgRRv9bblT-2CCDntdUW0e9319x1pWSg5vKqGcYeUlsJBRhS-2XFaY5HeLH2hkTQ5Kht7qwOqmMI8SFKqpG74MOMftyEKhnb3vyioVQJRK4GvDlqwiRbRsk2wdWSDuPlk7obaK89ZsTYYvZV7D7MVrRxK610WVcOl62aDI2JhtclWN-Mq4eB8XYbbneJ-YSOw0mJhg3PpfM-0xw15CAD-Yt-8RVHB-DWb799j6-YPjvTsE38UB4gIFkmYZUFu1Q8hpoTJ4NSryT3TvLRP72L1ZvT_OabWWzIarhh8lt4CBd8426vFs4wgUI1g [expires_in] => 1800 [token_type] => Bearer [refresh_token] => DLhAYcUxrIO1uv0hhYw8v6Kiab72NSMzZJj60a24P7Y [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 06:07:04] Production.INFO: AccountID 131 [2025-01-07 06:07:04] Production.INFO: AccountName Infinite Possibilities [2025-01-07 06:07:04] Production.INFO: Checkcustomer [2025-01-07 06:07:04] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Infinite%20Possibilities" [2025-01-07 06:07:07] Production.INFO: Contact id print CheckCustomer Case===a00da236-4e1c-4856-8599-fd3ed8268a07 [2025-01-07 06:07:07] Production.INFO: -- count --1 [2025-01-07 06:07:07] Production.INFO: AccountID 232 [2025-01-07 06:07:07] Production.INFO: AccountName Jenopher Inc. [2025-01-07 06:07:07] Production.INFO: Checkcustomer [2025-01-07 06:07:07] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Jenopher%20Inc." [2025-01-07 06:07:09] Production.INFO: Contact id print CheckCustomer Case===5fa26058-5c6f-4ffe-9c35-4f8d77ccf359 [2025-01-07 06:07:09] Production.INFO: -- count --1 [2025-01-07 06:07:09] Production.INFO: AccountID 232 [2025-01-07 06:07:09] Production.INFO: AccountName Jenopher Inc. [2025-01-07 06:07:09] Production.INFO: Checkcustomer [2025-01-07 06:07:09] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Jenopher%20Inc." [2025-01-07 06:07:11] Production.INFO: Contact id print CheckCustomer Case===5fa26058-5c6f-4ffe-9c35-4f8d77ccf359 [2025-01-07 06:07:11] Production.INFO: -- count --1 [2025-01-07 06:07:11] Production.INFO: -- Xero Add Inovice -- [2025-01-07 06:07:11] Production.INFO: CheckInvoice xerov2: INV11208 [2025-01-07 06:07:11] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11208 [2025-01-07 06:07:14] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 06:07:14] Production.INFO: Invoice SubTotal 5.000000 [2025-01-07 06:07:14] Production.INFO: Invoice DetTotal 5 [2025-01-07 06:07:14] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Infinite%20Possibilities" [2025-01-07 06:07:17] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 06:07:20] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 06:07:23] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 06:07:26] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "License for a Pay As You Go Cloud Phone toll free DID (18666955378)",Quantity : 1,UnitAmount : 5.000000,LineAmount : 5.000000} [2025-01-07 06:07:28] Production.INFO: ==== result ===== [2025-01-07 06:07:28] Production.INFO: { "Id": "50358b14-6ba8-43f5-9a7e-543fbbbdc31a", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736248048572)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "9e3581e8-3926-42a1-84c3-019b6e8249d8", "InvoiceNumber": "INV11208", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 5.65, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "a00da236-4e1c-4856-8599-fd3ed8268a07", "ContactStatus": "ACTIVE", "Name": "Infinite Possibilities", "FirstName": "Rob", "LastName": "Brubacher", "EmailAddress": "accounts@ipdesignbuild.com", "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(1594746678157+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-12-13T00:00:00", "Date": "\/Date(1734048000000+0000)\/", "DueDateString": "2025-01-12T00:00:00", "DueDate": "\/Date(1736640000000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "License for a Pay As You Go Cloud Phone toll free DID (18666955378)", "UnitAmount": 5.00, "TaxType": "TAX020", "TaxAmount": 0.65, "LineAmount": 5.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "2e1c59e2-2b94-4dcc-b99b-43ca8ab249ce", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 5.00, "TotalTax": 0.65, "Total": 5.65, "UpdatedDateUTC": "\/Date(1736248048477+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 06:07:28] Production.INFO: -- Create Invoice id --9e3581e8-3926-42a1-84c3-019b6e8249d8 [2025-01-07 06:07:28] Production.INFO: -- Create Invoice Done -- [2025-01-07 06:07:28] Production.INFO: CheckInvoice xerov2: INV10678 [2025-01-07 06:07:28] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV10678 [2025-01-07 06:07:30] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 06:07:30] Production.INFO: ========================== Exception occured ============================= [2025-01-07 06:07:30] Production.ERROR: exception 'ErrorException' with message 'Undefined offset: 88' 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:07:30] Production.INFO: ========================== Exception updated in job and email sent ============================= [2025-01-07 06:07:30] Production.INFO: ==9392== Releasing lock... [2025-01-07 06:07:30] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-10443 #Stops# [2025-01-07 06:07:30] Production.INFO: 29.5 MB #Memory Used#