Tom-Hirschberger / MMM-SynologySurveillance

An MagicMirror² module which uses the Synology Webapi to get the MJPEG streams of surveillance cams and displays them
MIT License
5 stars 1 forks source link

After Update to new Release 0.2.0 i get Error LoginError: Login not possible #22

Open Dimonic2210 opened 2 months ago

Dimonic2210 commented 2 months ago

Attached the logs. i already creted a new user with manager authorizations, but the error still occures.

0|mm | [2024-04-23 07:49:40.813] [LOG] LoginError: Login not possible 0|mm | API does not exist 0|mm | at /home/pi/MagicMirror/modules/MMM-SynologySurveillance/MySynoSSClient.js:320:47 0|mm | at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 0|mm | at async Class.getInfoOfAllDs (/home/pi/MagicMirror/modules/MMM-SynologySurveillance/node_helper.js:77:34) { 0|mm | cause: { 0|mm | response: { 0|mm | status: 200, 0|mm | statusText: 'OK', 0|mm | headers: [Object [AxiosHeaders]], 0|mm | config: [Object], 0|mm | request: [ClientRequest], 0|mm | data: [Object] 0|mm | }, 0|mm | returnCode: 102 0|mm | } 0|mm | }

Tom-Hirschberger commented 2 months ago

Hi,

are you sure you disabled the two-factor-authentication for this user? If the manager role is not set the error code will be 105 - Privilege Error. 102 indicates that the login is not possible.

23.04.2024 07:56:05 Dimonic2210 @.***>:

Attached the logs. i already creted a new user with manager authorizations, but the error still occures.

0|mm | [2024-04-23 07:49:40.813] [LOG] LoginError: Login not possible 0|mm | API does not exist 0|mm | at /home/pi/MagicMirror/modules/MMM-SynologySurveillance/MySynoSSClient.js:320:47 0|mm | at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 0|mm | at async Class.getInfoOfAllDs (/home/pi/MagicMirror/modules/MMM-SynologySurveillance/node_helper.js:77:34) { 0|mm | cause: { 0|mm | response: { 0|mm | status: 200, 0|mm | statusText: 'OK', 0|mm | headers: [Object [AxiosHeaders]], 0|mm | config: [Object], 0|mm | request: [ClientRequest], 0|mm | data: [Object] 0|mm | }, 0|mm | returnCode: 102 0|mm | } 0|mm | }

— Reply to this email directly, view it on GitHub[https://github.com/Tom-Hirschberger/MMM-SynologySurveillance/issues/22], or unsubscribe[https://github.com/notifications/unsubscribe-auth/ALMFULFUPFWEHT5DX75CDV3Y6XZXJAVCNFSM6AAAAABGUDUPR2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGI2TQMBQHEZTOMQ]. You are receiving this because you are subscribed to this thread. [Verfolgungsbild][https://github.com/notifications/beacon/ALMFULDQ2DJX5AWDI5TJTW3Y6XZXJA5CNFSM6AAAAABGUDUPR2WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHINFT5DQ.gif]

Dimonic2210 commented 2 months ago

yes two-factor-authentication is disabled. But was means "API does not exist" ?

Tom-Hirschberger commented 2 months ago

That's intetesting. The error happens in the auth api which is a basic api since years.

Can you provide the raw output of the following request...

http://<THE_IP_OF_YOUR_NAS>:5000/webapi/query.cgi?api=SYNO.API.Info&method=Query&version=1

Which version of the firmware and the Synology Surveillance Package do you have installed?

Dimonic2210 commented 2 months ago

Hey Tom, attached the output. DSM is: 6.2.4-25556 Update 6 Surveillance is: 9.2.0-9289

out.txt

Dimonic2210 commented 2 months ago

i've tested a downgrade to the previous Version 0.1.4 --> everything runs fine, no error and the cam is shown.

Tom-Hirschberger commented 2 months ago

Hi and thanks for the info. Helped me a lot to identify the problem as I do not have any DiskStation with DSM 6.x anymore.

Just released version 0.2.1 of the module which should fix the problem.