Open ihumster opened 1 month ago
@ihumster Thank you for raising this issue and providing a fix! I've been trying to use the nb_inventory plugin to sync my NetBox inventory and keep receiving the following error message: Invalid host pattern 'plugin:' supplied, ending in ':' is not allowed, this
. After some research, it seemed like the issue was with my inventory file (wrong key/value) or authenticating to my NetBox instance, but I was able to confirm neither were a problem. I'm very glad I came across this issue - it saved me from more headaches. Hopefully this gets merged soon!
Hi, what is Sentry
? My concern around this is that we have a lot of users that put proxies in front of NetBox that cause all kinds of problems, and I'd like to know more about your setup before accepting your PR that fixes this issue.
Nevermind I took a look at https://github.com/netbox-community/netbox/blame/develop/netbox/netbox/urls.py#L56
@sc68cal https://sentry.io/
Ok, I understand now, it was emitting a warning in the logs of the server running NetBox and Sentry was warning you about it?
Yes. Every run ansible-playbook or ansible-inventory generate Page Not Found issue in Sentry.
Ansible NetBox Collection version
v3.20.0
Ansible version
NetBox version
v.3.6.9
Python version
3.10
Steps to Reproduce
Connect your netbox instance to sentry and just use nb_inventory plugin.
Expected Behavior
Sentry can't get Page Not Found warning for /api/status url.
Observed Behavior
Sentry get Page Not Found warning for /api/status url.