Node Red - Creating admin form

Joel7
Comes here often

Node Red - Creating admin form

Hi,

 

I have been dabbling around with Node Red. Followed the guide https://developer.cisco.com/meraki/build/node-red-getting-started-with-cisco-meraki-apis/ particularly to do with creating a web form to create admin accounts. 

 

I've updated the details with my dashboard API, specified my shrd number + org id however it appears to be throwing error messages. 

 

< timeand date removed > - [error] [http request:23fdd666.9cf74a] RequestError: unable to get local issuer certificate
Found match, group 0: "id":351024,
Found match, group 1: 351024
Found match, group 0: "id":215332,
Found match, group 1: 215332
new json with regex replace RequestError: unable to get local issuer certificate : https://dashboard.meraki.com/api/v0/organizations
17 Oct 11:04:59 - [error] [json:91f1eb0d.41a1e8] Unexpected token R in JSON at position 0

 

Runing node red on my win machine 

Node-RED version: v3.0.2
Node.js version: v16.18.0

 

Has anyone come across such errors?

4 REPLIES 4
Thomas_Sterber
Meraki Employee
Meraki Employee

you should change the endpoint to v1 as v0 is outdated.

JasonM
Meraki Employee
Meraki Employee

I have another flow that I have used created by the same author of that guide that you can use as a proof of concept which should work. It also is using v0 so you may want to change that at some point but as of now it still functions.

 

https://github.com/jasoncodesincoffee/meraki-node-red-flow-web-form

Joel7
Comes here often

Thanks, Jason!

Should there be a variable where to define the Org ID? 

Getting the following meesage.

 

RequestError: getaddrinfo ENOTFOUND undefinedorganizations : http://undefinedorganizations?

JasonM
Meraki Employee
Meraki Employee

In the credentials node you put in your API key and then you can inject that as a flow context variable. From that, the JQuery template node in the flow will GET the list of orgs that your key allows access to which will be seen in the UI form dropdown list.

Get notified when there are additional replies to this discussion.