Comments (7)
I can't find relevant detailed log for this on response server. Only seeing access log:
Defaulting container name to response-server-ws.
Use 'kubectl describe pod/response-server-ws-6c7dbb5b98-gnnl7 -n default' to see all of the containers in this pod.
10.142.0.5 - - [02/Apr/2020:00:27:27 +0000] "GET /mystudies-response-server/ HTTP/1.1" 401 5
10.60.1.1 - - [02/Apr/2020:01:58:34 +0000] "GET /mystudies-response-server/ HTTP/1.1" 401 5
10.142.0.5 - - [02/Apr/2020:01:58:35 +0000] "GET /mystudies-response-server/ HTTP/1.1" 401 5
10.60.1.1 - - [02/Apr/2020:04:09:37 +0000] "GET / HTTP/1.1" 404 713
10.142.0.5 - - [02/Apr/2020:09:18:35 +0000] "-" 400 1921
10.60.1.1 - - [02/Apr/2020:15:29:48 +0000] "-" 400 1921
10.142.0.7 - - [02/Apr/2020:17:54:35 +0000] "-" 400 1921
10.60.1.1 - - [02/Apr/2020:18:36:17 +0000] "POST /mystudies-response-server/studymetadata HTTP/1.1" 401 5
10.142.0.7 - - [02/Apr/2020:18:40:09 +0000] "GET /mystudies-response-server/studymetadata HTTP/1.1" 401 5
10.142.0.7 - - [02/Apr/2020:18:57:48 +0000] "POST /mystudies-response-server/participant/add HTTP/1.1" 500 174
10.142.0.5 - - [02/Apr/2020:19:02:01 +0000] "POST /mystudies-response-server/participant/get-activity-state HTTP/1.1" 401 5
10.142.0.5 - - [02/Apr/2020:19:02:11 +0000] "POST /mystudies-response-server/participant/get-activity-state HTTP/1.1" 401 5
10.60.1.1 - - [02/Apr/2020:19:03:02 +0000] "POST /mystudies-response-server/participant/get-activity-state HTTP/1.1" 401 5
10.142.0.5 - - [02/Apr/2020:19:03:24 +0000] "GET /mystudies-response-server/studymetadata HTTP/1.1" 401 5
10.142.0.5 - - [02/Apr/2020:19:03:28 +0000] "GET /favicon.ico HTTP/1.1" 404 713
10.142.0.7 - - [02/Apr/2020:19:03:47 +0000] "GET /mystudies-response-server/participant/get-activity-state HTTP/1.1" 401 5
10.142.0.5 - - [02/Apr/2020:19:03:53 +0000] "GET /mystudies-response-server/participant/get-activity-state HTTP/1.1" 401 5
10.142.0.5 - - [02/Apr/2020:19:04:11 +0000] "GET /mystudies-response-server/participant/get-activity-state HTTP/1.1" 401 5
10.142.0.7 - - [02/Apr/2020:19:04:17 +0000] "GET /mystudies-response-server/participant/get-activity-state HTTP/1.1" 401 5
10.142.0.7 - - [02/Apr/2020:19:05:42 +0000] "GET /mystudies-response-server/participant/get-activity-state?participantId=1 HTTP/1.1" 401 5
10.142.0.7 - - [02/Apr/2020:19:08:14 +0000] "GET /mystudies-response-server/participant/get-activity-state?participantId=1 HTTP/1.1" 401 5```
from fda-mystudies.
It's probably failing the authentication here: https://github.com/GoogleCloudPlatform/fda-mystudies/blob/early-access/response-server-ws/src/main/java/com/google/cloud/healthcare/fdamystudies/config/WebSecurityConfig.java#L27
@zohrehj @nishit-v @aswinijena100 what configuration do we need to setup for this? Thanks!
from fda-mystudies.
Keeping this open until it's verified end-to-end.
from fda-mystudies.
Looks like WCPClientId
and WCPSecretKey
also needs to be in auth_server.client_info
table. I'll update WCP for now.
https://github.com/GoogleCloudPlatform/fda-mystudies/blob/early-access/WCP/fdahpStudyDesigner/src/main/java/com/fdahpstudydesigner/controller/StudyController.java#L5141
from fda-mystudies.
I created a study on WCP with the changes and I'm getting this error now on WCP:
2020-04-02 23:48:08,856 WARN [http-nio-8080-exec-6] (RestTemplate.java:549) - POST request for "http://35.196.119.71:60000/mystudies-response-server/studymetadata" resulted in 400 (null)
; invoking error handler
2020-04-02 23:48:08,865 ERROR [http-nio-8080-exec-6] (StudyController.java:5160) - StudyController - submitResponseToResponseServer() - ERROR
org.springframework.web.client.HttpClientErrorException: 400 null
Logs on response server:
2020-04-02 23:48:08.846 ERROR 1 --- [nio-8080-exec-7] c.g.c.h.f.service.CommonServiceImpl : ERROR: 400
2020-04-02 23:48:08.847 ERROR 1 --- [nio-8080-exec-7] c.g.c.h.f.service.CommonServiceImpl : Headers: [Access-Control-Allow-Origin:"*", Access-Control-Allow-Headers:"*", Access-Contro
l-Allow-Credentials:"true", Access-Control-Allow-Methods:"GET, POST, PUT, DELETE, OPTIONS, HEAD", status:"401", title:"INVALID_INPUT", StatusMessage:"Invalid input.", Content-Type:"applic
ation/json;charset=UTF-8", Transfer-Encoding:"chunked", Date:"Thu, 02 Apr 2020 23:48:08 GMT", Connection:"close"]
2020-04-02 23:48:08.847 ERROR 1 --- [nio-8080-exec-7] c.g.c.h.f.service.CommonServiceImpl : Body: {"message":"Invalid input.","code":"400","isValidClient":false}
2020-04-02 23:48:08.848 ERROR 1 --- [nio-8080-exec-7] c.g.c.h.f.service.CommonServiceImpl : ERROR:
org.springframework.web.client.HttpClientErrorException$BadRequest: 400 : [{"message":"Invalid input.","code":"400","isValidClient":false}]
Logs on auth server:
2020-04-02T23:48:08.836+0000 INFO AuthenticationFilter doFilter() - starts
2020-04-02T23:48:08.840+0000 INFO AuthenticationController validateClientCredentials() - starts
2020-04-02T23:48:08.840+0000 INFO AuthenticationController validateClientCredentials() - ends with BadRequest
2020-04-02T23:48:08.845+0000 INFO AuthenticationFilter doFilter() - ends
from fda-mystudies.
This should be fixed with https://github.com/GoogleCloudPlatform/fda-mystudies/pull/69/files. Pushing the server now.
from fda-mystudies.
Created AppTestStudy6
and seeing this in WCP now:
2020-04-03 00:24:28,757 INFO [http-nio-8080-exec-6] (StudyController.java:5154) - StudyController - submitResponseToResponseServer() - INFO ==>> SUCCESS
2020-04-03 00:24:28,757 INFO [http-nio-8080-exec-6] (StudyController.java:5162) - StudyController - submitResponseToResponseServer() - Ends
from fda-mystudies.
Related Issues (20)
- [IDP] [PM] Verification code should be received by the admins to their latest updated phone number HOT 4
- Upgrade from v2.0.10 to v2.0.11: DB Migration Build Fails for Study Builder HOT 17
- [Android][Offline Indicator] Invalid Client: You are offline. Kindly check the internet connection. HOT 1
- [SB] UI Issue > Questionnaires / Active task > Error messages are overlapping in the scheduling screen HOT 6
- [IDP] [PM] [MFA Disabled] Submit button is disabled in the following scenario HOT 2
- [IDP] [SB] Admin is able to create the questionnaires without entering data in the scheduling screen HOT 6
- [Android] Getting 'You are offline' popup message when tried to signup in the mobile app HOT 3
- [IDP] [SB] Edit admins screen > Already added data is getting displayed in the following scenario HOT 6
- [iOS] Not getting the study completion pop up in the study activities screen even though user submitted all the activities HOT 1
- [IDP [QA] [SB] Popup message is getting displayed while adding a non organizational admin in the study builder in the following scenario HOT 2
- Participant manager datastore build is failing
- [PM] [Auth server] Sign in button is disabled in the following screen HOT 1
- [Android][Sign In] Text change needed for the toast message in Sign in screen
- Security Policy violation Binary Artifacts HOT 118
- [SB] 'Please enter the valid URL' error message is getting while importing the study in the study builder HOT 1
- [PM] [Standalone study] Default image is not getting displayed for the Standalone studies in the following scenario
- [Android Configuration] 'Error, can't continue' message when running the Android app in both the emulator and on a mobile device HOT 15
- [SB] Active Tasks > Add Active Task > Select Active Task > Pre-Defined Active Tasks HOT 1
- [Android] Target questions are displaying without considering the source question responce for branching questionnarie in a scenario
- [SB] > Try your formula pop-up >'x' icon is not clickable in pop-up
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fda-mystudies.