Sometimes, even though the integration of Finale Inventory with your Magento marketplace is properly configured with the correct credentials, the communication doesn't seem to work, and when testing the integration from Finale Inventory under
Home > Integrations > [Magento integration name] > Edit integration, the user interface shows an error message like the following:
This is not an error caused by Finale Inventory. It is a problem related to the network configuration of the server that hosts your Magento installation.
We cannot provide assistance in fixing errors in systems outside of Finale Inventory infrastructure.
However, in the following steps we describe what needs to be done to fix the problem, so someone from your IT department or your hosting company can do it for you.
We assume a fictional Magento store located at https://www.mymagentostore.
com/ . You should replace www.mymagentostore.com with the actual address of your Magento store:
1.- SSH into the server that hosts your Magento installation
2.- Execute the following command in the command line to verify whether the server can reach itself with its domain name and retrieve some required resources:
If the command prints the following error, or takes a long time before it times out, it cannot connect to itself. That is the ultimate reason for the error seen in Finale Inventory:
> curl https://www.mymagentostore.
curl: (6) Could not resolve host: www.mymagentostore.com
If the command prints a large XML output, it means the problem is caused by some other issue that needs further investigation, please contact our customer service so we can look into it.
3.- To fix the connectivity of the server to itself, you need to edit the /etc/hosts file with the following command:
> sudo vim /etc/hosts
And add the following lines to the file:
After you save the file, try again step 2 to verify that now the server can reach itself. Now the integration of Finale Inventory with Magento should also work.