-
Notifications
You must be signed in to change notification settings - Fork 31
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
Error connecting to particle cloud #68
Comments
I get the same thing. When putting log output in particle.js it is connecting to This returns JSON, but the response code is 404. The response is |
Hi! Sorry for the delay in responding. Can either of you report back which version of VoodooSpark is flashed to the board? |
I'm having that same issue. I'm working with VoodooSpark version V3.1.2 |
Run the following and post the response:
This is what mine looks like:
|
mine returned { |
I did.... the response I received was... { On Tue, Dec 1, 2015 at 5:17 PM Rick Waldron [email protected]
|
Thanks. That error is shown when something other than VoodooSpark is flashed to the board. Take a look: (the photon initially has voodoospark flashed)
So then I flashed the tinker firmware:
And try hitting
Re-flash with voospark:
And the
The reason is that |
rwaldron: I kept getting the error still after re-flashing. Then I re-flashed while in Safe Mode and that worked. You were right. But for some reason it would not apply the updated firmware without putting it in Safe Mode first. Good deal!!! |
Whoa, weird—hopefully this helps the other reports above! Thanks for the follow up @littulb! |
I'm using a photon.
This is the error:
Error: Unable to connect to particle cloud.: code: 404 undefined
at IncomingMessage. (/Volumes/Lychee/Users/andrewh/Development/node/node_modules/particle-io/lib/particle.js:346:19)
at IncomingMessage.EventEmitter.emit (events.js:117:20)
at _stream_readable.js:919:16
at process._tickCallback (node.js:419:13)
I'm using your sample code:
var Particle = require("particle-io");
console.log("Token = " + process.env.PARTICLE_TOKEN);
console.log("Device ID = " + process.env.PARTICLE_DEVICE_ID);
var board = new Particle({
token: process.env.PARTICLE_TOKEN,
deviceId: process.env.PARTICLE_DEVICE_ID
});
board.on("ready", function() {
console.log("CONNECTED");
this.pinMode("D7", this.MODES.OUTPUT);
var byte = 0;
// This will "blink" the on board led
setInterval(function() {
this.digitalWrite("D7", (byte ^= 1));
}.bind(this), 500);
});
Any ideas?
The text was updated successfully, but these errors were encountered: