Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
prasanna_venkat22
Contributor
Contributor

Unable to login in QEM API

I couldn't login with QEM API ends with SSL Version mismatch issue. Below is the code and error I see. 

 

import requests
import json
import ntlm_auth
import ssl
import base64
from requests_ntlm import HttpNtlmAuth
from requests.auth import HTTPBasicAuth
from requests.adapters import HTTPAdapter, Retry
from urllib3.exceptions import InsecureRequestWarning
# from aem_client import *

with open(r'C:\Python39\qmc_config.json', 'r') as file:
config = json.load(file)

login_url = "https://<hostname>:1234/attunityenterprisemanager/api/v1/login"
auth = HTTPBasicAuth(username, password)
headers = {"Content-Type": "application/json", "Accept": "application/json"}

response = requests.get(url=login_url, auth=HttpNtlmAuth(username, password), headers=headers, verify=False)
print(response.json())

requests.exceptions.SSLError: HTTPSConnectionPool(host=<host>, port=4799): Max retries exceeded with url: /attunityenterprisemanager/api/v1/login (Caused by SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1122)')))

Labels (3)
2 Replies
OritA
Support
Support

Hi, 

Please open a salesforce case for your issue and provide all the information including the error that you get and the QEM logs for further troubleshooting. 

Thanks & regards,

Orit

deepaksahirwar
Creator II
Creator II

Dear @prasanna_venkat22 ,

The error message you’re seeing indicates that there is a version mismatch between the SSL protocol used by your client and the server. This can happen if the client is using an outdated or unsupported version of SSL.

To resolve this issue, you can try the following steps:

1.Update your SSL library: Make sure that your client is using the latest version of the SSL library that is compatible with the server. You can check the server’s SSL version by contacting your system administrator.

2.Check your SSL configuration: Verify that your SSL configuration is correct and up-to-date. You can use an SSL checker tool to test your SSL configuration.

3.Disable SSL verification: If you’re using a self-signed SSL certificate, you can disable SSL verification in your client to bypass the SSL error. However, this is not recommended for production environments.


If you found our response useful, we kindly ask you to click on “Accept as Solution”. This will aid other users in finding the answer more effortlessly.

Thank you! 😊

 

Regards,
Deepak