Due to race condition, createSObjectCommands() that runs in the background, sometimes has no access to forceNavigator.serverUrl (as this value is set in the contentScript).
To fix it, I passed the value of serverUrl in the "getMetaData" message, in a similar way apiUrl and other values are passed.
The result is that the error is not happening anymore.
Due to race condition, createSObjectCommands() that runs in the background, sometimes has no access to forceNavigator.serverUrl (as this value is set in the contentScript).
To fix it, I passed the value of serverUrl in the "getMetaData" message, in a similar way apiUrl and other values are passed. The result is that the error is not happening anymore.