[WinError 10061] No connection could be made because the target machine actively refused it')) #161
Closed
kartp536
started this conversation in
Show and tell
Replies: 1 comment 3 replies
-
Hi @kartp536, you may need to specify the port (if you want to connect to z/OSMF on a port other than 443) in the host_url string, e.g.: This is not clear from the existing documentation. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I tried below Python code to submit the job using ZOWE SDK,
from zowe.zos_console_for_zowe_sdk import Console
from zowe.zos_jobs_for_zowe_sdk import Jobs
connection = {
"host_url": "XXXX",
"user": "XXXXX",
"password": "XXXX",
}
my_console = Console(connection)
my_jobs = Jobs(connection)
job01 =my_jobs.submit_from_mainframe("XXXXX.JCL.LIB(KC)")
print (job01['jobid'])
and i got the below response,
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='XXXX', port=443): Max retries exceeded with url: /zosmf/restjobs/jobs/ (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001EBEADB5D90>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))
I checked my host XXXX , its up and running but still get the error ,Could you please let me know am i miss anything here ?
Beta Was this translation helpful? Give feedback.
All reactions