TRestApi

MQListener Connection to TRestAPI failed

a) Issue Description:

MQListener logs show the following error

INFO [0001187700155438] Sending request to TRestApi, Url: http://<ip>:<port>/TRestAPI/api/v1/GetSMMCustomer, readTimeout: 15000, connectionTimeout: 15000

ERROR [0001187700155438] CheckRegisteredCustomer Exception Trace: Unable to connect to remote server at http://<ip>:<port>/TRestAPI/api/v1/GetSMMCustomer

b) Cause

MQListener is not able to connect to TRestAPI Service when processing a message to social media user

c) Troubleshooting

  1. Ensure TRestAPI service is up and running. If not, start the TRestAPI service and process the message again.
  2. Ensure the TRestAPI endpoint in MQListener config is mentioned correctly.
  3. Are MQListener and TRestAPI running on different servers? if so, ensure port on which TRestAPI is running is opened in its server firewall for inbound connections. Telnet to that server and port from a different machine to verify.

Unable to connect to the remote server http://:/Manage/UserAccess

a) Issue Description:

TRestAPI logs show the following error

DEBUG TSocialMediaAPIConnector.Utils.RemoteUtils - Unable to connect to the remote server http://<IP>:<Port>/Manage/UserAccess:

b) Cause

TRestAPI is not able to connect to SMM ManagementAPI to update user access data

c) Troubleshooting

  1. Ensure Management API service is up and running. If not, start the ManagementAPI service.
  2. Ensure the ManagementAPI Service endpoint details provided in TRestAPI config file ManagementAPIConfiguration.json is accurate. ServerURL should contain the ip address and port on which SMM Management API service is running. Screenshot of config given below.
  3. Are TRestAPI and Management API running on different servers? if so, ensure port on which Management API is running is opened in its server firewall for inbound connections. Telnet to that server and port from different machine to verify.