-
Notifications
You must be signed in to change notification settings - Fork 59
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
EC2 StartInstance "SyntaxError: Unexpected token i in JSON at position 0" #81
Comments
Also it’s asking for an array, but it doesn’t look like you’re passing one. Try msg.InstanceIds=[isntanceid] |
I'm using an inject node to pass the parameters. EC2 StartInstance.
|
Sorry I'm away at the moment, and dont have a node-red instance available. Can you wire the inject into a debug node (configured to show the whole message) and paste the output. |
msg : Object |
Ah I got it. if(!myArray) { myArray.push(msg.payload); And injected my instance id as the msg.payload |
When I put an instance Id in the EC2 node I get:
"SyntaxError: Unexpected token i in JSON at position 0"
When passing msg.InstanceIds.1=isntanceid I get:
"failed: InvalidParameterType: Expected params.InstanceIds to be an Array"
The text was updated successfully, but these errors were encountered: