twilio-node
twilio-node copied to clipboard
Certificate error while creating conversation message in ie1
Issue Summary
I have a simple webapp with two firebase cloud functions to get the user token and to send a message from the system to the user. With the region setted to us1 it all work OK. Today when I changed the all the apiKeys and secrets to the ie1 (following the guide on the help page) the getToken function is working OK, but the sendMessage functions give an error at the moment of sending a message.
I would like to know if it is an issue with my settings/secrets code or from twilio part
Steps to Reproduce
- Create a cloud function with the code
- Tested with region 'us1' all OK
- Added the twilioOptions and changed the accountSid and twilioAuthToken to ie1
Code Snippet
const twilioOptions = { region: 'ie1' }
const client = twilio(accountSid, twilioAuthToken, twilioOptions)
const conversation = await client.conversations.v1.conversations(convId)
conversation.messages.create({
body: 'Message',
})
Exception/Log
> node:internal/process/promises:289
> triggerUncaughtException(err, true /* fromPromise */);
> ^
> AxiosError: Hostname/IP does not match certificate's altnames: Host: conversations.ie1.twilio.com. is not in the cert's altnames: DNS:console.ireland.ie1.twilio.com, DNS:console.ie1.twilio.com
> at AxiosError.from (C:\Users\gabri\Projects\como-lake-advisors\functions\node_modules\axios\dist\node\axios.cjs:837:14)
> at ClientRequest.handleRequestError (C:\Users\gabri\Projects\como-lake-advisors\functions\node_modules\axios\dist\node\axios.cjs:3087:25)
> at ClientRequest.emit (node:events:518:28)
> at TLSSocket.socketErrorListener (node:_http_client:495:9)
> at TLSSocket.emit (node:events:518:28)
> at emitErrorNT (node:internal/streams/destroy:169:8)
> at emitErrorCloseNT (node:internal/streams/destroy:128:3)
> at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
> at Axios.request (C:\Users\gabri\Projects\como-lake-advisors\functions\node_modules\axios\dist\node\axios.cjs:3877:41)
> at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
> cert: {
> subject: [Object: null prototype] { CN: 'console.ireland.ie1.twilio.com' },
> issuer: [Object: null prototype] {
> C: 'US',
> O: 'Amazon',
> CN: 'Amazon RSA 2048 M01'
> },
> subjectaltname: 'DNS:console.ireland.ie1.twilio.com, DNS:console.ie1.twilio.com',
> infoAccess: [Object: null prototype] {
> 'OCSP - URI': [ 'http://ocsp.r2m01.amazontrust.com' ],
> 'CA Issuers - URI': [ 'http://crt.r2m01.amazontrust.com/r2m01.cer' ]
> },
> ca: false,
> modulus: 'A44E35F7C9FC892C0531925E0AC528F1D54766ACF6CD68D23D80003907EF9059EEA1375189E738484230BF6057EAF9666AF42919CA0CDEB96DF77828036F881C440F4AFC9C88953D104854489FBD31120E71E283895FCD32ECD0258E746BAC14F4E3F58A6447E4E8E6E5C7523E955F8B2F5974EDBA4069CE80FA12BC90CBD5EBE3B768C0192480FE3BD7E82172F41D435ECF2D62DE3723126C7FCFF0BBE6A23D9B0F7C4D165A115C3169EECD457CBF91D00597802E8EA10A04A277BE02AD3D09E87EA9BB78913BE965ECB35F92AF6BD2C936FB96379E81ADAD2F32CBC8726D67E1DE63BF0AF9E43D0761E2D74446419D35FCC64EEEF45B68F8E0C07F49C67245',
> bits: 2048,
> exponent: '0x10001',
> pubkey: Buffer(294) [Uint8Array] [
> 48, 130, 1, 34, 48, 13, 6, 9, 42, 134, 72, 134,
> 247, 13, 1, 1, 1, 5, 0, 3, 130, 1, 15, 0,
> 48, 130, 1, 10, 2, 130, 1, 1, 0, 164, 78, 53,
> 247, 201, 252, 137, 44, 5, 49, 146, 94, 10, 197, 40,
> 241, 213, 71, 102, 172, 246, 205, 104, 210, 61, 128, 0,
> 57, 7, 239, 144, 89, 238, 161, 55, 81, 137, 231, 56,
> 72, 66, 48, 191, 96, 87, 234, 249, 102, 106, 244, 41,
> 25, 202, 12, 222, 185, 109, 247, 120, 40, 3, 111, 136,
> 28, 68, 15, 74,
> ... 194 more items
> ],
> valid_from: 'May 16 00:00:00 2023 GMT',
> valid_to: 'Jun 13 23:59:59 2024 GMT',
> fingerprint: '79:0B:F5:22:AD:D6:B0:2E:69:FF:8C:F5:CD:2E:91:38:DE:34:65:5A',
> fingerprint256: '0D:BF:C0:DC:CE:44:F0:D1:9D:83:AF:8E:7F:54:E5:55:45:A7:A5:10:D2:DF:F6:22:22:3F:EF:AB:2A:7F:20:50',
> fingerprint512: 'AC:C0:66:C2:3D:FC:BE:0C:35:DB:55:2A:A4:4F:AE:8A:5C:CB:0F:9D:55:30:03:B0:80:FF:73:A9:B5:43:71:0C:89:2D:BF:51:AF:4C:0A:C6:34:15:E3:09:5F:98:D3:79:C0:6D:63:C3:31:A1:E7:50:D9:63:AE:09:9C:4D:77:E6',
> ext_key_usage: [ '1.3.6.1.5.5.7.3.1', '1.3.6.1.5.5.7.3.2' ],
> serialNumber: '04CABF7DA89C6484AE27504A1CC2270E',
> raw: Buffer(1538) [Uint8Array] [
> 48, 130, 5, 254, 48, 130, 4, 230, 160, 3, 2, 1,
> 2, 2, 16, 4, 202, 191, 125, 168, 156, 100, 132, 174,
> 39, 80, 74, 28, 194, 39, 14, 48, 13, 6, 9, 42,
> 134, 72, 134, 247, 13, 1, 1, 11, 5, 0, 48, 60,
> 49, 11, 48, 9, 6, 3, 85, 4, 6, 19, 2, 85,
> 83, 49, 15, 48, 13, 6, 3, 85, 4, 10, 19, 6,
> 65, 109, 97, 122, 111, 110, 49, 28, 48, 26, 6, 3,
> 85, 4, 3, 19, 19, 65, 109, 97, 122, 111, 110, 32,
> 82, 83, 65, 32,
> ... 1438 more items
> ],
> issuerCertificate: {
> subject: [Object: null prototype] {
> C: 'US',
> O: 'Amazon',
> CN: 'Amazon RSA 2048 M01'
> },
> issuer: [Object: null prototype] {
> C: 'US',
> O: 'Amazon',
> CN: 'Amazon Root CA 1'
> },
> infoAccess: [Object: null prototype] {
> 'OCSP - URI': [ 'http://ocsp.rootca1.amazontrust.com' ],
> 'CA Issuers - URI': [ 'http://crt.rootca1.amazontrust.com/rootca1.cer' ]
> },
> ca: true,
> modulus: 'EB712CA9CB1F8828923230AF8A570F78B73725955587AC675C97D322C8DAA214676B7CF067DAE2032AB356125DC6B547F96708A7937A9592180FB4F9F910369A7F2F80B64FBA134EC75D531EE0DD96330720D396BC12E4745042A1051373B54F9B4424FE2D7FEDBC2285EC362133977506CE271882DCE3D9C582078D5E26012626671FD93F13CF32BA6BAD7864FCAAFF0E023C07DF9C0578728CFDEA75B7032884DAE86E078CD05085EF8154B2716EEC6D62EF8F94C35EE9C4A4D091C02E249198CAEEBA258ED4F671B6FB5B6B38064837478D86DCF2EA06FB76377D9EFF424E4D588293CFE271C278B17AAB4B5B94378881E4D9AF24AEF872C565FB4BB451E7',
> bits: 2048,
> exponent: '0x10001',
> pubkey: Buffer(294) [Uint8Array] [
> 48, 130, 1, 34, 48, 13, 6, 9, 42, 134, 72, 134,
> 247, 13, 1, 1, 1, 5, 0, 3, 130, 1, 15, 0,
> 48, 130, 1, 10, 2, 130, 1, 1, 0, 235, 113, 44,
> 169, 203, 31, 136, 40, 146, 50, 48, 175, 138, 87, 15,
> 120, 183, 55, 37, 149, 85, 135, 172, 103, 92, 151, 211,
> 34, 200, 218, 162, 20, 103, 107, 124, 240, 103, 218, 226,
> 3, 42, 179, 86, 18, 93, 198, 181, 71, 249, 103, 8,
> 167, 147, 122, 149, 146, 24, 15, 180, 249, 249, 16, 54,
> 154, 127, 47, 128,
> ... 194 more items
> ],
> valid_from: 'Aug 23 22:21:28 2022 GMT',
> valid_to: 'Aug 23 22:21:28 2030 GMT',
> fingerprint: '2A:D9:74:A7:75:F7:3C:BD:BB:D8:F5:AC:3A:49:25:5F:A8:FB:1F:8C',
> fingerprint256: '53:38:EB:EC:8F:B2:AC:60:99:61:26:D3:E7:6A:A3:4F:D0:F3:31:8A:C7:8E:BB:7A:C8:F6:F1:36:1F:48:4B:33',
> fingerprint512: '01:1E:77:CF:C9:64:4C:D1:DB:71:FC:85:2A:C7:79:B1:D3:6F:AD:39:00:F2:94:D8:F0:31:41:8D:66:30:84:70:B1:6F:02:BC:B9:3A:AB:9C:7A:02:5D:F8:9E:3C:BB:45:25:7F:E5:AC:EA:B7:0E:A6:5A:3F:B4:78:70:22:D8:34',
> ext_key_usage: [ '1.3.6.1.5.5.7.3.1', '1.3.6.1.5.5.7.3.2' ],
> serialNumber: '077312380B9D6688A33B1ED9BF9CCDA68E0E0F',
> raw: Buffer(1122) [Uint8Array] [
> 48, 130, 4, 94, 48, 130, 3, 70, 160, 3, 2, 1,
> 2, 2, 19, 7, 115, 18, 56, 11, 157, 102, 136, 163,
> 59, 30, 217, 191, 156, 205, 166, 142, 14, 15, 48, 13,
> 6, 9, 42, 134, 72, 134, 247, 13, 1, 1, 11, 5,
> 0, 48, 57, 49, 11, 48, 9, 6, 3, 85, 4, 6,
> 19, 2, 85, 83, 49, 15, 48, 13, 6, 3, 85, 4,
> 10, 19, 6, 65, 109, 97, 122, 111, 110, 49, 25, 48,
> 23, 6, 3, 85, 4, 3, 19, 16, 65, 109, 97, 122,
> 111, 110, 32, 82,
> ... 1022 more items
> ],
> issuerCertificate: {
> subject: [Object: null prototype] {
> C: 'US',
> O: 'Amazon',
> CN: 'Amazon Root CA 1'
> },
> issuer: [Object: null prototype] {
> C: 'US',
> ST: 'Arizona',
> L: 'Scottsdale',
> O: 'Starfield Technologies, Inc.',
> CN: 'Starfield Services Root Certificate Authority - G2'
> },
> infoAccess: [Object: null prototype] {
> 'OCSP - URI': [ 'http://ocsp.rootg2.amazontrust.com' ],
> 'CA Issuers - URI': [ 'http://crt.rootg2.amazontrust.com/rootg2.cer' ]
> },
> ca: true,
> modulus: 'B2788071CA78D5E371AF478050747D6ED8D78876F49968F7582160F97484012FAC022D86D3A0437A4EB2A4D036BA01BE8DDB48C80717364CF4EE8823C73EEB37F5B519F84968B0DED7B976381D619EA4FE8236A5E54A56E445E1F9FDB416FA74DA9C9B35392FFAB02050066C7AD080B2A6F9AFEC47198F503807DCA2873958F8BAD5A9F948673096EE94785E6F89A351C0308666A14566BA54EBA3C391F948DCFFD1E8302D7D2D747035D78824F79EC4596EBB738717F2324628B843FAB71DAACAB4F29F240E2D4BF7715C5E69FFEA9502CB388AAE50386FDBFB2D621BC5C71E54E177E067C80F9C8723D63F40207F2080C4804C3E3B24268E04AE6C9AC8AA0D',
> bits: 2048,
> exponent: '0x10001',
> pubkey: Buffer(294) [Uint8Array] [
> 48, 130, 1, 34, 48, 13, 6, 9, 42, 134, 72, 134,
> 247, 13, 1, 1, 1, 5, 0, 3, 130, 1, 15, 0,
> 48, 130, 1, 10, 2, 130, 1, 1, 0, 178, 120, 128,
> 113, 202, 120, 213, 227, 113, 175, 71, 128, 80, 116, 125,
> 110, 216, 215, 136, 118, 244, 153, 104, 247, 88, 33, 96,
> 249, 116, 132, 1, 47, 172, 2, 45, 134, 211, 160, 67,
> 122, 78, 178, 164, 208, 54, 186, 1, 190, 141, 219, 72,
> 200, 7, 23, 54, 76, 244, 238, 136, 35, 199, 62, 235,
> 55, 245, 181, 25,
> ... 194 more items
> ],
> valid_from: 'May 25 12:00:00 2015 GMT',
> valid_to: 'Dec 31 01:00:00 2037 GMT',
> fingerprint: '06:B2:59:27:C4:2A:72:16:31:C1:EF:D9:43:1E:64:8F:A6:2E:1E:39',
> fingerprint256: '87:DC:D4:DC:74:64:0A:32:2C:D2:05:55:25:06:D1:BE:64:F1:25:96:25:80:96:54:49:86:B4:85:0B:C7:27:06',
> fingerprint512: '35:20:5B:5B:D2:0B:61:C3:2C:75:D9:CD:21:EA:B9:33:E0:E8:68:E2:B0:F0:EF:34:67:EF:92:06:97:51:B7:3B:B2:EA:C4:E7:C6:4F:BC:00:88:0B:D0:C1:EA:DE:92:69:B6:38:DA:5D:01:C2:DA:75:D4:B0:76:20:C2:E6:34:34',
> serialNumber: '067F944A2A27CDF3FAC2AE2B01F908EEB9C4C6',
> raw: Buffer(1174) [Uint8Array] [
> 48, 130, 4, 146, 48, 130, 3, 122, 160, 3, 2, 1,
> 2, 2, 19, 6, 127, 148, 74, 42, 39, 205, 243, 250,
> 194, 174, 43, 1, 249, 8, 238, 185, 196, 198, 48, 13,
> 6, 9, 42, 134, 72, 134, 247, 13, 1, 1, 11, 5,
> 0, 48, 129, 152, 49, 11, 48, 9, 6, 3, 85, 4,
> 6, 19, 2, 85, 83, 49, 16, 48, 14, 6, 3, 85,
> 4, 8, 19, 7, 65, 114, 105, 122, 111, 110, 97, 49,
> 19, 48, 17, 6, 3, 85, 4, 7, 19, 10, 83, 99,
> 111, 116, 116, 115,
> ... 1074 more items
> ],
> issuerCertificate: {
> subject: [Object: null prototype] {
> C: 'US',
> ST: 'Arizona',
> L: 'Scottsdale',
> O: 'Starfield Technologies, Inc.',
> CN: 'Starfield Services Root Certificate Authority - G2'
> },
> issuer: [Object: null prototype] {
> C: 'US',
> O: 'Starfield Technologies, Inc.',
> OU: 'Starfield Class 2 Certification Authority'
> },
> infoAccess: [Object: null prototype] {
> 'OCSP - URI': [Array],
> 'CA Issuers - URI': [Array]
> },
> ca: true,
> modulus: 'D50C3AC42AF94EE2F5BE19975F8E8853B11F3FCBCF9F20136D293AC80F7D3CF76B763863D93660A89B5E5C0080B22F597FF687F9254386E7691B529A90E171E3D82D0D4E6FF6C849D9B6F31A56AE2BB67414EBCFFB26E31ABA1D962E6A3B5894894756FF25A093705383DA847414C3679E04683ADF8E405A1D4A4ECF43913BE756D60070CB52EE7B7DAE3AE7BC31F945F6C260CF1359022B80CC3447DFB9DE90656D02CF2C91A6A6E7DE8518497C664EA33A6DA9B5EE342EBA0D03B833DF47EBB16B8D25D99BCE81D1454632967087DE020E494385B66C73BB64EA6141ACC9D454DF872FC722B226CC9F5954689FFCBE2A2FC4551C75406017850255398B7F05',
> bits: 2048,
> exponent: '0x10001',
> pubkey: Buffer(294) [Uint8Array] [
> 48, 130, 1, 34, 48, 13, 6, 9, 42, 134, 72, 134,
> 247, 13, 1, 1, 1, 5, 0, 3, 130, 1, 15, 0,
> 48, 130, 1, 10, 2, 130, 1, 1, 0, 213, 12, 58,
> 196, 42, 249, 78, 226, 245, 190, 25, 151, 95, 142, 136,
> 83, 177, 31, 63, 203, 207, 159, 32, 19, 109, 41, 58,
> 200, 15, 125, 60, 247, 107, 118, 56, 99, 217, 54, 96,
> 168, 155, 94, 92, 0, 128, 178, 47, 89, 127, 246, 135,
> 249, 37, 67, 134, 231, 105, 27, 82, 154, 144, 225, 113,
> 227, 216, 45, 13,
> ... 194 more items
> ],
> valid_from: 'Sep 2 00:00:00 2009 GMT',
> valid_to: 'Jun 28 17:39:16 2034 GMT',
> fingerprint: '9E:99:A4:8A:99:60:B1:49:26:BB:7F:3B:02:E2:2D:A2:B0:AB:72:80',
> fingerprint256: '28:68:9B:30:E4:C3:06:AA:B5:3B:02:7B:29:E3:6A:D6:DD:1D:CF:4B:95:39:94:48:2C:A8:4B:DC:1E:CA:C9:96',
> fingerprint512: 'B3:BD:41:38:5D:72:14:8E:03:F4:53:E7:6A:45:FC:D2:11:1A:22:EF:F3:C7:F1:E7:8E:41:F6:74:47:35:44:4E:05:81:44:ED:68:AF:88:65:4E:E6:2B:0F:11:79:49:F3:57:39:DA:AD:6A:D7:65:B8:CD:E1:CF:F9:2E:D2:D0:0C',
> serialNumber: 'A70E4A4C3482B77F',
> raw: Buffer(1145) [Uint8Array] [
> 48, 130, 4, 117, 48, 130, 3, 93, 160, 3, 2, 1,
> 2, 2, 9, 0, 167, 14, 74, 76, 52, 130, 183, 127,
> 48, 13, 6, 9, 42, 134, 72, 134, 247, 13, 1, 1,
> 11, 5, 0, 48, 104, 49, 11, 48, 9, 6, 3, 85,
> 4, 6, 19, 2, 85, 83, 49, 37, 48, 35, 6, 3,
> 85, 4, 10, 19, 28, 83, 116, 97, 114, 102, 105, 101,
> 108, 100, 32, 84, 101, 99, 104, 110, 111, 108, 111, 103,
> 105, 101, 115, 44, 32, 73, 110, 99, 46, 49, 50, 48,
> 48, 6, 3, 85,
> ... 1045 more items
> ],
> issuerCertificate: <ref *1> {
> subject: [Object: null prototype],
> issuer: [Object: null prototype],
> ca: true,
> modulus: 'B732C8FEE971A60485AD0C1164DFCE4DEFC80318873FA1ABFB3CA69FF0C3A1DAD4D86E2B5390FB24A43E84F09EE85FECE52744F528A63F7BDEE02AF0C8AF532F9ECA0501931E8F661C39A74DFA5AB673042566EB777FE759C64A99251454EB26C7F37F19D530708FAFB0462AFFADEB29EDD79FAA0487A3D4F989A5345FDB43918236D9663CB1B8B982FD9C3A3E10C83BEF0665667A9B19183DFF71513C302E5FBE3D7773B25D066CC323569A2B8526921CA702B3E43F0DAF087982B8363DEA9CD335B3BC69CAF5CC9DE8FD648D1780336E5E4A5D99C91E87B49D1AC0D56E1335235EDF9B5F3DEFD6F776C2EA3EBB780D1C42676B04D8F8D6DA6F8BF244A001AB',
> bits: 2048,
> exponent: '0x3',
> pubkey: [Buffer [Uint8Array]],
> valid_from: 'Jun 29 17:39:16 2004 GMT',
> valid_to: 'Jun 29 17:39:16 2034 GMT',
> fingerprint: 'AD:7E:1C:28:B0:64:EF:8F:60:03:40:20:14:C3:D0:E3:37:0E:B5:8A',
> fingerprint256: '14:65:FA:20:53:97:B8:76:FA:A6:F0:A9:95:8E:55:90:E4:0F:CC:7F:AA:4F:B7:C2:C8:67:75:21:FB:5F:B6:58',
> fingerprint512: '95:F5:CB:19:32:02:21:D6:52:68:30:B2:EA:5C:6B:6E:44:34:75:EC:B8:59:A1:B5:1F:42:A7:08:0B:16:BE:67:55:89:78:C0:35:98:50:0F:DC:8F:44:C7:5E:4C:94:D6:04:0F:10:45:A4:AE:88:20:2C:76:B7:BE:71:BE:3B:BB',
> serialNumber: '0',
> raw: [Buffer [Uint8Array]],
> issuerCertificate: [Circular *1]
> }
> }
> }
> }
> },
> host: 'conversations.ie1.twilio.com',
> reason: "Host: conversations.ie1.twilio.com. is not in the cert's altnames: DNS:console.ireland.ie1.twilio.com, DNS:console.ie1.twilio.com",
> code: 'ERR_TLS_CERT_ALTNAME_INVALID',
> config: {
> transitional: {
> silentJSONParsing: true,
> forcedJSONParsing: true,
> clarifyTimeoutError: false
> },
> adapter: [ 'xhr', 'http' ],
> transformRequest: [ [Function: transformRequest] ],
> transformResponse: [ [Function: transformResponse] ],
> timeout: 30000,
> xsrfCookieName: 'XSRF-TOKEN',
> xsrfHeaderName: 'X-XSRF-TOKEN',
> maxContentLength: -1,
> maxBodyLength: -1,
> env: {
> FormData: [Function: FormData] {
> LINE_BREAK: '\r\n',
> DEFAULT_CONTENT_TYPE: 'application/octet-stream'
> },
> Blob: [class Blob]
> },
> validateStatus: [Function: validateStatus],
> headers: Object [AxiosHeaders] {
> Accept: 'application/json',
> 'Content-Type': 'application/x-www-form-urlencoded',
> 'User-Agent': 'twilio-node/5.0.0 (win32 x64) node/v20.11.1',
> 'Accept-Charset': 'utf-8',
> Connection: 'close',
> Authorization: 'Basic QUMwY2NhZmVjZGY3NjY4NTllYTIzNjYwYWMwYWZlNzFkZTo0MDY1ZTg1OWI5MDQ2MDU2MTZmYTA2OWI4YjY2OTA3NA==',
> 'Content-Length': '85',
> 'Accept-Encoding': 'gzip, compress, deflate, br'
> },
> httpsAgent: Agent {
> _events: [Object: null prototype] {
> free: [Function (anonymous)],
> newListener: [Function: maybeEnableKeylog]
> },
> _eventsCount: 2,
> _maxListeners: undefined,
> defaultPort: 443,
> protocol: 'https:',
> options: [Object: null prototype] {
> timeout: 30000,
> keepAlive: undefined,
> keepAliveMsecs: undefined,
> maxSockets: undefined,
> maxTotalSockets: undefined,
> maxFreeSockets: undefined,
> scheduling: undefined,
> ca: undefined,
> noDelay: true,
> path: null
> },
> requests: [Object: null prototype] {},
> sockets: [Object: null prototype] {
> 'conversations.ie1.twilio.com:443:::::::::::::::::::::': [
> TLSSocket {
> _tlsOptions: [Object],
> _secureEstablished: true,
> _securePending: false,
> _newSessionPending: false,
> _controlReleased: true,
> secureConnecting: true,
> _SNICallback: null,
> servername: 'conversations.ie1.twilio.com',
> alpnProtocol: false,
> authorized: false,
> authorizationError: 'ERR_TLS_CERT_ALTNAME_INVALID',
> encrypted: true,
> _events: [Object: null prototype],
> _eventsCount: 10,
> connecting: false,
> _hadError: true,
> _parent: null,
> _host: 'conversations.ie1.twilio.com',
> _closeAfterHandlingError: false,
> _readableState: [ReadableState],
> _writableState: [WritableState],
> allowHalfOpen: false,
> _maxListeners: undefined,
> _sockname: null,
> _pendingData: null,
> _pendingEncoding: '',
> server: undefined,
> _server: null,
> ssl: null,
> _requestCert: true,
> _rejectUnauthorized: true,
> timeout: 30000,
> parser: null,
> _httpMessage: [ClientRequest],
> autoSelectFamilyAttemptedAddresses: [Array],
> [Symbol(alpncallback)]: null,
> [Symbol(res)]: [TLSWrap],
> [Symbol(verified)]: false,
> [Symbol(pendingSession)]: [Buffer [Uint8Array]],
> [Symbol(async_id_symbol)]: 326,
> [Symbol(kHandle)]: null,
> [Symbol(lastWriteQueueSize)]: 555,
> [Symbol(timeout)]: [Timeout],
> [Symbol(kBuffer)]: null,
> [Symbol(kBufferCb)]: null,
> [Symbol(kBufferGen)]: null,
> [Symbol(shapeMode)]: true,
> [Symbol(kCapture)]: false,
> [Symbol(kSetNoDelay)]: false,
> [Symbol(kSetKeepAlive)]: true,
> [Symbol(kSetKeepAliveInitialDelay)]: 60,
> [Symbol(kBytesRead)]: 0,
> [Symbol(kBytesWritten)]: 555,
> [Symbol(connect-options)]: [Object]
> }
> ]
> },
> freeSockets: [Object: null prototype] {},
> keepAliveMsecs: 1000,
> keepAlive: false,
> maxSockets: Infinity,
> maxFreeSockets: 256,
> scheduling: 'lifo',
> maxTotalSockets: Infinity,
> totalSocketCount: 1,
> maxCachedSessions: 100,
> _sessionCache: { map: {}, list: [] },
> [Symbol(shapeMode)]: false,
> [Symbol(kCapture)]: false
> },
> maxRedirects: 0,
> url: 'https://conversations.ie1.twilio.com/v1/Conversations/CH750e3343704d493a8e0029838929cee6/Messages',
> method: 'post',
> proxy: false,
> data: 'Body=Ti%20ringrazio%20per%20la%20domanda%2C%20%C3%A8%20un%27ottima%20domanda%20%3A%29'
> },
> request: <ref *2> ClientRequest {
> _events: [Object: null prototype] {
> response: [Function: bound onceWrapper] {
> listener: [Function: handleResponse]
> },
> error: [Function: handleRequestError],
> socket: [ [Function: handleRequestSocket], [Function (anonymous)] ],
> timeout: [Function: bound onceWrapper] {
> listener: [Function: handleRequestTimeout]
> }
> },
> _eventsCount: 4,
> _maxListeners: undefined,
> outputData: [],
> outputSize: 0,
> writable: true,
> destroyed: false,
> _last: true,
> chunkedEncoding: false,
> shouldKeepAlive: false,
> maxRequestsOnConnectionReached: false,
> _defaultKeepAlive: true,
> useChunkedEncodingByDefault: true,
> sendDate: false,
> _removedConnection: false,
> _removedContLen: false,
> _removedTE: false,
> strictContentLength: false,
> _contentLength: '85',
> _hasBody: true,
> _trailer: '',
> finished: true,
> _headerSent: true,
> _closed: false,
> socket: <ref *3> TLSSocket {
> _tlsOptions: {
> allowHalfOpen: undefined,
> pipe: false,
> secureContext: SecureContext { context: SecureContext {} },
> isServer: false,
> requestCert: true,
> rejectUnauthorized: true,
> session: undefined,
> ALPNProtocols: undefined,
> requestOCSP: undefined,
> enableTrace: undefined,
> pskCallback: undefined,
> highWaterMark: undefined,
> onread: undefined,
> signal: undefined
> },
> _secureEstablished: true,
> _securePending: false,
> _newSessionPending: false,
> _controlReleased: true,
> secureConnecting: true,
> _SNICallback: null,
> servername: 'conversations.ie1.twilio.com',
> alpnProtocol: false,
> authorized: false,
> authorizationError: 'ERR_TLS_CERT_ALTNAME_INVALID',
> encrypted: true,
> _events: [Object: null prototype] {
> close: [
> [Function: onSocketCloseDestroySSL],
> [Function: bound onceWrapper] {
> listener: [Function (anonymous)]
> },
> [Function: onClose],
> [Function: socketCloseListener]
> ],
> end: [ [Function: onConnectEnd], [Function: onReadableStreamEnd] ],
> error: [Function: socketErrorListener],
> newListener: [Function: keylogNewListener],
> connect: undefined,
> secure: [Function: onConnectSecure],
> session: [Function (anonymous)],
> free: [Function: onFree],
> timeout: [
> [Function: onTimeout],
> [Function: bound onceWrapper] {
> listener: [Function: emitRequestTimeout]
> }
> ],
> agentRemove: [Function: onRemove],
> data: undefined,
> drain: [Function: ondrain]
> },
> _eventsCount: 10,
> connecting: false,
> _hadError: true,
> _parent: null,
> _host: 'conversations.ie1.twilio.com',
> _closeAfterHandlingError: false,
> _readableState: ReadableState {
> highWaterMark: 16384,
> buffer: [],
> bufferIndex: 0,
> length: 0,
> pipes: [],
> awaitDrainWriters: null,
> [Symbol(kState)]: 59779574,
> [Symbol(kErroredValue)]: Error [ERR_TLS_CERT_ALTNAME_INVALID]: Hostname/IP does not match certificate's altnames: Host: conversations.ie1.twilio.com. is not in the cert's altnames: DNS:console.ireland.ie1.twilio.com, DNS:console.ie1.twilio.com
> at Object.checkServerIdentity (node:tls:337:12)
> at TLSSocket.onConnectSecure (node:_tls_wrap:1684:27)
> at TLSSocket.emit (node:events:518:28)
> at TLSSocket._finishInit (node:_tls_wrap:1085:8)
> at ssl.onhandshakedone (node:_tls_wrap:871:12) {
> code: 'ERR_TLS_CERT_ALTNAME_INVALID',
> reason: "Host: conversations.ie1.twilio.com. is not in the cert's altnames: DNS:console.ireland.ie1.twilio.com, DNS:console.ie1.twilio.com",
> host: 'conversations.ie1.twilio.com',
> cert: {
> subject: [Object: null prototype],
> issuer: [Object: null prototype],
> subjectaltname: 'DNS:console.ireland.ie1.twilio.com, DNS:console.ie1.twilio.com',
> infoAccess: [Object: null prototype],
> ca: false,
> modulus: 'A44E35F7C9FC892C0531925E0AC528F1D54766ACF6CD68D23D80003907EF9059EEA1375189E738484230BF6057EAF9666AF42919CA0CDEB96DF77828036F881C440F4AFC9C88953D104854489FBD31120E71E283895FCD32ECD0258E746BAC14F4E3F58A6447E4E8E6E5C7523E955F8B2F5974EDBA4069CE80FA12BC90CBD5EBE3B768C0192480FE3BD7E82172F41D435ECF2D62DE3723126C7FCFF0BBE6A23D9B0F7C4D165A115C3169EECD457CBF91D00597802E8EA10A04A277BE02AD3D09E87EA9BB78913BE965ECB35F92AF6BD2C936FB96379E81ADAD2F32CBC8726D67E1DE63BF0AF9E43D0761E2D74446419D35FCC64EEEF45B68F8E0C07F49C67245',
> bits: 2048,
> exponent: '0x10001',
> pubkey: [Buffer [Uint8Array]],
> valid_from: 'May 16 00:00:00 2023 GMT',
> valid_to: 'Jun 13 23:59:59 2024 GMT',
> fingerprint: '79:0B:F5:22:AD:D6:B0:2E:69:FF:8C:F5:CD:2E:91:38:DE:34:65:5A',
> fingerprint256: '0D:BF:C0:DC:CE:44:F0:D1:9D:83:AF:8E:7F:54:E5:55:45:A7:A5:10:D2:DF:F6:22:22:3F:EF:AB:2A:7F:20:50',
> fingerprint512: 'AC:C0:66:C2:3D:FC:BE:0C:35:DB:55:2A:A4:4F:AE:8A:5C:CB:0F:9D:55:30:03:B0:80:FF:73:A9:B5:43:71:0C:89:2D:BF:51:AF:4C:0A:C6:34:15:E3:09:5F:98:D3:79:C0:6D:63:C3:31:A1:E7:50:D9:63:AE:09:9C:4D:77:E6',
> ext_key_usage: [Array],
> serialNumber: '04CABF7DA89C6484AE27504A1CC2270E',
> raw: [Buffer [Uint8Array]],
> issuerCertificate: [Object]
> }
> }
> },
> _writableState: WritableState {
> highWaterMark: 16384,
> length: 555,
> corked: 0,
> onwrite: [Function: bound onwrite],
> writelen: 555,
> bufferedIndex: 0,
> pendingcb: 1,
> [Symbol(kState)]: 118260214,
> [Symbol(kBufferedValue)]: null,
> [Symbol(kWriteCbValue)]: [Function (anonymous)],
> [Symbol(kErroredValue)]: Error [ERR_TLS_CERT_ALTNAME_INVALID]: Hostname/IP does not match certificate's altnames: Host: conversations.ie1.twilio.com. is not in the cert's altnames: DNS:console.ireland.ie1.twilio.com, DNS:console.ie1.twilio.com
> at Object.checkServerIdentity (node:tls:337:12)
> at TLSSocket.onConnectSecure (node:_tls_wrap:1684:27)
> at TLSSocket.emit (node:events:518:28)
> at TLSSocket._finishInit (node:_tls_wrap:1085:8)
> at ssl.onhandshakedone (node:_tls_wrap:871:12) {
> code: 'ERR_TLS_CERT_ALTNAME_INVALID',
> reason: "Host: conversations.ie1.twilio.com. is not in the cert's altnames: DNS:console.ireland.ie1.twilio.com, DNS:console.ie1.twilio.com",
> host: 'conversations.ie1.twilio.com',
> cert: {
> subject: [Object: null prototype],
> issuer: [Object: null prototype],
> subjectaltname: 'DNS:console.ireland.ie1.twilio.com, DNS:console.ie1.twilio.com',
> infoAccess: [Object: null prototype],
> ca: false,
> modulus: 'A44E35F7C9FC892C0531925E0AC528F1D54766ACF6CD68D23D80003907EF9059EEA1375189E738484230BF6057EAF9666AF42919CA0CDEB96DF77828036F881C440F4AFC9C88953D104854489FBD31120E71E283895FCD32ECD0258E746BAC14F4E3F58A6447E4E8E6E5C7523E955F8B2F5974EDBA4069CE80FA12BC90CBD5EBE3B768C0192480FE3BD7E82172F41D435ECF2D62DE3723126C7FCFF0BBE6A23D9B0F7C4D165A115C3169EECD457CBF91D00597802E8EA10A04A277BE02AD3D09E87EA9BB78913BE965ECB35F92AF6BD2C936FB96379E81ADAD2F32CBC8726D67E1DE63BF0AF9E43D0761E2D74446419D35FCC64EEEF45B68F8E0C07F49C67245',
> bits: 2048,
> exponent: '0x10001',
> pubkey: [Buffer [Uint8Array]],
> valid_from: 'May 16 00:00:00 2023 GMT',
> valid_to: 'Jun 13 23:59:59 2024 GMT',
> fingerprint: '79:0B:F5:22:AD:D6:B0:2E:69:FF:8C:F5:CD:2E:91:38:DE:34:65:5A',
> fingerprint256: '0D:BF:C0:DC:CE:44:F0:D1:9D:83:AF:8E:7F:54:E5:55:45:A7:A5:10:D2:DF:F6:22:22:3F:EF:AB:2A:7F:20:50',
> fingerprint512: 'AC:C0:66:C2:3D:FC:BE:0C:35:DB:55:2A:A4:4F:AE:8A:5C:CB:0F:9D:55:30:03:B0:80:FF:73:A9:B5:43:71:0C:89:2D:BF:51:AF:4C:0A:C6:34:15:E3:09:5F:98:D3:79:C0:6D:63:C3:31:A1:E7:50:D9:63:AE:09:9C:4D:77:E6',
> ext_key_usage: [Array],
> serialNumber: '04CABF7DA89C6484AE27504A1CC2270E',
> raw: [Buffer [Uint8Array]],
> issuerCertificate: [Object]
> }
> }
> },
> allowHalfOpen: false,
> _maxListeners: undefined,
> _sockname: null,
> _pendingData: null,
> _pendingEncoding: '',
> server: undefined,
> _server: null,
> ssl: null,
> _requestCert: true,
> _rejectUnauthorized: true,
> timeout: 30000,
> parser: null,
> _httpMessage: [Circular *2],
> autoSelectFamilyAttemptedAddresses: [ '52.211.251.178:443' ],
> [Symbol(alpncallback)]: null,
> [Symbol(res)]: TLSWrap {
> _parent: TCP {
> reading: [Getter/Setter],
> onconnection: null,
> [Symbol(owner_symbol)]: [Circular *3],
> [Symbol(handle_onclose)]: [Function: done]
> },
> _parentWrap: null,
> _secureContext: SecureContext { context: SecureContext {} },
> reading: true,
> onkeylog: [Function: onkeylog],
> onhandshakestart: {},
> onhandshakedone: [Function (anonymous)],
> onocspresponse: [Function: onocspresponse],
> onnewsession: [Function: onnewsessionclient],
> onerror: [Function: onerror],
> [Symbol(owner_symbol)]: [Circular *3]
> },
> [Symbol(verified)]: false,
> [Symbol(pendingSession)]: Buffer(1785) [Uint8Array] [
> 48, 130, 6, 245, 2, 1, 1, 2, 2, 3, 3, 4,
> 2, 192, 47, 4, 32, 68, 74, 106, 188, 65, 33, 191,
> 92, 218, 62, 116, 15, 209, 121, 217, 81, 42, 110, 96,
> 26, 42, 37, 113, 209, 109, 203, 53, 222, 174, 14, 9,
> 105, 4, 48, 153, 83, 145, 92, 181, 20, 174, 155, 209,
> 93, 202, 207, 192, 124, 77, 167, 144, 19, 153, 38, 69,
> 188, 44, 37, 202, 150, 58, 146, 88, 120, 131, 246, 89,
> 141, 226, 202, 207, 80, 178, 62, 11, 255, 105, 214, 52,
> 111, 224, 205, 161,
> ... 1685 more items
> ],
> [Symbol(async_id_symbol)]: 326,
> [Symbol(kHandle)]: null,
> [Symbol(lastWriteQueueSize)]: 555,
> [Symbol(timeout)]: Timeout {
> _idleTimeout: -1,
> _idlePrev: null,
> _idleNext: null,
> _idleStart: 7740,
> _onTimeout: null,
> _timerArgs: undefined,
> _repeat: null,
> _destroyed: true,
> [Symbol(refed)]: false,
> [Symbol(kHasPrimitive)]: false,
> [Symbol(asyncId)]: 350,
> [Symbol(triggerId)]: 348
> },
> [Symbol(kBuffer)]: null,
> [Symbol(kBufferCb)]: null,
> [Symbol(kBufferGen)]: null,
> [Symbol(shapeMode)]: true,
> [Symbol(kCapture)]: false,
> [Symbol(kSetNoDelay)]: false,
> [Symbol(kSetKeepAlive)]: true,
> [Symbol(kSetKeepAliveInitialDelay)]: 60,
> [Symbol(kBytesRead)]: 0,
> [Symbol(kBytesWritten)]: 555,
> [Symbol(connect-options)]: {
> rejectUnauthorized: true,
> ciphers: 'TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA',
> checkServerIdentity: [Function: checkServerIdentity],
> minDHSize: 1024,
> path: null,
> method: 'POST',
> headers: [Object: null prototype] {
> Accept: 'application/json',
> 'Content-Type': 'application/x-www-form-urlencoded',
> 'User-Agent': 'twilio-node/5.0.0 (win32 x64) node/v20.11.1',
> 'Accept-Charset': 'utf-8',
> Connection: 'close',
> Authorization: 'Basic QUMwY2NhZmVjZGY3NjY4NTllYTIzNjYwYWMwYWZlNzFkZTo0MDY1ZTg1OWI5MDQ2MDU2MTZmYTA2OWI4YjY2OTA3NA==',
> 'Content-Length': '85',
> 'Accept-Encoding': 'gzip, compress, deflate, br'
> },
> agents: {
> http: undefined,
> https: Agent {
> _events: [Object: null prototype],
> _eventsCount: 2,
> _maxListeners: undefined,
> defaultPort: 443,
> protocol: 'https:',
> options: [Object: null prototype],
> requests: [Object: null prototype] {},
> sockets: [Object: null prototype],
> freeSockets: [Object: null prototype] {},
> keepAliveMsecs: 1000,
> keepAlive: false,
> maxSockets: Infinity,
> maxFreeSockets: 256,
> scheduling: 'lifo',
> maxTotalSockets: Infinity,
> totalSocketCount: 1,
> maxCachedSessions: 100,
> _sessionCache: [Object],
> [Symbol(shapeMode)]: false,
> [Symbol(kCapture)]: false
> }
> },
> auth: undefined,
> protocol: 'https:',
> family: undefined,
> beforeRedirect: [Function: dispatchBeforeRedirect],
> beforeRedirects: { proxy: [Function: beforeRedirect] },
> hostname: 'conversations.ie1.twilio.com',
> port: 443,
> agent: Agent {
> _events: [Object: null prototype] {
> free: [Function (anonymous)],
> newListener: [Function: maybeEnableKeylog]
> },
> _eventsCount: 2,
> _maxListeners: undefined,
> defaultPort: 443,
> protocol: 'https:',
> options: [Object: null prototype] {
> timeout: 30000,
> keepAlive: undefined,
> keepAliveMsecs: undefined,
> maxSockets: undefined,
> maxTotalSockets: undefined,
> maxFreeSockets: undefined,
> scheduling: undefined,
> ca: undefined,
> noDelay: true,
> path: null
> },
> requests: [Object: null prototype] {},
> sockets: [Object: null prototype] {
> 'conversations.ie1.twilio.com:443:::::::::::::::::::::': [Array]
> },
> freeSockets: [Object: null prototype] {},
> keepAliveMsecs: 1000,
> keepAlive: false,
> maxSockets: Infinity,
> maxFreeSockets: 256,
> scheduling: 'lifo',
> maxTotalSockets: Infinity,
> totalSocketCount: 1,
> maxCachedSessions: 100,
> _sessionCache: { map: {}, list: [] },
> [Symbol(shapeMode)]: false,
> [Symbol(kCapture)]: false
> },
> maxBodyLength: Infinity,
> _defaultAgent: Agent {
> _events: [Object: null prototype] {
> free: [Function (anonymous)],
> newListener: [Function: maybeEnableKeylog]
> },
> _eventsCount: 2,
> _maxListeners: undefined,
> defaultPort: 443,
> protocol: 'https:',
> options: [Object: null prototype] {
> keepAlive: true,
> scheduling: 'lifo',
> timeout: 5000,
> noDelay: true,
> path: null
> },
> requests: [Object: null prototype] {},
> sockets: [Object: null prototype] {},
> freeSockets: [Object: null prototype] {},
> keepAliveMsecs: 1000,
> keepAlive: true,
> maxSockets: Infinity,
> maxFreeSockets: 256,
> scheduling: 'lifo',
> maxTotalSockets: Infinity,
> totalSocketCount: 0,
> maxCachedSessions: 100,
> _sessionCache: { map: [Object], list: [Array] },
> [Symbol(shapeMode)]: false,
> [Symbol(kCapture)]: false
> },
> host: 'conversations.ie1.twilio.com',
> timeout: 30000,
> keepAlive: undefined,
> keepAliveMsecs: undefined,
> maxSockets: undefined,
> maxTotalSockets: undefined,
> maxFreeSockets: undefined,
> scheduling: undefined,
> ca: undefined,
> noDelay: true,
> servername: 'conversations.ie1.twilio.com',
> _agentKey: 'conversations.ie1.twilio.com:443:::::::::::::::::::::',
> encoding: null,
> singleUse: true
> }
> },
> _header: 'POST /v1/Conversations/CH750e3343704d493a8e0029838929cee6/Messages HTTP/1.1\r\n' +
> 'Accept: application/json\r\n' +
> 'Content-Type: application/x-www-form-urlencoded\r\n' +
> 'User-Agent: twilio-node/5.0.0 (win32 x64) node/v20.11.1\r\n' +
> 'Accept-Charset: utf-8\r\n' +
> 'Connection: close\r\n' +
> 'Authorization: Basic QUMwY2NhZmVjZGY3NjY4NTllYTIzNjYwYWMwYWZlNzFkZTo0MDY1ZTg1OWI5MDQ2MDU2MTZmYTA2OWI4YjY2OTA3NA==\r\n' +
> 'Content-Length: 85\r\n' +
> 'Accept-Encoding: gzip, compress, deflate, br\r\n' +
> 'Host: conversations.ie1.twilio.com\r\n' +
> '\r\n',
> _keepAliveTimeout: 0,
> _onPendingData: [Function: nop],
> agent: Agent {
> _events: [Object: null prototype] {
> free: [Function (anonymous)],
> newListener: [Function: maybeEnableKeylog]
> },
> _eventsCount: 2,
> _maxListeners: undefined,
> defaultPort: 443,
> protocol: 'https:',
> options: [Object: null prototype] {
> timeout: 30000,
> keepAlive: undefined,
> keepAliveMsecs: undefined,
> maxSockets: undefined,
> maxTotalSockets: undefined,
> maxFreeSockets: undefined,
> scheduling: undefined,
> ca: undefined,
> noDelay: true,
> path: null
> },
> requests: [Object: null prototype] {},
> sockets: [Object: null prototype] {
> 'conversations.ie1.twilio.com:443:::::::::::::::::::::': [
> <ref *3> TLSSocket {
> _tlsOptions: [Object],
> _secureEstablished: true,
> _securePending: false,
> _newSessionPending: false,
> _controlReleased: true,
> secureConnecting: true,
> _SNICallback: null,
> servername: 'conversations.ie1.twilio.com',
> alpnProtocol: false,
> authorized: false,
> authorizationError: 'ERR_TLS_CERT_ALTNAME_INVALID',
> encrypted: true,
> _events: [Object: null prototype],
> _eventsCount: 10,
> connecting: false,
> _hadError: true,
> _parent: null,
> _host: 'conversations.ie1.twilio.com',
> _closeAfterHandlingError: false,
> _readableState: [ReadableState],
> _writableState: [WritableState],
> allowHalfOpen: false,
> _maxListeners: undefined,
> _sockname: null,
> _pendingData: null,
> _pendingEncoding: '',
> server: undefined,
> _server: null,
> ssl: null,
> _requestCert: true,
> _rejectUnauthorized: true,
> timeout: 30000,
> parser: null,
> _httpMessage: [Circular *2],
> autoSelectFamilyAttemptedAddresses: [Array],
> [Symbol(alpncallback)]: null,
> [Symbol(res)]: [TLSWrap],
> [Symbol(verified)]: false,
> [Symbol(pendingSession)]: [Buffer [Uint8Array]],
> [Symbol(async_id_symbol)]: 326,
> [Symbol(kHandle)]: null,
> [Symbol(lastWriteQueueSize)]: 555,
> [Symbol(timeout)]: [Timeout],
> [Symbol(kBuffer)]: null,
> [Symbol(kBufferCb)]: null,
> [Symbol(kBufferGen)]: null,
> [Symbol(shapeMode)]: true,
> [Symbol(kCapture)]: false,
> [Symbol(kSetNoDelay)]: false,
> [Symbol(kSetKeepAlive)]: true,
> [Symbol(kSetKeepAliveInitialDelay)]: 60,
> [Symbol(kBytesRead)]: 0,
> [Symbol(kBytesWritten)]: 555,
> [Symbol(connect-options)]: [Object]
> }
> ]
> },
> freeSockets: [Object: null prototype] {},
> keepAliveMsecs: 1000,
> keepAlive: false,
> maxSockets: Infinity,
> maxFreeSockets: 256,
> scheduling: 'lifo',
> maxTotalSockets: Infinity,
> totalSocketCount: 1,
> maxCachedSessions: 100,
> _sessionCache: { map: {}, list: [] },
> [Symbol(shapeMode)]: false,
> [Symbol(kCapture)]: false
> },
> socketPath: undefined,
> method: 'POST',
> maxHeaderSize: undefined,
> insecureHTTPParser: undefined,
> joinDuplicateHeaders: undefined,
> path: '/v1/Conversations/CH750e3343704d493a8e0029838929cee6/Messages',
> _ended: false,
> res: null,
> aborted: false,
> timeoutCb: [Function: emitRequestTimeout],
> upgradeOrConnect: false,
> parser: null,
> maxHeadersCount: null,
> reusedSocket: false,
> host: 'conversations.ie1.twilio.com',
> protocol: 'https:',
> [Symbol(shapeMode)]: false,
> [Symbol(kCapture)]: false,
> [Symbol(kBytesWritten)]: 0,
> [Symbol(kNeedDrain)]: false,
> [Symbol(corked)]: 0,
> [Symbol(kOutHeaders)]: [Object: null prototype] {
> accept: [ 'Accept', 'application/json' ],
> 'content-type': [ 'Content-Type', 'application/x-www-form-urlencoded' ],
> 'user-agent': [ 'User-Agent', 'twilio-node/5.0.0 (win32 x64) node/v20.11.1' ],
> 'accept-charset': [ 'Accept-Charset', 'utf-8' ],
> connection: [ 'Connection', 'close' ],
> authorization: [
> 'Authorization',
> 'Basic QUMwY2NhZmVjZGY3NjY4NTllYTIzNjYwYWMwYWZlNzFkZTo0MDY1ZTg1OWI5MDQ2MDU2MTZmYTA2OWI4YjY2OTA3NA=='
> ],
> 'content-length': [ 'Content-Length', '85' ],
> 'accept-encoding': [ 'Accept-Encoding', 'gzip, compress, deflate, br' ],
> host: [ 'Host', 'conversations.ie1.twilio.com' ]
> },
> [Symbol(errored)]: null,
> [Symbol(kHighWaterMark)]: 16384,
> [Symbol(kRejectNonStandardBodyWrites)]: false,
> [Symbol(kUniqueHeaders)]: null
> },
> cause: Error [ERR_TLS_CERT_ALTNAME_INVALID]: Hostname/IP does not match certificate's altnames: Host: conversations.ie1.twilio.com. is not in the cert's altnames: DNS:console.ireland.ie1.twilio.com, DNS:console.ie1.twilio.com
> at Object.checkServerIdentity (node:tls:337:12)
> at TLSSocket.onConnectSecure (node:_tls_wrap:1684:27)
> at TLSSocket.emit (node:events:518:28)
> at TLSSocket._finishInit (node:_tls_wrap:1085:8)
> at ssl.onhandshakedone (node:_tls_wrap:871:12) {
> code: 'ERR_TLS_CERT_ALTNAME_INVALID',
> reason: "Host: conversations.ie1.twilio.com. is not in the cert's altnames: DNS:console.ireland.ie1.twilio.com, DNS:console.ie1.twilio.com",
> host: 'conversations.ie1.twilio.com',
> cert: {
> subject: [Object: null prototype] { CN: 'console.ireland.ie1.twilio.com' },
> issuer: [Object: null prototype] {
> C: 'US',
> O: 'Amazon',
> CN: 'Amazon RSA 2048 M01'
> },
> subjectaltname: 'DNS:console.ireland.ie1.twilio.com, DNS:console.ie1.twilio.com',
> infoAccess: [Object: null prototype] {
> 'OCSP - URI': [ 'http://ocsp.r2m01.amazontrust.com' ],
> 'CA Issuers - URI': [ 'http://crt.r2m01.amazontrust.com/r2m01.cer' ]
> },
> ca: false,
> modulus: 'A44E35F7C9FC892C0531925E0AC528F1D54766ACF6CD68D23D80003907EF9059EEA1375189E738484230BF6057EAF9666AF42919CA0CDEB96DF77828036F881C440F4AFC9C88953D104854489FBD31120E71E283895FCD32ECD0258E746BAC14F4E3F58A6447E4E8E6E5C7523E955F8B2F5974EDBA4069CE80FA12BC90CBD5EBE3B768C0192480FE3BD7E82172F41D435ECF2D62DE3723126C7FCFF0BBE6A23D9B0F7C4D165A115C3169EECD457CBF91D00597802E8EA10A04A277BE02AD3D09E87EA9BB78913BE965ECB35F92AF6BD2C936FB96379E81ADAD2F32CBC8726D67E1DE63BF0AF9E43D0761E2D74446419D35FCC64EEEF45B68F8E0C07F49C67245',
> bits: 2048,
> exponent: '0x10001',
> pubkey: Buffer(294) [Uint8Array] [
> 48, 130, 1, 34, 48, 13, 6, 9, 42, 134, 72, 134,
> 247, 13, 1, 1, 1, 5, 0, 3, 130, 1, 15, 0,
> 48, 130, 1, 10, 2, 130, 1, 1, 0, 164, 78, 53,
> 247, 201, 252, 137, 44, 5, 49, 146, 94, 10, 197, 40,
> 241, 213, 71, 102, 172, 246, 205, 104, 210, 61, 128, 0,
> 57, 7, 239, 144, 89, 238, 161, 55, 81, 137, 231, 56,
> 72, 66, 48, 191, 96, 87, 234, 249, 102, 106, 244, 41,
> 25, 202, 12, 222, 185, 109, 247, 120, 40, 3, 111, 136,
> 28, 68, 15, 74,
> ... 194 more items
> ],
> valid_from: 'May 16 00:00:00 2023 GMT',
> valid_to: 'Jun 13 23:59:59 2024 GMT',
> fingerprint: '79:0B:F5:22:AD:D6:B0:2E:69:FF:8C:F5:CD:2E:91:38:DE:34:65:5A',
> fingerprint256: '0D:BF:C0:DC:CE:44:F0:D1:9D:83:AF:8E:7F:54:E5:55:45:A7:A5:10:D2:DF:F6:22:22:3F:EF:AB:2A:7F:20:50',
> fingerprint512: 'AC:C0:66:C2:3D:FC:BE:0C:35:DB:55:2A:A4:4F:AE:8A:5C:CB:0F:9D:55:30:03:B0:80:FF:73:A9:B5:43:71:0C:89:2D:BF:51:AF:4C:0A:C6:34:15:E3:09:5F:98:D3:79:C0:6D:63:C3:31:A1:E7:50:D9:63:AE:09:9C:4D:77:E6',
> ext_key_usage: [ '1.3.6.1.5.5.7.3.1', '1.3.6.1.5.5.7.3.2' ],
> serialNumber: '04CABF7DA89C6484AE27504A1CC2270E',
> raw: Buffer(1538) [Uint8Array] [
> 48, 130, 5, 254, 48, 130, 4, 230, 160, 3, 2, 1,
> 2, 2, 16, 4, 202, 191, 125, 168, 156, 100, 132, 174,
> 39, 80, 74, 28, 194, 39, 14, 48, 13, 6, 9, 42,
> 134, 72, 134, 247, 13, 1, 1, 11, 5, 0, 48, 60,
> 49, 11, 48, 9, 6, 3, 85, 4, 6, 19, 2, 85,
> 83, 49, 15, 48, 13, 6, 3, 85, 4, 10, 19, 6,
> 65, 109, 97, 122, 111, 110, 49, 28, 48, 26, 6, 3,
> 85, 4, 3, 19, 19, 65, 109, 97, 122, 111, 110, 32,
> 82, 83, 65, 32,
> ... 1438 more items
> ],
> issuerCertificate: {
> subject: [Object: null prototype] {
> C: 'US',
> O: 'Amazon',
> CN: 'Amazon RSA 2048 M01'
> },
> issuer: [Object: null prototype] {
> C: 'US',
> O: 'Amazon',
> CN: 'Amazon Root CA 1'
> },
> infoAccess: [Object: null prototype] {
> 'OCSP - URI': [ 'http://ocsp.rootca1.amazontrust.com' ],
> 'CA Issuers - URI': [ 'http://crt.rootca1.amazontrust.com/rootca1.cer' ]
> },
> ca: true,
> modulus: 'EB712CA9CB1F8828923230AF8A570F78B73725955587AC675C97D322C8DAA214676B7CF067DAE2032AB356125DC6B547F96708A7937A9592180FB4F9F910369A7F2F80B64FBA134EC75D531EE0DD96330720D396BC12E4745042A1051373B54F9B4424FE2D7FEDBC2285EC362133977506CE271882DCE3D9C582078D5E26012626671FD93F13CF32BA6BAD7864FCAAFF0E023C07DF9C0578728CFDEA75B7032884DAE86E078CD05085EF8154B2716EEC6D62EF8F94C35EE9C4A4D091C02E249198CAEEBA258ED4F671B6FB5B6B38064837478D86DCF2EA06FB76377D9EFF424E4D588293CFE271C278B17AAB4B5B94378881E4D9AF24AEF872C565FB4BB451E7',
> bits: 2048,
> exponent: '0x10001',
> pubkey: Buffer(294) [Uint8Array] [
> 48, 130, 1, 34, 48, 13, 6, 9, 42, 134, 72, 134,
> 247, 13, 1, 1, 1, 5, 0, 3, 130, 1, 15, 0,
> 48, 130, 1, 10, 2, 130, 1, 1, 0, 235, 113, 44,
> 169, 203, 31, 136, 40, 146, 50, 48, 175, 138, 87, 15,
> 120, 183, 55, 37, 149, 85, 135, 172, 103, 92, 151, 211,
> 34, 200, 218, 162, 20, 103, 107, 124, 240, 103, 218, 226,
> 3, 42, 179, 86, 18, 93, 198, 181, 71, 249, 103, 8,
> 167, 147, 122, 149, 146, 24, 15, 180, 249, 249, 16, 54,
> 154, 127, 47, 128,
> ... 194 more items
> ],
> valid_from: 'Aug 23 22:21:28 2022 GMT',
> valid_to: 'Aug 23 22:21:28 2030 GMT',
> fingerprint: '2A:D9:74:A7:75:F7:3C:BD:BB:D8:F5:AC:3A:49:25:5F:A8:FB:1F:8C',
> fingerprint256: '53:38:EB:EC:8F:B2:AC:60:99:61:26:D3:E7:6A:A3:4F:D0:F3:31:8A:C7:8E:BB:7A:C8:F6:F1:36:1F:48:4B:33',
> fingerprint512: '01:1E:77:CF:C9:64:4C:D1:DB:71:FC:85:2A:C7:79:B1:D3:6F:AD:39:00:F2:94:D8:F0:31:41:8D:66:30:84:70:B1:6F:02:BC:B9:3A:AB:9C:7A:02:5D:F8:9E:3C:BB:45:25:7F:E5:AC:EA:B7:0E:A6:5A:3F:B4:78:70:22:D8:34',
> ext_key_usage: [ '1.3.6.1.5.5.7.3.1', '1.3.6.1.5.5.7.3.2' ],
> serialNumber: '077312380B9D6688A33B1ED9BF9CCDA68E0E0F',
> raw: Buffer(1122) [Uint8Array] [
> 48, 130, 4, 94, 48, 130, 3, 70, 160, 3, 2, 1,
> 2, 2, 19, 7, 115, 18, 56, 11, 157, 102, 136, 163,
> 59, 30, 217, 191, 156, 205, 166, 142, 14, 15, 48, 13,
> 6, 9, 42, 134, 72, 134, 247, 13, 1, 1, 11, 5,
> 0, 48, 57, 49, 11, 48, 9, 6, 3, 85, 4, 6,
> 19, 2, 85, 83, 49, 15, 48, 13, 6, 3, 85, 4,
> 10, 19, 6, 65, 109, 97, 122, 111, 110, 49, 25, 48,
> 23, 6, 3, 85, 4, 3, 19, 16, 65, 109, 97, 122,
> 111, 110, 32, 82,
> ... 1022 more items
> ],
> issuerCertificate: {
> subject: [Object: null prototype] {
> C: 'US',
> O: 'Amazon',
> CN: 'Amazon Root CA 1'
> },
> issuer: [Object: null prototype] {
> C: 'US',
> ST: 'Arizona',
> L: 'Scottsdale',
> O: 'Starfield Technologies, Inc.',
> CN: 'Starfield Services Root Certificate Authority - G2'
> },
> infoAccess: [Object: null prototype] {
> 'OCSP - URI': [Array],
> 'CA Issuers - URI': [Array]
> },
> ca: true,
Technical details:
- twilio-node version: v5.0.0
- node version: v20.11.1
I can ask the conversations team regarding this. thanks!
Hi! I connected with the team and it was found that the request is made against conversations.ie1.twilio.com but it should be towards conversations.dublin.ie1.twilio.com since we’re using the edge as well. Can you specify an edge location along with the region as it is stated here?
Closing this issue as no response was received