Server Crash On POST #200
Comments
Identical issue on new install of local Phant server (Vagrant/VirtualBox on Windows 10 machine). |
Same here after a fresh install (macOS 10.12 nodeJS v6.9.1) |
I did a search on Stackoverflow and might found a solution by changing (validator.js) line 173 to Also found that Peter Stojcsics did the same on his fork, also in some other files. |
That's right. The main fork of Phant is made for an older version of nodejs. In the 6.x nodeJS, you can't call hasOwnProperty on any object, instead you have to use the mentioned syntax for the exact same thing. The only thing I changed in my fork is this fix and I also removed the build status from the readme. You can fork it and use it ;) |
That fix seems to be working with NodeJS v7.1.0, too. |
Changing the code didn't work for me. The other way to fix it is to downgrade to nodejs version 4.6.2. That version works fine for me. Once the version manager is installed, you install the working version of node and the stable version. " n 4.6.2 && n stable ".... then you choose which version you want to use: " n" then press the arrow keys up/down to select and the right-arrow key to set it as your version. you can verify that it worked by typing " node -v ". After that you install phant and carry on as usual. you may or may not have to update your npm. check the readme in the n version manager github page about that. good luck :) |
Came across the same and even upgraded from v7.6.0 to v7.7.2. Perhaps README.md should not say "requires the latest version of node.js" if what it really needs is v4.6.2. Hoping that @stoto can submit a PR with his fixes so that fewer new users are caught by this issue. |
Phant is No Longer in OperationUnfortunately Phant, our data-streaming service, is no longer in service and will be discontinued. The system has reached capacity and, like a less-adventurous Cassini, has plunged conclusively into a fiery and permanent retirement. There are several other maker-friendly, data-streaming services and/or IoT platforms available as alternatives. The three we recommend are Blynk, ThingSpeak, and Cayenne. You can read our blog post [ https://www.sparkfun.com/news/2413 ] on the topic for an overview and helpful links for each platform. |
Anytime data is pushed to my private server, phant crashes with this error.
I know the server was working about a week ago, and I have not edited any of the source code.
Currently on nodejs 6.6 and phant is run at startup by using etc/rc.local
Any ideas on what is causing this or how to fix it?
The text was updated successfully, but these errors were encountered: