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 Deregistering user when user does not exist in the in-memory cache #45

Open
yatharthranjan opened this issue Sep 13, 2022 · 0 comments

Comments

@yatharthranjan
Copy link
Member

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)
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

1 participant