Closed twallBSD closed 5 years ago
@twallBSD - Just wondering, does your Snipe-IT apikey actually have "base64:" in front of it in the conf? You should just have the key that was presented when generated in Snipe-IT there.
It did. I removed it but still have the same issue.
Did you base64 encode the key that snipe gave you, or just copy and paste it into the settings.conf?
I understand that you had that in the string but did you actually re- base64 encode it? While I'm not sure if Snape b64 enodes their API key before they present it to you, you shouldn't edit the string it gives in any way from the pop up in the gui.
On Wed, Dec 5, 2018, 9:07 AM twallBSD notifications@github.com wrote:
It did. I removed it but still have the same issue.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ParadoxGuitarist/jamf2snipe/issues/2#issuecomment-444563710, or mute the thread https://github.com/notifications/unsubscribe-auth/AGcGuMUFpRABqDESLM6AsdcEQPMdP0_Aks5u1_08gaJpZM4ZDJqW .
Turns out I had an issue with creating the API key. It looks like it's working now, thanks!
Tried running on the snipeit server, Ubuntu server 16.04.5 lts, python 3.5.2, as well as from my macbook, macOS 10.14.1, python 3.7.1, and get the same error on both. Jamf Pro is 10.8. I'm pretty sure I have all the required packages from the readme installed. Any help would be greatly appreciated.
snipeit@snipeit:~$ sudo python3 /opt/jamf2snipe/jamf2snipe [sudo] password for snipeit: Checking the conf file Found subset general: Good Found subset general: Good Error code:401 Traceback (most recent call last): File "/opt/jamf2snipe/jamf2snipe", line 212, in
for model in snipemodels['rows']:
TypeError: 'NoneType' object is not subscriptable
snipeit@snipeit:~$
settings.conf [jamf] url = https://my.local.jamfpro:8443 username = admin password = *****
[snipe-it] url = http://my.snipe.url apikey = base64:**** manufacturer_id = 1
Default status ID (4 = pending)
defaultStatus = 4
[api-mapping] name = general name _snipeit_mac_address_1 = general mac_address