Hi there, I greatly appreciate all the help I’ve gotten so far. After setting up a trial on Ubuntu I was asked to troubleshoot an installation on Windows Server, running WebAPI on Tomcat and Atlas on IIS, pointing to an OMOP database using Achilles. Accessing the WebAPI using localhost:8080/WebAPI seems to work just fine. My Atlas configuration that tries to connect to it, however, just hangs there. The console shows the following errors, indicating that the variable config.api.url in main.js has not been set. Is this variable supposed to be set in config.js, and if so would you have any idea where I have gone wrong?
main.js:185 Uncaught TypeError: Cannot read property 'url' of undefined
at main.js:185
at Object.execCb (require.js:29)
at Z.check (require.js:18)
at Z.<anonymous> (require.js:23)
at require.js:8
at require.js:23
at v (require.js:7)
at Z.emit (require.js:23)
at Z.check (require.js:19)
at Z.<anonymous> (require.js:23)
jquery-1.11.2.min.js:4 GET http://localhost:8080/WebAPI/vocabulary/OMOP_Vocabulary/domains
The following are the contents of my config.js file.
As of Atlas 2.2.0, we’ve reworked how the configuration works for Atlas.
You don’t need to modify config.js anymore, instead you craeet a config-local.js to override specific settings. In addition, we no longer refer to an array of services, there’s just one main webAPI that atlas points to. So your config-local.js should just set things you want to override. Here’s an example:
define([], function () {
var config = {};
config.api =
{
name: 'My WebAPI',
url: 'http://someHost:8080/WebAPI/'
};
return config;
});
Notice how config doesn’t have services array anymore.