I tried to create a node after creating a network and an Access Key( POST /api/networks/skynet1/keys HTTP/2 ) via api .
But the field of accesskey to create a node is wrong :
The netmaker complained that valid access key not found when it received the create_node command .
I tried to feed the field of accesskey with the value of the Access Key as follows :
{ "endpoint": "111.222.222.111", "macaddress": "51:15:00:11:2a:3c", "network": "skynet1", "accesskey": "cc1f950a9506f419" }
// cc1f950a9506f419 is the "value" at the reply to the Create_Access_Key command
or the token ( the "accessstring" at the reply to the create Access Key command ) :
{ "endpoint": "111.222.222.111", "macaddress": "51:15:00:11:2a:3c", "network": "skynet1", "accesskey": "the_accessstring_at_access_key" }
None of them works . Did I miss the others fields at the command ?
Version
v0.17.1
What OS are you using?
Linux
Relevant log output
[netmaker] 2023-02-28 22:20:27 masteradministrator created network skynet1
[netmaker] 2023-02-28 22:20:27 masteradministrator created access key skynet1_access_key on skynet1
[netmaker] 2023-02-28 22:20:28 valid access key not found
[netmaker] 2023-02-28 22:20:28 processed request error: You are unauthorized to access this endpoint.
Contact Details
No response
What happened?
I tried to create a node after creating a network and an Access Key( POST /api/networks/skynet1/keys HTTP/2 ) via api .
But the field of accesskey to create a node is wrong : The netmaker complained that valid access key not found when it received the create_node command .
I tried to feed the field of accesskey with the value of the Access Key as follows : { "endpoint": "111.222.222.111", "macaddress": "51:15:00:11:2a:3c", "network": "skynet1", "accesskey": "cc1f950a9506f419" } // cc1f950a9506f419 is the "value" at the reply to the Create_Access_Key command
or the token ( the "accessstring" at the reply to the create Access Key command ) : { "endpoint": "111.222.222.111", "macaddress": "51:15:00:11:2a:3c", "network": "skynet1", "accesskey": "the_accessstring_at_access_key" }
None of them works . Did I miss the others fields at the command ?
Version
v0.17.1
What OS are you using?
Linux
Relevant log output
Contributing guidelines