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

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

Open
kwalshPPU opened this issue May 9, 2023 · 3 comments
Open

Comments

@kwalshPPU
Copy link

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?

@kwalshPPU
Copy link
Author

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
Copy link
Member

jerm commented May 23, 2023

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.

@guruevi
Copy link

guruevi commented Oct 8, 2023

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

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

3 participants