Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

[Question] Can anyone confirm Marksman works with version 5.x of SnipeIT? #37

Open
dwildey opened this issue Nov 17, 2020 · 20 comments
Open

Comments

@dwildey
Copy link

dwildey commented Nov 17, 2020

Can anyone confirm Marksman works with version 5.x of SnipeIT?

@emike09
Copy link

emike09 commented Nov 17, 2020

I don't think it does, I actually forgot about Marksman since we run it in the background on login. I just checked it and I get the following error:
Unhandled Exception: Newtonsoft.Json.JsonReaderException: Could not convert string to boolean: etc

@dwildey
Copy link
Author

dwildey commented Nov 18, 2020

Thanks for the info.

@icolombage
Copy link

Yup can confirm this no longer work on 5.x. We ran into the same issue. @emike09/ @dwildey Did you find a solution for this?

@dwildey
Copy link
Author

dwildey commented Jan 22, 2021

@icolombage Have not upgraded yet due to this fact nor have I had time to test. However, we need an agent so will have to figure something out.

@rickardhildingsson
Copy link

Any update ?

@ReticentRobot
Copy link

ReticentRobot commented Mar 18, 2021

Disclaimer: I am not a programmer

I've found that if you change line 45 in Category.cs in the SnipeSharp project from:

public bool eula { get; set; }

to

public string eula { get; set; }

that this will get the agent working on 5.x

@FRP974
Copy link

FRP974 commented Mar 27, 2021

Disclaimer: I am not a programmer

I've found that if you change line 45 in Category.cs in the SnipeSharp project from:

public bool eula { get; set; }

to

public string eula { get; set; }

that this will get the agent working on 5.x

Hello,
I can't find the file "Category.cs". Can you confirm its location?

@ReticentRobot
Copy link

ReticentRobot commented Mar 27, 2021

https://github.com/Scope-IT/SnipeSharp/blob/master/SnipeSharp/Endpoints/Models/Category.cs

You'll then need to build the SnipeSharp project, and then the marksman project (SnipeSharp is a dependency, it should bring it in to the marksman project automatically) - as per the Developer instructions here: https://github.com/Scope-IT/marksman

@ReticentRobot
Copy link

I haven't been able to get in touch with the developer to see about getting this working again, so have started my own version of the project. You can download it here if you are interested: https://github.com/ReticentRobot/SnipeAgent

@dwildey
Copy link
Author

dwildey commented Apr 2, 2021

@ReticentRobot Nice Job! I hadn't had a chance to look but suspected it was SnipeSharp since that's the foundation. Glad you were able to take the time and recompile. I am sure others will appreciate your efforts as much as I do.

@ReticentRobot
Copy link

Thanks! I've been meaning to pick up a programming project to get back into learning again, so I guess this is as good as any :). Next up is to try to recreate the agent as a windows service and collect the API key, base URL, Location, and Company during install so that manual editing of the config file is no longer needed.

@eddy445
Copy link

eddy445 commented Jan 20, 2023

@ReticentRobot thanks for the solution, it works with snipe-it version 6

@vantzs
Copy link

vantzs commented Sep 18, 2023

@ReticentRobot Do you still have your compiled version of this available for download?

@Schnatsu
Copy link

@ReticentRobot Greetings! Is there any chance to get your compiled version still? It seems the Error is still an issue.

@ReticentRobot
Copy link

I think I have it somewhere - I will try to get this back up today

@ReticentRobot
Copy link

Does anyone happen to know the filename? Not coming up with anything obvious on my initial search.

Apologies for deleting, didn't realize it was still in use. If I can't find it, I can probably get it redone and rebuilt soon.

@jarrydstan
Copy link

Does anyone happen to know the filename? Not coming up with anything obvious on my initial search.

Apologies for deleting, didn't realize it was still in use. If I can't find it, I can probably get it redone and rebuilt soon.

Sir, if you can get this working again, I would be very grateful! Seems that the snipe-it plugin list even mentions your program but it goes to a 404 :(

@ReticentRobot
Copy link

I've opened a ticket to see if GitHub can restore this repository

@ReticentRobot
Copy link

Just noting here that GitHub was able to restore it. Apologies for not posting that news earlier, I posted elsewhere but forgot about this thread.

@jarrydstan
Copy link

Just noting here that GitHub was able to restore it. Apologies for not posting that news earlier, I posted elsewhere but forgot about this thread.

Will deploy today and test, thank you!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants