cfpb / hmda-platform-ui

Front-end for https://github.com/cfpb/hmda-platform
Creative Commons Zero v1.0 Universal
11 stars 15 forks source link

Auth error #653

Closed awolfe76 closed 7 years ago

awolfe76 commented 7 years ago

I had let the app sit on /quality for a while after testing #647. I attempted to refresh and ended up with a blank screen.

Console logs

``` Navigated to http://192.168.99.103/6999998/2017/quality 08:26:37.448 index.js:79 Fetch complete: GET "http://192.168.99.103/env.json". (anonymous) @ index.js:79 733../containers/App.jsx @ index.js:143 s @ _prelude.js:1 e @ _prelude.js:1 (anonymous) @ _prelude.js:1 08:26:37.472 core.js:97 action @ 08:26:37.471 redux-oidc/LOADING_USER 08:26:37.478 oidc-client.min.js:1 UserManager.getUser 08:26:37.478 oidc-client.min.js:1 _loadUser 08:26:37.478 oidc-client.min.js:1 WebStorageStateStore.get user:https://192.168.99.100:8443/auth/realms/hmda:hmda-api 08:26:37.479 index.js:111 Object {pathname: "/6999998/2017/quality", search: "", hash: "", state: null, action: "POP"…} 08:26:37.479 index.js:112 The current URL is /6999998/2017/quality 08:26:37.501 oidc-client.min.js:1 no user storageString 08:26:37.501 oidc-client.min.js:1 no user storageString 08:26:37.502 oidc-client.min.js:1 user not found in storage 08:26:37.502 oidc-client.min.js:1 user not found in storage 08:26:37.503 redirect.js:22 signinRedirect triggered, saving page: /6999998/2017/quality 08:26:37.504 oidc-client.min.js:1 UserManager.signinRedirect 08:26:37.505 oidc-client.min.js:1 _signinStart 08:26:37.505 core.js:97 action @ 08:26:37.502 redux-oidc/USER_EXPIRED 08:26:37.507 core.js:97 action @ 08:26:37.507 @@router/LOCATION_CHANGE 08:26:37.508 oidc-client.min.js:1 got navigator window handle 08:26:37.509 oidc-client.min.js:1 OidcClient.createSigninRequest 08:26:37.509 oidc-client.min.js:1 MetadataService.getAuthorizationEndpoint 08:26:37.509 oidc-client.min.js:1 MetadataService._getMetadataProperty authorization_endpoint 08:26:37.510 oidc-client.min.js:1 MetadataService.getMetadata 08:26:37.510 oidc-client.min.js:1 getting metadata from https://192.168.99.100:8443/auth/realms/hmda/.well-known/openid-configuration 08:26:37.510 oidc-client.min.js:1 JsonService.getJson https://192.168.99.100:8443/auth/realms/hmda/.well-known/openid-configuration 08:27:07.516 oidc-client.min.js:1 GET https://192.168.99.100:8443/auth/realms/hmda/.well-known/openid-configuration net::ERR_TIMED_OUT (anonymous) @ oidc-client.min.js:1 t.getJson @ oidc-client.min.js:1 t.getMetadata @ oidc-client.min.js:1 t._getMetadataProperty @ oidc-client.min.js:1 t.getAuthorizationEndpoint @ oidc-client.min.js:1 t.createSigninRequest @ oidc-client.min.js:1 (anonymous) @ oidc-client.min.js:74 08:27:07.517 oidc-client.min.js:1 XHR failed loading: GET "https://192.168.99.100:8443/auth/realms/hmda/.well-known/openid-configuration". (anonymous) @ oidc-client.min.js:1 t.getJson @ oidc-client.min.js:1 t.getMetadata @ oidc-client.min.js:1 t._getMetadataProperty @ oidc-client.min.js:1 t.getAuthorizationEndpoint @ oidc-client.min.js:1 t.createSigninRequest @ oidc-client.min.js:1 (anonymous) @ oidc-client.min.js:74 08:27:07.518 oidc-client.min.js:1 network error t.error @ oidc-client.min.js:1 s.onerror @ oidc-client.min.js:1 08:27:07.519 oidc-client.min.js:1 Uncaught (in promise) Error: Network Error at XMLHttpRequest.s.onerror (oidc-client.min.js:1) ```

Docker logs

``` ui_1 | 192.168.99.1 - - [12/Jul/2017:12:23:18 +0000] "GET /6999998/2017/quality HTTP/1.1" 200 322 "http://192.168.99.103/6999998/2017/upload" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36" ui_1 | 192.168.99.1 - - [12/Jul/2017:12:23:18 +0000] "GET /css/app.min.css HTTP/1.1" 200 69058 "http://192.168.99.103/6999998/2017/quality" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36" ui_1 | 192.168.99.1 - - [12/Jul/2017:12:23:18 +0000] "GET /js/app.min.js HTTP/1.1" 200 1926076 "http://192.168.99.103/6999998/2017/quality" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36" ui_1 | 192.168.99.1 - - [12/Jul/2017:12:23:19 +0000] "GET /env.json HTTP/1.1" 200 128 "http://192.168.99.103/6999998/2017/quality" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36" ui_1 | 192.168.99.1 - - [12/Jul/2017:12:23:19 +0000] "GET /fonts/sourcesanspro-regular-webfont.woff2 HTTP/1.1" 200 23684 "http://192.168.99.103/css/app.min.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36" ui_1 | 192.168.99.1 - - [12/Jul/2017:12:23:20 +0000] "GET /env.json HTTP/1.1" 200 128 "http://192.168.99.103/6999998/2017/quality" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36" ```


