Layer 7 Mobile API Gateway: Unable to post to register_device
book
Article ID: 103984
calendar_today
Updated On:
Products
CA API Gateway
Issue/Introduction
When attempting to launch your mobile app on Android the below error is observed:
Login failure: com.ca.mas.foundation.MASException: Unable to post to register_device: Unable to resolve host "<MAG_host_name>": No address associated with hostname
Environment
Release: Component: APIMBL
Resolution
Ensure the hostname for the MAG server is accessible. Typically this caused by a bad hostname/ IP address or a failed network connection.
In the case of emulated devices where name resolution is done from the host systems hosts file it may be necessary to push an updated file directly to the device.