Bonjour,
J’ai fait la mise à jour UniFi OS 5.1.12 –> 5.1.15 hier sur un UDR7 et un UDR5GMax. Depuis, j’ai certaines fonctions du plugin unifi qui fonctionnent toujours, et d’autres qui ne fonctionnent plus. En particulier, j’utilise le plugin pour mettre en pause mon wifi la nuit. Ca ne fonctionne plus.
Voilà l’erreur dans la log unifi en mode debug :
[2026-06-05 08:28:52] DEBUG syncUniFi manuelle :all
[2026-06-05 08:28:52] INFO syncUniFi
[2026-06-05 08:28:52] DEBUG avec params : all
[2026-06-05 08:28:52] DEBUG CustomApiRequest...
[2026-06-05 08:28:52] DEBUG CustomApiRequest brut : {"result":"ko","msg":{"message":"Request failed with status code 401","name":"AxiosError","stack":"AxiosError: Request failed with status code 401\n at settle (/var/www/html/plugins/unifi/resources/node_modules/node-unifi/node_modules/axios/dist/node/axios.cjs:1967:12)\n at IncomingMessage.handleStreamEnd (/var/www/html/plugins/unifi/resources/node_modules/node-unifi/node_modules/axios/dist/node/axios.cjs:3062:11)\n at IncomingMessage.emit (node:events:531:35)\n at endReadableNT (node:internal/streams/readable:1698:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:89:21)","config":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"adapter":["xhr","http"],"transformRequest":[null],"transformResponse":[null],"timeout":5000,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"env":{},"headers":{"Accept":"application/json, text/plain, */*","x-csrf-token":"71cc6a14-088d-4d10-ab3a-20a34547ab88","User-Agent":"axios/1.6.2","Accept-Encoding":"gzip, compress, deflate, br"},"httpAgent":{"_events":{},"_eventsCount":2,"options":{"cookies":{"jar":{"version":"tough-cookie@4.1.4","storeType":"MemoryCookieStore","rejectPublicSuffixes":true,"enableLooseMode":false,"allowSpecialUseDomain":true,"prefixSecurity":"silent","cookies":[{"key":"TOKEN","expires":"1970-01-01T00:00:00.000Z","domain":"192.168.1.1","path":"/","secure":true,"httpOnly":true,"hostOnly":true,"creation":"2026-06-05T06:28:52.738Z","lastAccessed":"2026-06-05T06:28:52.738Z","sameSite":"none"}]}},"noDelay":true,"path":null},"defaultPort":80,"protocol":"http:","requests":{},"sockets":{},"freeSockets":{},"keepAliveMsecs":1000,"keepAlive":false,"maxSockets":null,"maxFreeSockets":256,"scheduling":"lifo","maxTotalSockets":null,"totalSocketCount":0,"agentKeepAliveTimeoutBuffer":1000},"httpsAgent":{"_events":{},"_eventsCount":2,"options":{"cookies":{"jar":{"version":"tough-cookie@4.1.4","storeType":"MemoryCookieStore","rejectPublicSuffixes":true,"enableLooseMode":false,"allowSpecialUseDomain":true,"prefixSecurity":"silent","cookies":[{"key":"TOKEN","expires":"1970-01-01T00:00:00.000Z","domain":"192.168.1.1","path":"/","secure":true,"httpOnly":true,"hostOnly":true,"creation":"2026-06-05T06:28:52.738Z","lastAccessed":"2026-06-05T06:28:52.738Z","sameSite":"none"}]}},"rejectUnauthorized":false,"requestCert":true,"defaultPort":443,"protocol":"https:","noDelay":true,"path":null},"defaultPort":443,"protocol":"https:","requests":{},"sockets":{"192.168.1.1:443::::::::false:::::::::::::":[{"_tlsOptions":{"pipe":false,"secureContext":{"context":{}},"isServer":false,"requestCert":true,"rejectUnauthorized":false,"session":{"type":"Buffer","data":[48,130,3,235,2,1,1,2,2,3,4,4,2,19,2,4,32,47,184,150,127,219,27,216,57,95,156,24,152,0,89,196,184,49,74,84,92,107,0,65,40,196,149,43,177,150,38,41,234,4,48,193,230,206,76,217,85,17,18,4,106,147,138,39,235,250,114,145,113,233,70,29,3,190,238,14,137,207,80,197,137,189,106,50,232,56,11,215,38,177,95,61,58,164,200,31,108,105,210,161,6,2,4,106,34,108,164,162,4,2,2,28,32,163,130,3,57,48,130,3,53,48,130,2,29,160,3,2,1,2,2,9,117,0,129,113,161,190,76,110,45,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,48,22,49,20,48,18,6,3,85,4,3,19,11,117,110,105,102,105,46,108,111,99,97,108,48,30,23,13,50,54,48,52,49,49,49,52,48,54,49,53,90,23,13,50,56,48,55,49,52,49,52,48,54,49,53,90,48,22,49,20,48,18,6,3,85,4,3,19,11,117,110,105,102,105,46,108,111,99,97,108,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,188,207,146,2,122,79,74,221,135,228,107,215,204,52,135,208,51,4,128,164,45,132,124,206,193,122,30,130,73,225,156,218,247,201,138,167,3,144,67,61,232,247,144,230,44,30,21,119,96,15,44,85,153,237,109,94,116,19,20,102,79,55,90,68,54,12,237,84,102,80,159,218,230,230,104,238,40,119,243,176,203,165,64,67,139,246,244,187,53,59,96,86,150,22,158,193,247,82,102,36,112,133,166,26,23,32,4,186,241,177,194,153,2,47,25,51,63,121,174,109,46,254,182,196,218,35,120,54,90,95,25,25,218,203,225,53,230,183,65,219,88,83,54,98,172,97,3,28,104,246,209,121,201,109,243,86,58,86,168,192,95,103,237,27,148,188,171,247,193,165,171,97,227,126,35,204,125,92,99,61,38,11,98,19,60,133,108,119,219,24,226,177,121,71,85,59,141,57,148,24,253,19,7,224,5,167,16,4,91,120,221,38,114,66,69,43,16,151,210,53,143,188,179,235,245,152,26,107,150,163,148,156,109,138,62,166,100,94,97,94,218,167,156,111,31,105,88,67,102,41,117,202,217,102,130,165,2,3,1,0,1,163,129,133,48,129,130,48,11,6,3,85,29,15,4,4,3,2,2,244,48,49,6,3,85,29,37,4,42,48,40,6,8,43,6,1,5,5,7,3,1,6,8,43,6,1,5,5,7,3,2,6,8,43,6,1,5,5,7,3,3,6,8,43,6,1,5,5,7,3,8,48,64,6,3,85,29,17,4,57,48,55,130,11,117,110,105,102,105,46,108,111,99,97,108,130,9,108,111,99,97,108,104,111,115,116,130,5,91,58,58,49,93,135,4,127,0,0,1,135,16,254,128,0,0,0,0,0,0,0,0,0,0,0,0,0,1,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,3,130,1,1,0,159,20,254,98,21,1,165,225,169,91,129,60,80,108,246,63,123,2,101,29,97,11,32,3,114,229,48,43,186,32,236,8,26,87,205,110,97,247,250,32,54,151,238,210,19,139,59,44,58,129,228,193,36,234,161,172,103,232,253,32,187,68,113,219,127,195,252,134,37,22,94,76,53,36,177,43,171,239,149,100,37,204,99,203,141,85,126,151,58,180,157,133,58,137,96,101,38,250,156,157,84,69,89,143,154,174,80,116,224,205,59,110,203,151,170,223,149,173,223,193,25,103,22,78,6,73,83,255,106,117,152,104,40,10,4,222,113,75,188,64,210,103,231,238,250,71,127,200,168,38,195,0,78,160,47,215,179,213,67,128,148,76,205,47,84,75,90,100,104,13,246,87,171,32,149,235,181,234,150,183,73,12,133,167,127,32,17,57,14,15,6,143,25,137,34,210,249,108,17,158,70,161,222,112,215,123,19,21,141,161,63,48,20,66,244,21,140,168,80,110,148,71,146,241,125,245,144,245,139,78,72,231,183,96,162,112,235,88,88,96,74,231,50,114,191,14,165,29,87,180,188,218,61,46,78,235,164,2,4,0,165,3,2,1,18,169,4,2,2,36,45,170,34,4,32,126,47,26,69,182,140,118,31,78,154,153,46,22,155,172,124,3,79,184,237,52,75,240,120,191,142,147,254,225,124,216,192,174,7,2,5,0,192,102,133,193,179,3,2,1,29]}},"_secureEstablished":true,"_securePending":false,"_newSessionPending":false,"_controlReleased":true,"secureConnecting":false,"_SNICallback":null,"servername":false,"alpnProtocol":false,"authorized":false,"authorizationError":"DEPTH_ZERO_SELF_SIGNED_CERT","encrypted":true,"_events":{"close":[null,null,null,null],"timeout":[null,null]},"_eventsCount":10,"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_closeAfterHandlingError":false,"_readableState":{"highWaterMark":65536,"buffer":[],"bufferIndex":0,"length":0,"pipes":[],"awaitDrainWriters":null},"_writableState":{"highWaterMark":65536,"length":0,"corked":0,"writelen":0,"bufferedIndex":0,"pendingcb":1},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","_server":null,"ssl":{"_parent":{"reading":true,"onconnection":null},"_parentWrap":null,"_secureContext":{"context":{}},"reading":true},"_requestCert":true,"_rejectUnauthorized":false,"parser":null,"_httpMessage":{"_events":{},"_eventsCount":7,"outputData":[],"outputSize":0,"writable":true,"destroyed":false,"_last":true,"chunkedEncoding":false,"shouldKeepAlive":false,"maxRequestsOnConnectionReached":false,"_defaultKeepAlive":true,"useChunkedEncodingByDefault":false,"sendDate":false,"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"strictContentLength":false,"_contentLength":0,"_hasBody":true,"_trailer":"","finished":true,"_headerSent":true,"_closed":false,"_header":"GET /proxy/network/v2/api/site/default/models HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nx-csrf-token: 71cc6a14-088d-4d10-ab3a-20a34547ab88\r\nUser-Agent: axios/1.6.2\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: 192.168.1.1\r\nConnection: close\r\n\r\n","_keepAliveTimeout":0,"method":"GET","path":"/proxy/network/v2/api/site/default/models","_ended":true,"res":{"_events":{"end":[null,null]},"_readableState":{"highWaterMark":65536,"buffer":[],"bufferIndex":0,"length":0,"pipes":[],"awaitDrainWriters":null},"httpVersionMajor":1,"httpVersionMinor":1,"httpVersion":"1.1","complete":true,"rawHeaders":["Server","nginx","Date","Fri, 05 Jun 2026 06:28:52 GMT","Content-Type","application/json","Content-Length","47","Connection","close","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Frame-Options","SAMEORIGIN","X-XSS-Protection","1; mode=block","X-Robots-Tag","noindex","Set-Cookie","TOKEN=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT; samesite=none; secure; httponly; partitioned","Set-Cookie","TOKEN=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT; samesite=none; secure; httponly"],"rawTrailers":[],"aborted":false,"upgrade":false,"url":"","method":null,"statusCode":401,"statusMessage":"Unauthorized","_consuming":false,"_dumped":false,"_eventsCount":4,"responseUrl":"https://192.168.1.1/proxy/network/v2/api/site/default/models","redirects":[]},"aborted":false,"timeoutCb":null,"upgradeOrConnect":false,"parser":null,"maxHeadersCount":null,"reusedSocket":false,"host":"192.168.1.1","protocol":"https:","_redirectable":{"_events":{"socket":[null,null]},"_writableState":{"highWaterMark":65536,"length":0,"corked":0,"writelen":0,"bufferedIndex":0,"pendingcb":0},"_options":{"maxRedirects":21,"maxBodyLength":null,"protocol":"https:","path":"/proxy/network/v2/api/site/default/models","method":"GET","headers":{"Accept":"application/json, text/plain, */*","x-csrf-token":"71cc6a14-088d-4d10-ab3a-20a34547ab88","User-Agent":"axios/1.6.2","Accept-Encoding":"gzip, compress, deflate, br"},"agents":{"http":{"_events":{},"_eventsCount":2,"options":{"cookies":{"jar":{"version":"tough-cookie@4.1.4","storeType":"MemoryCookieStore","rejectPublicSuffixes":true,"enableLooseMode":false,"allowSpecialUseDomain":true,"prefixSecurity":"silent","cookies":[{"key":"TOKEN","expires":"1970-01-01T00:00:00.000Z","domain":"192.168.1.1","path":"/","secure":true,"httpOnly":true,"hostOnly":true,"creation":"2026-06-05T06:28:52.738Z","lastAccessed":"2026-06-05T06:28:52.738Z","sameSite":"none"}]}},"noDelay":true,"path":null},"defaultPort":80,"protocol":"http:","requests":{},"sockets":{},"freeSockets":{},"keepAliveMsecs":1000,"keepAlive":false,"maxSockets":null,"maxFreeSockets":256,"scheduling":"lifo","maxTotalSockets":null,"totalSocketCount":0,"agentKeepAliveTimeoutBuffer":1000}},"beforeRedirects":{},"hostname":"192.168.1.1","port":"","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"maxHeaderSize":16384,"globalAgent":{"_events":{},"_eventsCount":2,"options":{"keepAlive":true,"scheduling":"lifo","timeout":5000,"noDelay":true,"path":null},"defaultPort":80,"protocol":"http:","requests":{},"sockets":{},"freeSockets":{"192.168.1.30:80:":[{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_readableState":{"highWaterMark":65536,"buffer":[],"bufferIndex":0,"length":0,"pipes":[],"awaitDrainWriters":null},"_writableState":{"highWaterMark":65536,"length":0,"corked":0,"writelen":0,"bufferedIndex":0,"pendingcb":0},"allowHalfOpen":false,"_eventsCount":6,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null,"timeout":4000,"parser":null,"_httpMessage":null}]},"keepAliveMsecs":1000,"keepAlive":true,"maxSockets":null,"maxFreeSockets":256,"scheduling":"lifo","maxTotalSockets":null,"totalSocketCount":1,"agentKeepAliveTimeoutBuffer":1000}},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"options":{"keepAlive":true,"scheduling":"lifo","timeout":5000,"defaultPort":443,"protocol":"https:","noDelay":true,"path":null},"defaultPort":443,"protocol":"https:","requests":{},"sockets":{},"freeSockets":{},"keepAliveMsecs":1000,"keepAlive":true,"maxSockets":null,"maxFreeSockets":256,"scheduling":"lifo","maxTotalSockets":null,"totalSocketCount":0,"agentKeepAliveTimeoutBuffer":1000,"maxCachedSessions":100,"_sessionCache":{"map":{},"list":[]}}}},"pathname":"/proxy/network/v2/api/site/default/models"},"_ended":true,"_ending":true,"_redirectCount":0,"_redirects":[],"_requestBodyLength":0,"_requestBodyBuffers":[],"_eventsCount":3,"_currentUrl":"https://192.168.1.1/proxy/network/v2/api/site/default/models","_timeout":null}},"timeout":5000}]},"freeSockets":{},"keepAliveMsecs":1000,"keepAlive":false,"maxSockets":null,"maxFreeSockets":256,"scheduling":"lifo","maxTotalSockets":null,"totalSocketCount":1,"agentKeepAliveTimeoutBuffer":1000,"maxCachedSessions":100,"_sessionCache":{"map":{"192.168.1.1:443::::::::false:::::::::::::":{"type":"Buffer","data":[48,130,3,235,2,1,1,2,2,3,4,4,2,19,2,4,32,183,150,99,126,185,76,223,63,229,175,52,17,193,197,90,35,28,125,94,16,84,99,25,33,253,92,253,68,25,83,128,236,4,48,12,150,154,143,110,133,239,149,59,214,145,61,103,167,84,241,52,20,33,219,128,146,193,175,19,176,54,67,137,197,103,164,163,5,222,169,195,88,102,169,162,204,12,168,149,214,215,192,161,6,2,4,106,34,108,164,162,4,2,2,28,32,163,130,3,57,48,130,3,53,48,130,2,29,160,3,2,1,2,2,9,117,0,129,113,161,190,76,110,45,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,48,22,49,20,48,18,6,3,85,4,3,19,11,117,110,105,102,105,46,108,111,99,97,108,48,30,23,13,50,54,48,52,49,49,49,52,48,54,49,53,90,23,13,50,56,48,55,49,52,49,52,48,54,49,53,90,48,22,49,20,48,18,6,3,85,4,3,19,11,117,110,105,102,105,46,108,111,99,97,108,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,188,207,146,2,122,79,74,221,135,228,107,215,204,52,135,208,51,4,128,164,45,132,124,206,193,122,30,130,73,225,156,218,247,201,138,167,3,144,67,61,232,247,144,230,44,30,21,119,96,15,44,85,153,237,109,94,116,19,20,102,79,55,90,68,54,12,237,84,102,80,159,218,230,230,104,238,40,119,243,176,203,165,64,67,139,246,244,187,53,59,96,86,150,22,158,193,247,82,102,36,112,133,166,26,23,32,4,186,241,177,194,153,2,47,25,51,63,121,174,109,46,254,182,196,218,35,120,54,90,95,25,25,218,203,225,53,230,183,65,219,88,83,54,98,172,97,3,28,104,246,209,121,201,109,243,86,58,86,168,192,95,103,237,27,148,188,171,247,193,165,171,97,227,126,35,204,125,92,99,61,38,11,98,19,60,133,108,119,219,24,226,177,121,71,85,59,141,57,148,24,253,19,7,224,5,167,16,4,91,120,221,38,114,66,69,43,16,151,210,53,143,188,179,235,245,152,26,107,150,163,148,156,109,138,62,166,100,94,97,94,218,167,156,111,31,105,88,67,102,41,117,202,217,102,130,165,2,3,1,0,1,163,129,133,48,129,130,48,11,6,3,85,29,15,4,4,3,2,2,244,48,49,6,3,85,29,37,4,42,48,40,6,8,43,6,1,5,5,7,3,1,6,8,43,6,1,5,5,7,3,2,6,8,43,6,1,5,5,7,3,3,6,8,43,6,1,5,5,7,3,8,48,64,6,3,85,29,17,4,57,48,55,130,11,117,110,105,102,105,46,108,111,99,97,108,130,9,108,111,99,97,108,104,111,115,116,130,5,91,58,58,49,93,135,4,127,0,0,1,135,16,254,128,0,0,0,0,0,0,0,0,0,0,0,0,0,1,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,3,130,1,1,0,159,20,254,98,21,1,165,225,169,91,129,60,80,108,246,63,123,2,101,29,97,11,32,3,114,229,48,43,186,32,236,8,26,87,205,110,97,247,250,32,54,151,238,210,19,139,59,44,58,129,228,193,36,234,161,172,103,232,253,32,187,68,113,219,127,195,252,134,37,22,94,76,53,36,177,43,171,239,149,100,37,204,99,203,141,85,126,151,58,180,157,133,58,137,96,101,38,250,156,157,84,69,89,143,154,174,80,116,224,205,59,110,203,151,170,223,149,173,223,193,25,103,22,78,6,73,83,255,106,117,152,104,40,10,4,222,113,75,188,64,210,103,231,238,250,71,127,200,168,38,195,0,78,160,47,215,179,213,67,128,148,76,205,47,84,75,90,100,104,13,246,87,171,32,149,235,181,234,150,183,73,12,133,167,127,32,17,57,14,15,6,143,25,137,34,210,249,108,17,158,70,161,222,112,215,123,19,21,141,161,63,48,20,66,244,21,140,168,80,110,148,71,146,241,125,245,144,245,139,78,72,231,183,96,162,112,235,88,88,96,74,231,50,114,191,14,165,29,87,180,188,218,61,46,78,235,164,2,4,0,165,3,2,1,18,169,4,2,2,36,45,170,34,4,32,59,61,244,198,190,228,152,149,22,119,99,117,255,33,99,210,202,197,199,71,81,31,70,43,171,34,110,196,101,104,167,66,174,7,2,5,0,240,192,149,142,179,3,2,1,29]}},"list":["192.168.1.1:443::::::::false:::::::::::::"]}},"url":"https://192.168.1.1/proxy/network/v2/api/site/default/models","method":"get","data":null},"code":"ERR_BAD_REQUEST","status":401}}
Est-ce qu’il suffit de faire une réparation de NodeJS ? Au faut-il attendre une mise à jour du plugin ?
Merci, cordialement,
M9