I am trying to access a token, but having trouble.

Error message

{"error":"invalid_grant","error_description":"Authentication failed."}

If I use --data-urlencode, I get an unsupported_grant_type error.


Resolution

You must use a SystemWeaver username and password to be able to get a token.


The Rest API's connection to the SystemWeaver server is unstable.

Error message

Connection to serverA:1111 failed. System.Exception: Unable to connect to server, name:serverA, port:1111, Message: No connection could be made because the target machine actively refused it 123.45.67.890:1111 ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it


Resolution

Confirm that users can connect to the SystemWeaver server with a client application. Verify that there is no firewall stopping the Rest API server from connecting to the SystemWeaver server. 


I am unable to reach the Rest API via the web. 

Error message

ERR_SSL_PROTOCOL_ERROR


Resolution

This error relates to the set up of the certificate. It must be added to the correct port, etc. Check that the certificate is properly set up, e.g., in correct location, etc.