Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with federated-analytics with yarn install #19

Open
ChrisBarker-NOAA opened this issue Dec 8, 2022 · 2 comments
Open

Error with federated-analytics with yarn install #19

ChrisBarker-NOAA opened this issue Dec 8, 2022 · 2 comments

Comments

@ChrisBarker-NOAA
Copy link
Contributor

A user reported:

at the stage of installing WebGnomeClient when I ran the command "yarn install", I got the error below:

error Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads https://FA_Token:[email protected]/erd/federated-analytics.git
Directory: /home/pasa/WebGnomeClient
Output:
fatal: unable to access 'https://gitlab.orr.noaa.gov/erd/federated-analytics.git/': SSL connection timeout
@ChrisBarker-NOAA
Copy link
Contributor Author

federated-analytics is a google service we use to capture statistics about how our applications are used.

It may not be accessible from outside a US gov't network, or outside the US, or ???

Solution:

First we need to remove federated-analytics from package.json. It is listed on line 20 I believe, and I think json does not support comments, so you need to just get rid of the line. After that, yarn install should work.

[Side note: the JSON spec does not support comments, but some implementations do -- it might be worth commenting that out with \\ and see if it works]

As for the client's runtime, I think it should run without any changes.

Google analytics (and federated analytics), as far as I know, are packages setup to run transparently without explicitly being defined or called in the code of the web application itself. So it is referred to in the main page of the app (./index.html, line 12), and nowhere else. And it will either be successfully requested causing the app to run with analytics, or the package request will fail, causing the app to run without analytics.

If it turns out that the missing federated-analytics package is causing problems, we can remove the call to it in ./index.html, line 12

Please give that a try an report back here.

@akbarinasab
Copy link

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants