Not able to connect EMS to thingworx evaluation trial server.
Hi,
I am trying to connect EMS to thingworx trail evaluation server but the web socket is not getting connected.
Below are the jason.config file i am using:
{
"ws_servers": [{
"host": "pp-18102412130w.devportal.ptc.io",
"port": 443
}],
"appKey": "XXXXXXXXXXXXXXXXXXXXXXXX",
"certificates": {
"validate": false,
"cert_chain": ["certificate.cer"]
},
"logger": {
"level":"INFO",
"publish_directory":"logs",
"publish_level":"INFO",
"max_file_storage":2000000,
"auto_flush":true,
"flush_chunk_size": 16384,
"buffer_size" : 4096
},
"file": {
"virtual_dirs": [
{"logs": "logs"},
{"instruction":"instruction"}
],
"staging_dir": "C:\\Projects\\PTCDocs\\PTC_Work\\EMS\\microserver\\staging"
}
}
And the error i am getting:
C:\Projects\PTCDocs\PTC_Work\EMS\microserver>wsems
[INFO ] 2018-10-26 15:50:01,552 wsems: Using config file: C:\Projects\PTCDocs\PTC_Work\EMS\microserver\etc\config.json
[FORCE] 2018-10-26 15:50:01,552 wsems: Starting up ....
[FORCE] 2018-10-26 15:50:01,581 wsems: Initializing EMS ....
[FORCE] 2018-10-26 15:50:01,581 main: Using config file C:\Projects\PTCDocs\PTC_Work\EMS\microserver\etc\config.json
[INFO ] 2018-10-26 15:50:01,581 wsems: Creating the WsEms proxy.
[INFO ] 2018-10-26 15:50:01,581 wsems: Starting HTTP Server.
[INFO ] 2018-10-26 15:50:01,582 wsems: Initializing the ThingWorx REST interface.
[FORCE] 2018-10-26 15:50:01,584 httpServer: starting http server port=8000
[INFO ] 2018-10-26 15:50:01,716 wsEmsProxy::initialize: Initialization complete!
[INFO ] 2018-10-26 15:50:01,717 wsems: Starting the connection.
pp-18102412130w.devportal.ptc.io:443-->[ERROR] 2018-10-26 15:50:02,76 SDK: Error intializing SSL connection
[ERROR] 2018-10-26 15:50:02,76 SDK: twWs_Connect: Error restarting socket. Error 126
Please help, I think the server is not getting connected.
Please check the host " https://PP-18102412130W.devportal.ptc.io/Thingworx"
Thanks and regards
Saurabh.
