kc9wwh / JamfProGroupsScoped

Have you ever wanted to know what was scoped to your Jamf Pro groups? Well, now you can!
Other
51 stars 7 forks source link

Error: line 146: [: 0: unary operator expected #4

Open sumitphogat13 opened 5 years ago

sumitphogat13 commented 5 years ago

Need help. Getting below error

syntax error at line 1, column 0, byte 0:
<!doctype html><html lang="en"><head><title>HTTP Status 404 – Not Found</title><style type="text/css">h1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} h2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} h3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} body {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} b {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} p {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;} a {color:black;} a.name {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 404 – Not Found</h1><hr class="line" /><p><b>Type</b> Status Report</p><p><b>Message</b> Not Found</p><p><b>Description</b> The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.</p><hr class="line" /><h3>Apache Tomcat/8.5.32</h3></body></html>
^
 at /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level/XML/Parser.pm line 187.
/Users/sumikumar/Downloads/JamfProGroupsScoped-master/CompGroupsScoped.sh: line 146: [: 0: unary operator expected
Retrieving List of All Policy IDs...
jdemaio commented 4 years ago

I ran into this issue as well until i removed the / from the end of our URL. Entered https://jamf.ourdomain.com:8443/ and got that error. Replaced it with https://jamf.ourdomain.com:8443 and it worked. Though we had some trouble with our API user so I had to use another.