I then attempted another refresh.

Console logs

``` Navigated to http://192.168.99.103/6999998/2017/quality 08:26:37.448 index.js:79 Fetch complete: GET "http://192.168.99.103/env.json". (anonymous) @ index.js:79 733../containers/App.jsx @ index.js:143 s @ _prelude.js:1 e @ _prelude.js:1 (anonymous) @ _prelude.js:1 08:26:37.472 core.js:97 action @ 08:26:37.471 redux-oidc/LOADING_USER 08:26:37.478 oidc-client.min.js:1 UserManager.getUser 08:26:37.478 oidc-client.min.js:1 _loadUser 08:26:37.478 oidc-client.min.js:1 WebStorageStateStore.get user:https://192.168.99.100:8443/auth/realms/hmda:hmda-api 08:26:37.479 index.js:111 Object {pathname: "/6999998/2017/quality", search: "", hash: "", state: null, action: "POP"…} 08:26:37.479 index.js:112 The current URL is /6999998/2017/quality 08:26:37.501 oidc-client.min.js:1 no user storageString 08:26:37.501 oidc-client.min.js:1 no user storageString 08:26:37.502 oidc-client.min.js:1 user not found in storage 08:26:37.502 oidc-client.min.js:1 user not found in storage 08:26:37.503 redirect.js:22 signinRedirect triggered, saving page: /6999998/2017/quality 08:26:37.504 oidc-client.min.js:1 UserManager.signinRedirect 08:26:37.505 oidc-client.min.js:1 _signinStart 08:26:37.505 core.js:97 action @ 08:26:37.502 redux-oidc/USER_EXPIRED 08:26:37.507 core.js:97 action @ 08:26:37.507 @@router/LOCATION_CHANGE 08:26:37.508 oidc-client.min.js:1 got navigator window handle 08:26:37.509 oidc-client.min.js:1 OidcClient.createSigninRequest 08:26:37.509 oidc-client.min.js:1 MetadataService.getAuthorizationEndpoint 08:26:37.509 oidc-client.min.js:1 MetadataService._getMetadataProperty authorization_endpoint 08:26:37.510 oidc-client.min.js:1 MetadataService.getMetadata 08:26:37.510 oidc-client.min.js:1 getting metadata from https://192.168.99.100:8443/auth/realms/hmda/.well-known/openid-configuration 08:26:37.510 oidc-client.min.js:1 JsonService.getJson https://192.168.99.100:8443/auth/realms/hmda/.well-known/openid-configuration 08:27:07.516 oidc-client.min.js:1 GET https://192.168.99.100:8443/auth/realms/hmda/.well-known/openid-configuration net::ERR_TIMED_OUT (anonymous) @ oidc-client.min.js:1 t.getJson @ oidc-client.min.js:1 t.getMetadata @ oidc-client.min.js:1 t._getMetadataProperty @ oidc-client.min.js:1 t.getAuthorizationEndpoint @ oidc-client.min.js:1 t.createSigninRequest @ oidc-client.min.js:1 (anonymous) @ oidc-client.min.js:74 08:27:07.517 oidc-client.min.js:1 XHR failed loading: GET "https://192.168.99.100:8443/auth/realms/hmda/.well-known/openid-configuration". (anonymous) @ oidc-client.min.js:1 t.getJson @ oidc-client.min.js:1 t.getMetadata @ oidc-client.min.js:1 t._getMetadataProperty @ oidc-client.min.js:1 t.getAuthorizationEndpoint @ oidc-client.min.js:1 t.createSigninRequest @ oidc-client.min.js:1 (anonymous) @ oidc-client.min.js:74 08:27:07.518 oidc-client.min.js:1 network error t.error @ oidc-client.min.js:1 s.onerror @ oidc-client.min.js:1 08:27:07.519 oidc-client.min.js:1 Uncaught (in promise) Error: Network Error at XMLHttpRequest.s.onerror (oidc-client.min.js:1) ```

Docker logs

``` ui_1 | 192.168.99.1 - - [12/Jul/2017:12:26:34 +0000] "GET /6999998/2017/quality HTTP/1.1" 200 322 "http://192.168.99.103/6999998/2017/upload" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36" ui_1 | 192.168.99.1 - - [12/Jul/2017:12:26:34 +0000] "GET /css/app.min.css HTTP/1.1" 200 69058 "http://192.168.99.103/6999998/2017/quality" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36" ui_1 | 192.168.99.1 - - [12/Jul/2017:12:26:34 +0000] "GET /js/app.min.js HTTP/1.1" 200 1926076 "http://192.168.99.103/6999998/2017/quality" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36" ui_1 | 192.168.99.1 - - [12/Jul/2017:12:26:35 +0000] "GET /env.json HTTP/1.1" 200 128 "http://192.168.99.103/6999998/2017/quality" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36" ui_1 | 192.168.99.1 - - [12/Jul/2017:12:26:35 +0000] "GET /fonts/sourcesanspro-regular-webfont.woff2 HTTP/1.1" 200 23684 "http://192.168.99.103/css/app.min.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36" ui_1 | 192.168.99.1 - - [12/Jul/2017:12:26:35 +0000] "GET /env.json HTTP/1.1" 200 128 "http://192.168.99.103/6999998/2017/quality" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36" ```

wpears commented 7 years ago

Hmmm.

Timed out at keycloak. Haven't seen this before.

wpears commented 7 years ago

Closing as haven't seen this issue crop up.

If this can be repro'd, reopen