This article provides a solution for the Magento Order Management (MOM) issue where you cannot register the locally installed micro-service with MOM using ngrok, because MOM times out when trying to callback.
Affected products and versions
- Magento Commerce 2.3.1
- Magento Order Management
Disclaimer: Magento does not recommend or endorse any particular tool for establishing tunnels. The preceding are suggestions only. For more information, consult the ngrok documentation.
Steps to reproduce
- Install Magento Commerce on your local environment.
- Setup ngrok to create a tunnel to expose your local server.
- Try connecting to MOM.
Connection established successfully.
MCOM seems to timeout when trying to callback to the ngrok URL.
One of the possible reasons for the timeout is that servers are located geographically too far away, and connection takes too much time.
Add a parameter specifying your region when starting ngrok. Like the following:
./ngrok http 80 -region eu
The default region is US. See all possible values.