Closed cbeyertn closed 4 years ago
Please assist in getting this working
It looks like you may not be an admin. For most of the calls in Navi you need to be a Tenable.io admin.
Try "navi api /scanners".
Also try "navi display -status"
if both of those fail, your keys are inputted incorrectly or you are not an admin in Tenable.io
root@G111LCND8290PNQ:/home/rocket# navi api /scanners Hey Listen! Something went wrong...Don't be trying to hack me now <Response [401]> None root@G111LCND8290PNQ:/home/rocket#
I am admin and the keys are correct as I'm able to use Postman to connect via API
root@G111LCND8290PNQ:/home/rocket# navi display -status Hey Listen! Something went wrong...Don't be trying to hack me now <Response [401]>
Check your API keys or your internet connection I received the following Error:
'NoneType' object is not subscriptable root@G111LCND8290PNQ:/home/rocket#
There must be a space in your keys or something like that. The API command is sending a simple GET request similar to postman.
On Fri, Jul 10, 2020, 1:09 PM cbeyertn notifications@github.com wrote:
root@G111LCND8290PNQ:/home/rocket# navi display -status Hey Listen! Something went wrong...Don't be trying to hack me now <Response [401]> Tenable IO Information
Check your API keys or your internet connection I received the following Error:
'NoneType' object is not subscriptable root@G111LCND8290PNQ:/home/rocket#
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/packetchaos/Navi/issues/9#issuecomment-656867987, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHWPVTPOJ52KRJHW4TK63UDR25YP3ANCNFSM4OVVTQ3Q .
Can you provide the a sample of the proper format?
Here is what the Keys look like in the UI
And how they should show up after running this command
If it is not working, I would suggest regenerating your keys and trying again.
root@ubuntu:/home/rocket/Desktop# navi display -scanners Hey Listen! Something went wrong...Don't be trying to hack me now <Response [401]>
Scanner Name Scanner ID Scanner UUID
Check your API keys or your internet connection I received the following Error:
'NoneType' object is not subscriptable root@ubuntu:/home/rocket/Desktop#
I know the keys are correct because they are displayed while running command --- navi find --query "select * from keys;"