netbox-netprod-importer icon indicating copy to clipboard operation
netbox-netprod-importer copied to clipboard

Error when polling device .. : Expecting value: line 3 column 1 (char 2)

Open Mark32 opened this issue 6 years ago • 2 comments

Hi,

netbox-netprod-importer 0.2.0.2

I'm getting the following when adding a device. It connects to device okay and various output can be seen. I then get the following.

Any suggestions please?

DEBUG: urllib3.connectionpool: Starting new HTTP connection (1): 192.168.1.1:80 DEBUG: urllib3.connectionpool: http://192.168.1.1 "GET /dcim/devices/?name=LAB-001&limit=50 HTTP/1.1" 302 0 DEBUG: urllib3.connectionpool: http://192.168.1.1:80 "GET /login/?next=/dcim/devices/%3Fname%3DLAB-001%26limit%3D50 HTTP/1.1" 200 None DEBUG: netmiko: write_channel: b'\n' DEBUG: netmiko: Pattern is: # DEBUG: netmiko: _read_channel_expect read_data:

DEBUG: netmiko: _read_channel_expect read_data: LAB-001# DEBUG: netmiko: Pattern found: # LAB-001# DEBUG: netmiko: exit_config_mode: DEBUG: netmiko: write_channel: b'exit\n' ERROR: netbox_importer: Error when polling device LAB-001: Expecting value: line 3 column 1 (char 2)

Thanks, Mark

Mark32 avatar Sep 04 '19 10:09 Mark32

Have you added this device to netbox in advance?

VictorPavlushin avatar Oct 22 '19 05:10 VictorPavlushin

Rather, you just did not configure authorization in netbox: https://netboxnetimporter.readthedocs.io/en/latest/quickstart.html#configuration

VictorPavlushin avatar Oct 22 '19 05:10 VictorPavlushin