Quantcast
Channel: THWACK: Popular Discussions - Orion SDK
Viewing all articles
Browse latest Browse all 3719

Creating a CustomPollerAssignmentOnNode returns: 400 Client Error: Sequence contains no elements

$
0
0

In migrating from 11.5 to 12.1, I'm rebuilding my entire 5K-node system from scratch (it's a long story).

 

In doing so, I'm trying to migrate code I have written in Python using the (latest and greatest) SDK to handle custom poller assignments for various devices (among other things).

 

This code worked in 11.5, but I'm getting a '400 Client Error: Sequence contains no elements' from the requests package when I call:

        swis.create('Orion.NPM.CustomPollerAssignmentOnNode', NodeID=NodeID, CustomPollerID=CustomPollerID)

    File "build/bdist.linux-x86_64/egg/orionsdk/swisclient.py", line 34, in create

    File "build/bdist.linux-x86_64/egg/orionsdk/swisclient.py", line 59, in _req

    File "/usr/local/lib/python2.7/dist-packages/requests/models.py", line 851, in raise_for_status

    raise HTTPError(http_error_msg, response=self)

requests.exceptions.HTTPError: 400 Client Error: Sequence contains no elements

 

Did something significant change, in the way we're supposed to create custom poller assignments?

 

It's probably something about version mismatches between Python packages again.


Viewing all articles
Browse latest Browse all 3719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>