Description/Steps to reproduce
- Specify "lazyConnect": true in datasources.json for the given datasource.
- Programmatically connect to this datasource after boot using:
app.datasources.MyDatasource.connector.connect(function(){ console.log("Connected to MyDatasource."); });
- After connecting seems to succeed, inspect the datasource's connector.dataSource.connected field and you will see that it is false.
- Any attempts to execute native SQL against mysql will wait indefinitely.
Workaround
We were able to get this to work after rolling back loopback-datasource-juggler to 3.20.2.