-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid code #28
Comments
Hi. I know there has been some changes regarding this. I will have a look at it soon. |
I have verified that the arming and disarming works as is should. The error you are experiencing is nothing I have been able to reproduce. However, there has of late been problems with communicating with Sector Alarm, hence all operations now have a retry built in if Sector Alarm in error sends an 401 Unauthorised response. Please try the latest package 2.1.2 and see if your problem is still there. |
ok now I managed to update that version to git version. Looks that npm repository distribute ancient version by default. object I look from chrome: And then I use httplogger at node-red host: "mypagesapi.sectoralarm.net" So looks that it calls that api quite different way than official webUI. |
Ok I finally resolve this. So 2 problems. a) npm repository have ancient version. b) There is arm and annexArm. I used wrong arm. |
I try arm and disarm commands for .fi api. But I got always invalid code error with following callstack.
SectorAlarmError: Invalid code, could not act upon alarm of the site
at /root/.node-red/node_modules/sectoralarm/lib/parser.js:196:28
at tryCallTwo (/root/.node-red/node_modules/promise/lib/core.js:45:5)
at doResolve (/root/.node-red/node_modules/promise/lib/core.js:200:13)
at new Promise (/root/.node-red/node_modules/promise/lib/core.js:66:3)
at Parser.transformActionToOutput (/root/.node-red/node_modules/sectoralarm/lib/parser.js:174:16)
at /root/.node-red/node_modules/sectoralarm/lib/site.js:130:36
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)
Code is filled (4num pin). I also clear and re set it to be sure that there is no white characters in it. I double check that same pin will work with mobile app with same user. And api user work fine because I can request armed state. Odd thing is also that I enable quick arm from app and even then I get invalid code error when I try arm alarm. Also that error comes quite fast so most probably it come from local parser, not from super slow sector alarm api.
The text was updated successfully, but these errors were encountered: