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
- ngrok
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.
Issue
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.
Expected result
Connection established successfully.
Actual result
MCOM seems to timeout when trying to callback to the ngrok URL.
Cause
One of the possible reasons for the timeout is that servers are located geographically too far away, and connection takes too much time.
Solution
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.