J’attendais que l’erreur revienne après modification du niveau de debug pour poster les logs.
Logs kiauvo:
[2021-06-28 21:58:03][INFO] : Updated status for car Kia Niro
[2021-06-28 22:01:02][INFO] : Getting odometer for car Kia Niro
[2021-06-28 22:13:02][INFO] : Getting position for car Kia Niro
[2021-06-28 22:15:02][ERROR] : Erreur sur la fonction cron du plugin : La connexion au démon KIAUVO à échoué, assurez vous qu'il est démarré. Details : http://127.0.0.1:8090/cars/xxxxxxxxxxxxxxxxxx/location?key=****** Curl error : Empty reply from server
[2021-06-28 22:16:02][INFO] : Getting status for car Kia Niro
[2021-06-28 22:16:02][INFO] : Updated status for car Kia Niro
[2021-06-28 22:16:02][INFO] : Getting position for car Kia Niro
Logs kiavuo_node:
Les heures ne correspondent pas du tout (22h contre 5h GMT). Mais c’est la seule erreur dans les logs kiauvo_node… Soit ça n’a rien à voir, soit il y a un soucis d’horodatage des logs de debug.
{
source: GotError [HTTPError]: Response code 408 (Request Timeout)
at EventEmitter.<anonymous> (/var/www/html/plugins/kiauvo/node/node_modules/got/source/as-promise.js:74:19)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:97:5) {
host: undefined,
hostname: 'prd.eu-ccapi.kia.com',
method: 'GET',
path: '/api/v2/spa/vehicles/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/location',
socketPath: undefined,
protocol: 'https:',
url: 'https://prd.eu-ccapi.kia.com:8080/api/v2/spa/vehicles/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/location',
gotOptions: {
path: '/api/v2/spa/vehicles/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/location',
protocol: 'https:',
hostname: 'prd.eu-ccapi.kia.com',
hash: '',
search: '',
pathname: '/api/v2/spa/vehicles/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/location',
href: 'https://prd.eu-ccapi.kia.com:8080/api/v2/spa/vehicles/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/location',
port: 8080,
retry: {
retries: [Function],
methods: Set { 'GET', 'PUT', 'HEAD', 'DELETE', 'OPTIONS', 'TRACE' },
statusCodes: Set { 408, 413, 429, 500, 502, 503, 504 },
errorCodes: Set {
'ETIMEDOUT',
'ECONNRESET',
'EADDRINUSE',
'ECONNREFUSED',
'EPIPE',
'ENOTFOUND',
'ENETUNREACH',
'EAI_AGAIN'
}
},
headers: {
'user-agent': 'got/9.6.0 (https://github.com/sindresorhus/got)',
authorization: 'Bearer
xxxx...xxxx',
'ccsp-device-id': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'content-type': 'application/json',
stamp: 'xxxx...xxxx',
accept: 'application/json',
'accept-encoding': 'gzip, deflate'
},
hooks: {
beforeError: [],
init: [],
beforeRequest: [],
beforeRedirect: [],
beforeRetry: [],
afterResponse: []
},
decompress: true,
throwHttpErrors: true,
followRedirect: true,
stream: false,
form: false,
json: true,
cache: false,
useElectronNet: false,
baseUrl: [Getter/Setter],
method: 'GET'
},
statusCode: 408,
statusMessage: 'Request Timeout',
headers: {
'content-type': 'application/json; charset=utf-8',
date: 'Tue, 29 Jun 2021 05:36:50 GMT',
etag: 'W/"7e-nkA1wcnUUPQwlsNUdmSoy18CJCg"',
'x-ratelimit-limit': '100',
'x-ratelimit-remaining': '97',
'x-ratelimit-reset': '1624944838',
'content-length': '126',
connection: 'close',
'set-cookie': [
'TS012b00dd=xxx; Path=/; Domain=.prd.eu-ccapi.kia.com'
]
},
body: {
retCode: 'F',
resCode: '4081',
resMsg: 'Request timeout. - Request timeout.',
msgId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
}
},
name: 'ManagedBluelinkyError',
level: 'error',
message: '@EuropeVehicle.location: [408] Request Timeout on [GET] https://prd.eu-ccapi.kia.com:8080/api/v2/spa/vehicles/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/location - {"retCode":"F","resCode":"4081","resMsg":"Request timeout. - Request timeout.","msgId":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}',
stack: 'ManagedBluelinkyError: @EuropeVehicle.location: [408] Request Timeout on [GET] https://prd.eu-ccapi.kia.com:8080/api/v2/spa/vehicles/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/location - {"retCode":"F","resCode":"4081","resMsg":"Request timeout. - Request timeout.","msgId":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}
' +
' at U (/var/www/html/plugins/kiauvo/node/node_modules/bluelinky/dist/index.js:17:11500)
' +
' at J.<anonymous> (/var/www/html/plugins/kiauvo/node/node_modules/bluelinky/dist/index.js:17:22940)
' +
' at Generator.throw (<anonymous>)
' +
' at a (/var/www/html/plugins/kiauvo/node/node_modules/bluelinky/dist/index.js:17:136)
' +
' at runMicrotasks (<anonymous>)
' +
' at processTicksAndRejections (internal/process/task_queues.js:97:5)',
timestamp: '2021-06-29T05:36:50.617Z'
}