Skip to content
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

Every Night "An uncaught exception occurred: Error: expected param: valueOrExpression" errors #1117

Open
MarcelMertens opened this issue Mar 14, 2019 · 6 comments

Comments

@MarcelMertens
Copy link

Hello,
i have a new fresh installation on a raspi b+. Every night i receive the following errors several times every hour. Mostly it starts at 11:50 pm and then every hour until 5:50 am.

error [pimatic]: An uncaught exception occurred: Error: expected param: valueOrExpression at callActionFromSocket (/home/pi/pimatic-app/node_modules/pimatic/node_modules/decl-api/index.js:289:13) at callActionFromSocketAndRespond (/home/pi/pimatic-app/node_modules/pimatic/node_modules/decl-api/index.js:393:14) at /home/pi/pimatic-app/node_modules/pimatic/node_modules/decl-api/index.js:476:20 at Socket.<anonymous> (/home/pi/pimatic-app/node_modules/pimatic/node_modules/decl-api/index.js:482:9) at emitOne (events.js:77:13) at Socket.emit (events.js:169:7) at /home/pi/pimatic-app/node_modules/pimatic/node_modules/socket.io/lib/socket.js:503:12 at nextTickCallbackWith0Args (node.js:489:9) at process._tickCallback (node.js:418:13) This is most probably a bug in pimatic or in a module, please report it! 05:54:28warn [pimatic]: Keeping pimatic alive, but could be in an undefined state, please restart pimatic as soon as possible!

@MarcelMertens
Copy link
Author

Pimatic version is latests,

pi@raspberrypi:~/pimatic-app/node_modules/pimatic $ node --version
v4.9.1

@mwittig
Copy link
Collaborator

mwittig commented Mar 15, 2019

Thanks for reporting. The error occurs because some action operation on a variable does not contain the required parameter valueOrExpression . Action candidates are updateVariable, addVariable. Do you use the Pimatic API, e.g. as part of external scripts?

@MarcelMertens
Copy link
Author

Yes, i do (Node-Red). I think its using the socket-io api.
But i'm wondering why its only during the night.
I will check my flows.

@MarcelMertens
Copy link
Author

MarcelMertens commented Mar 15, 2019

Just checked my flows. You might remember my topic in the pimatic forum regarding the cut-off of values of gas prices. The API i request (tankerkoenig.de) is not returning prices if the gas station is closed. This could lead to this problem.
I will check the native tankerkoenig plugin for pimatic or change my node-red flow

@mwittig
Copy link
Collaborator

mwittig commented Mar 18, 2019

Excellent! As you say Tankerkoenig is not returning prices for closed gas stations this is likely to cause the issue if no valid value (e.g. no value at all or "null"). Looking forward to your findings

@saxn-paule
Copy link

Could you please provide the id of the gas station? I have no errors at all with the plugin and all of my gas stations are closed at night.

@mwittig mwittig changed the title Every Night " An uncaught exception occurred: Error: expected param: valueOrExpression" errors Every Night "An uncaught exception occurred: Error: expected param: valueOrExpression" errors Jun 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants