question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pynautobot reqeust error

See original GitHub issue

Environment

  • Python version: 3.6.8
  • Nautobot version: 1.0.3

Steps to Reproduce

When I am trying to match a tag when running a nornir script

nb_url= 'https://test-nautobot.lab.com'
    nb_token= "hiddenhidden"
    """Nornir testing."""
    nr = InitNornir(
        inventory={
            "plugin": "NautobotInventory",
            "options": {
                "nautobot_url": nb_url,
                "nautobot_token": nb_token,
                "ssl_verify": False,
            },
            "transform_function": "populate_creds",
        },
    )

Expected Behavior

to match the filtered tag

Observed Behavior

File "/home/test/pynet_nautobot/lib64/python3.6/site-packages/pynautobot/core/query.py", line 226, in _make_call
    raise RequestError(req)
pynautobot.core.query.RequestError: The request failed with code 504 Gateway Time-out but more specific details were not returned in json. Check the Nautobot Logs or investigate this exception's error attribute.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:17 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
nanisyakocommented, Oct 11, 2021

After excludinf the config context, no more timeouts

0reactions
nanisyakocommented, Oct 8, 2021

awesommeeee it looks promising, I will testing it for couple of hours since it was timing out after couple of idle hours then we can close the issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

pynautobot reqquest error · Issue #23 · nautobot ... - GitHub
RequestError : The request failed with code 504 Gateway Time-out but more specific details were not returned in json. Check the Nautobot Logs ......
Read more >
Optional Configuration Settings - Nautobot Documentation
It is an error to set the timeout value to 0 . ... HTTP proxies to use for outbound requests originating from Nautobot...
Read more >
Query Module — pynautobot 1.2.2 documentation
Makes a GET request to Nautobot's API, and automatically recurses any paginated results. Raises. RequestError if req.ok returns false. Raises. ContentError if ...
Read more >
nautobot | The NTC Mag - NTC Blog
The Nautobot ChatOps plugin just recently received a new feature for Slack that has been requested for a long time. If you are...
Read more >
Network to Code on Twitter: "Nautobot migration notice: In 1.4 ...
Nautobot migration notice: In 1.4 we are adding the ability to throw errors on invalid/unknown filters. There will be a strict mode setting...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found