ZWESVUSR ERROR (o.z.a.g.s.s.z.ZosmfService) ZWEAG104E Authentication service is not available at URL 'protocol://WWW.EXAMPLE.COM:PORT/zosmf/info'
I/O error on POST request for'protocol://WWW.EXAMPLE.COM:PORT/zosmf/services/authenticate": Connect to'protocol://WWW.EXAMPLE.COM:PORT/zosmf/info' failed: EDC8128I Connection refused
Zowe
Do some checks to your system first:
If z/OSMF is accessible, you should see something similar to the following:
{"zos_version":"05.29.00","zosmf_port":"port number","zosmf_version":"29","zosmf_hostname":"your domain","plugins":...
If you cannot see this but you are sure z/OSMF is running, you will need to ask your system administrator for help. Maybe a firewall or a network policy facility (e.g., pagent) is blocking traffic to the PORT.
In addition to running curl command within the ZOWE server, users can test APIML login functionality using the API Gateway Swagger "Try it out" feature. The relevant endpoint is /auth/login using the POST method.
If a user successfully authenticates through the endpoint using TSO credentials and receives a 204 Authorized status via API Gateway Swagger, but then encounters a 503 Service Unavailable error when running the "zowe auth li apiml" command from a client machine, it is likely a network issue.
This behavior suggests that a firewall or another network restriction is blocking the connection between the client machine and the Zowe server.