JAMF Connection Issue

VA5
Tera Contributor

I'm configuring Service Graph for JAMF , As part of the guided set up configure connection , I'm trying to test the connection . As i do that , I'm getting this error - Unable to make a connection to JAMF API call. Please check your credential configuration. Check system log for more details. HTTP return status code was -1

1 REPLY 1

MC30
Tera Guru

Hi There,

The errors you mentioned means:
• No HTTP response was received at all (code -1 means connection failure, not a proper HTTP status like 401/403).
• It's likely a network, URL, or authentication issue, not just credentials.

You can Troubleshoot like below:


1. Verify API Base URL
• Go to your JAMF connection & credential alias in ServiceNow.
• Make sure the Base URL is in the correct format, e.g.:

https://your-company.jamfcloud.com

OR

https://your-omprem-jamf-url:8443

ʉۢ The URL should be accessible from ServiceNow MID Server, not your browser.

2. Check Credential Configuration
• Under the Connection & Credential alias, verify the basic auth or OAuth credentials:
â—¦ If using Basic Auth: check username/password (test directly in Postman or curl).
â—¦ If using OAuth 2.0, confirm:
• Token URL
• Client ID and secret
• Scope (if required)

 

3. Confirm MID Server Is Required & Working
• JAMF is usually an external API, so a MID Server is required unless you're on a network-allowed IP.
• Go to MID Servers > All MID Servers
◦ Ensure it’s validated, up, and has the correct capabilities (e.g., HTTP).
• Test connectivity from the MID Server to the JAMF API:
â—¦ Use MID Server > Script Include or ECC Queue to do a basic ping or REST call.

 

4. Test the API Manually (Outside SNOW)
• Use Postman or curl to test the exact API endpoint (e.g., /uapi/auth/tokens).
â—¦ If that fails too, the issue is with JAMF URL/credentials.

 

5. Check the System Logs in SNOW
• Go to System Logs > Errors or IntegrationHub Logs.
• Filter by source: JAMF, Service Graph, or the Flow you're using.
• Look for the raw error message, especially anything like:
â—¦ java.net.UnknownHostException
â—¦ javax.net.ssl.SSLHandshakeException
â—¦ 401 Unauthorized (if credentials are wrong)

 

6. Check for Proxy Issues (if behind firewall)
• If your organization uses a proxy for outbound calls, confirm if it’s needed for MID Server.
• You can configure proxy settings under MID Server properties.

 

NOTE: You can generate a test script to run from the MID server to confirm if it can reach JAMF. Please let me know if you need this

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Madhuri