thoughtworks / build-your-own-radar

A library that generates an interactive radar, inspired by https://thoughtworks.com/radar/.
GNU Affero General Public License v3.0
2.17k stars 1.03k forks source link

No technology radar will be created #133

Open thomasjac opened 4 years ago

thomasjac commented 4 years ago

Hi there, I have installed your software on a server in our network and got the docker container running. However, no radar will be built if I copy your sample data sets into the mask and click on "Build a radar". The headline then shows "Your Technology Radar will be available in just a few seconds". But then nothing happens anymore. I suppose it is because communication out of our network is necessary. Our network is very restrictive. Can you tell me through which ports your solution communicates to the outside world? Is it just loading the file or is there additional communication that prevents this? Is it possible to enter a proxy server in the docker container?

Best Regards

Thomas

jacwellington commented 4 years ago

I have the same issue. I get this error in the console when I use the example spreadsheet (also tried it on my own sheet).


TypeError: gapi.auth2.getAuthInstance(...) is null
main.763f7923c7bbb935624a.js line 19325 > eval:108:35
    login webpack:///./src/util/googleAuth.js?:108
    authenticate webpack:///./src/util/factory.js?:153
    initClient webpack:///./src/util/googleAuth.js?:78
    uJ https://apis.google.com/_/scs/apps-static/_/js/k=oz.gapi.en.xh-S9KbEGSE.O/m=auth2,client/rt=j/sv=1/d=1/ed=1/am=wQc/rs=AGLTcCNaUSRWzhd71dAsiMVOstVE3KcJZw/cb=gapi.loaded_0:163
    xs https://apis.google.com/_/scs/apps-static/_/js/k=oz.gapi.en.xh-S9KbEGSE.O/m=auth2,client/rt=j/sv=1/d=1/ed=1/am=wQc/rs=AGLTcCNaUSRWzhd71dAsiMVOstVE3KcJZw/cb=gapi.loaded_0:166
    Wq https://apis.google.com/_/scs/apps-static/_/js/k=oz.gapi.en.xh-S9KbEGSE.O/m=auth2,client/rt=j/sv=1/d=1/ed=1/am=wQc/rs=AGLTcCNaUSRWzhd71dAsiMVOstVE3KcJZw/cb=gapi.loaded_0:166
    uea https://apis.google.com/_/scs/apps-static/_/js/k=oz.gapi.en.xh-S9KbEGSE.O/m=auth2,client/rt=j/sv=1/d=1/ed=1/am=wQc/rs=AGLTcCNaUSRWzhd71dAsiMVOstVE3KcJZw/cb=gapi.loaded_0:166
    Ap https://apis.google.com/_/scs/apps-static/_/js/k=oz.gapi.en.xh-S9KbEGSE.O/m=auth2,client/rt=j/sv=1/d=1/ed=1/am=wQc/rs=AGLTcCNaUSRWzhd71dAsiMVOstVE3KcJZw/cb=gapi.loaded_0:157
​
SARAN-thala commented 4 years ago

Hi @jacwellington

This error was happened because it's try to authenticate google api key and Oauth token for using google private sheets. To bypass this add SKIP_GOOGLE_AUTH=true ENV variable along with npm run dev.

I hope @thomasjac also facing the same issue.

Thanks Saran

davidlinse commented 4 years ago

This issue appears when using the docker images as well. Error message from the Chrome Console.

{
  error: {
    code: 400,
    message: "API key not valid. Please pass a valid API key.",
    status: "INVALID_ARGUMENT",
    details: [
    {
      @type: "type.googleapis.com/google.rpc.Help",
      links: [
      {
        description: "Google developers console",
        url: "https://console.developers.google.com"
      }
      ]
    }
    ]
  }
}

Regards ~david

jonmaestas commented 4 years ago

@SARAN-thala Is there a way to bypass auth when using the pre-built docker image?

I tried doing it like this, but it did not work - https://github.com/thoughtworks/build-your-own-radar/issues/96#issuecomment-582615607

VJReDdy commented 4 years ago

This issue appears when using the docker images as well. Error message from the Chrome Console.

{
  error: {
    code: 400,
    message: "API key not valid. Please pass a valid API key.",
    status: "INVALID_ARGUMENT",
    details: [
    {
      @type: "type.googleapis.com/google.rpc.Help",
      links: [
      {
        description: "Google developers console",
        url: "https://console.developers.google.com"
      }
      ]
    }
    ]
  }
}

Regards ~david

Even I am facing the same issue. Chrome console shows... "API key not valid. Please pass a valid API key.",

VJReDdy commented 4 years ago

{,…} error: {code: 400, message: "API key not valid. Please pass a valid API key.", status: "INVALID_ARGUMENT",…} code: 400 message: "API key not valid. Please pass a valid API key." status: "INVALID_ARGUMENT" details: [{@type: "type.googleapis.com/google.rpc.Help",…}] 0: {@type: "type.googleapis.com/google.rpc.Help",…} @type: "type.googleapis.com/google.rpc.Help" links: [{description: "Google developers console", url: "https://console.developers.google.com"}] 0: {description: "Google developers console", url: "https://console.developers.google.com"} description: "Google developers console" url: "https://console.developers.google.com"

parthparulekar commented 4 years ago

Facing the same issue here. Did anyone figure out the solution to this issue yet?

I read what @SARAN-thala answered and it makes sense. However, even after adding SKIP_GOOGLE_AUTH = true to the npm configuration list through command line, this issue remains. Also tried adding this to the Environment Variables section in the configuration settings of npm and Node.js. Am I using this configuration key correctly?

These are the errors: image

How exactly should I " add SKIP_GOOGLE_AUTH=true ENV variable along with npm run dev" as @SARAN-thala mentioned?

Thank you!

EDIT:

It is working now. I learned that I should just use regular command line environment variable settings like this: SET SKIP_GOOGLE_AUTH = true

AnnemarieD commented 4 years ago

I have the same issue. adding SET SKIP_GOOGLE_AUTH = true to my run command did not work at all. just returned another error.

kprabha-git commented 4 years ago

Any update on this issue?

mike-thompson-h commented 3 years ago

thoughtworks error Hi All

I get the attached error when trying to access a Google Sheet within my work's network using a container. I have set SKIP_GOOGLE_AUTH as a ENV variable from within the node image build. Is this the correct place to set this?

dcasati commented 3 years ago

Hi -

I've worked on some changes and got into a point where this is working for me. Here's a quick way to test it:

$ docker pull dcasati/build-your-own-radar
$ docker run --rm -p 8080:80 -e SERVER_NAMES="localhost 127.0.0.1" -v /mnt/radar/sheets/:/opt/build-your-own-radar/sheets dcasati/build-your-own-radar
$ open http://localhost:8080

This will:

  1. spawn a server that will listen locally on port 8080
  2. mount the host volume on /mnt/radar/sheets/ into the container on /opt/build-your-own-radar/sheets/.
    1. open http://localhost:8080 and for the URL piece '(Enter the URL of your Google Sheet of CSV file bellow...)' type: http://localhost:8080/sheets/${NAME_OF_YOUR_SHEET}.csv - it needs to be a csv file.

You can now work locally on your machine, updating the csv file, rendering the result back on your browser.

Related PR: https://github.com/thoughtworks/build-your-own-radar/pull/176