question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Atlas 2.6 - timeouts retrieving JavaScript dependencies

See original GitHub issue

Known bug with ATLAS 2.6

We’ve experienced issues when ATLAS 2.6 loads that not all JavaScript modules are properly downloaded from content delivery networks (CDNs). In particular, this problem was noted for resources loaded off of the UNPKG CDN (https://unpkg.com/). This issue will describe a work-around that you can use to address the problem since we’ve also discovered that the build mechanism that was introduced in ATLAS 2.5 to download and bundle all JavaScript dependencies is not properly functioning in ATLAS 2.6 but has been fixed for the planned ATLAS 2.7 release.

Work-around steps

Clone the ATLAS repository from the current master branch (do not do this in a location where you are currently hosting ATLAS on a web server). Once downloaded, open an NPM command line in the ATLAS root directory and run:

npm run build

This will retrieve all of the JavaScript dependencies required for 2.6 and put them into a folder called node_modules. Copy these to the root of your ATLAS 2.6 folder where you have ATLAS on a web server.

Next, modify the paths section of js/settings.js file to replace the CDN references to the node_modules folder. Here is an example:

Before

"ohdsi-api": "https://unpkg.com/@ohdsi/ui-toolbox@1.0.2/lib/umd/api/index"

After

"ohdsi-api": "../node_modules/@ohdsi/ui-toolbox/lib/umd/api/index"

Refresh your browser and confirm that the JavaScript modules now load properly and double-check your paths to ensure you are pointed to the proper location in the node_modules folder.

Please leave any questions/clarifications/issues on this thread. Thanks!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
t-abdul-bassercommented, Feb 6, 2019

Thanks for noting this @anthonysena. I was just debugging this. This is an issue that has been causing us significant grief on several deployments here for a few days now 😃

0reactions
anthonysenacommented, Apr 5, 2019

Closing this out since the 2.7 release fixes this issue and deployments of Atlas 2.7 should use

npm run build

as referenced in the release notes here: https://github.com/OHDSI/Atlas/releases/tag/v2.7.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Implement Best Practices for JavaScript Actions - Mendix Docs
2.2.6 Using External Dependencies in the Browser · Open Command Prompt and navigate to the right folder using cd --your-app-folder--/ ...
Read more >
Getting Timeout error while connecting MongoDB Atlas with ...
I am trying to connect to my database on MongoDB Atlas using mongoose. But every time it's giving me the following error:
Read more >
Spring Boot Reference Documentation
Typically, your Maven POM file inherits from the spring-boot-starter-parent project and declares dependencies to one or more “Starters”. Spring Boot also ...
Read more >
Release Notes — MongoDB Compass
Improves identification of Atlas cluster. Improve telemetry connection tracking. Dependency Upgrades: Bumps react-ace to version 9.5.0. Bumps Node.js driver ...
Read more >
Bug listing with status RESOLVED with resolution FIXED as at ...
... dependency string format error" status:RESOLVED resolution:FIXED severity:minor · Bug:201 - "xpaint-2.6.2.ebuild" status:RESOLVED resolution:FIXED ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found