RADAR-base / RADAR-PushEndpoint

A gateway to expose endpoints for Push based services to POST data to RADAR-Base platform.
Apache License 2.0
2 stars 2 forks source link

Error Deregistering user when user does not exist in the in-memory cache #45

Open yatharthranjan opened 2 years ago

yatharthranjan commented 2 years ago

The following error is thrown when the user does not exist in the in-memory cache and needs to be deregistered in the rest-sources-auth.

[2022-09-13 14:28:24,686] INFO  - Requesting info from http://172.16.1.9:8090/rest-sources/backend/users?source-type=Garmin
[2022-09-13 14:28:24,701] WARN  - no_user: The user 3db64262-a303-4274-83a9-3cc2d73e0130 could not be found in the user repository.
[2022-09-13 14:28:24,701] INFO  - Requesting info from http://172.16.1.9:8090/rest-sources/backend/source-clients/Garmin/authorization/3db64262-a303-4274-83a9-3cc2d73e0130?accessToken=6d************************ed
[2022-09-13 14:28:24,707] ERROR - [500] GET garmin/dailies
java.io.IOException: Failed to make request (HTTP status code 400){"error":"project_id_missing","error_description":"Missing project ID in request"}
    at org.radarbase.push.integration.garmin.user.GarminServiceUserRepository.makeRequest(GarminServiceUserRepository.kt:167)
    at org.radarbase.push.integration.garmin.user.GarminServiceUserRepository.deregisterUser(GarminServiceUserRepository.kt:113)
    at org.radarbase.push.integration.garmin.auth.GarminAuthValidator.verify(GarminAuthValidator.kt:44)
    at org.radarbase.push.integration.common.auth.DelegatedAuthValidator.verify(DelegatedAuthValidator.kt:33)
    at org.radarbase.jersey.auth.filter.AuthenticationFilter.filter(AuthenticationFilter.kt:43)
    at org.glassfish.jersey.server.ContainerFilteringStage.apply(ContainerFilteringStage.java:108)
    at org.glassfish.jersey.server.ContainerFilteringStage.apply(ContainerFilteringStage.java:44)
    at org.glassfish.jersey.process.internal.Stages.process(Stages.java:173)
    at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:247)
    at org.glassfish.jersey.internal.Errors$1.call(Errors.java:248)
    at org.glassfish.jersey.internal.Errors$1.call(Errors.java:244)
    at org.glassfish.jersey.internal.Errors.process(Errors.java:292)
    at org.glassfish.jersey.internal.Errors.process(Errors.java:274)
    at org.glassfish.jersey.internal.Errors.process(Errors.java:244)
    at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:265)
    at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:234)
    at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:680)
    at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:356)
    at org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:190)
    at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:535)
    at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:515)
    at java.base/java.lang.Thread.run(Unknown Source)