grokability/jamf2snipe

New Issue - Unable to get all model objects from Snipe-IT instance

kwalshPPU opened this issue · 3 comments

Grok,

I haven't set up any scheduled runs of this yet, so I was just manually running the task. The same one I ran yesterday (multiple times, as I was testing something), is now showing me this error and nothing else helpful from --verbose or --debug

Capture

Any idea whats broken here?

I found the issue - I had a Windows script running that was errantly creating duplicate models, so my model list grew out of control. I can only assume the API didn't like looking through that amount of models and failed. After I deleted the duplicates and got down to ~300 models rather than 700+, it is running again.

jerm commented

Someone just submitted a PR for adding pagination support to kandji2snipe, which is based on this codebase. Once I've tested and merged grokability/kandji2snipe#13, I'll port it over here, and that should solve this sort of issue going forward.

I have too many models for Snipe-IT to return. I fixed it with my updated code: #119