Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Mark32 opened this issue Sep 4, 2019 · 2 comments
Open

Comments

@Mark32
Copy link

Mark32 commented Sep 4, 2019

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

@VictorPavlushin
Copy link
Contributor

Have you added this device to netbox in advance?

@VictorPavlushin
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants