Cannot refresh a JWT token
-
getting the following response from /api/jwt/refresh post request
2023-09-27 15:22:34 2023-09-27 07:22:34.741 PM ERROR io.fusionauth.app.primeframework.error.ExceptionExceptionHandler - An unhandled exception was thrown 2023-09-27 15:22:34 java.lang.NullPointerException: Cannot read field "lambdaConfiguration" because "<parameter3>" is null 2023-09-27 15:22:34 at io.fusionauth.api.service.jwt.DefaultJWTService.refreshAccessToken(DefaultJWTService.java:252) 2023-09-27 15:22:34 at org.mybatis.guice.transactional.TransactionalMethodInterceptor.invoke(TransactionalMethodInterceptor.java:100) 2023-09-27 15:22:34 at org.mybatis.guice.transactional.TransactionalMethodInterceptor.invoke(TransactionalMethodInterceptor.java:100) 2023-09-27 15:22:34 at org.mybatis.guice.transactional.TransactionalMethodInterceptor.invoke(TransactionalMethodInterceptor.java:100) 2023-09-27 15:22:34 at org.mybatis.guice.transactional.TransactionalMethodInterceptor.invoke(TransactionalMethodInterceptor.java:100) 2023-09-27 15:22:34 at io.fusionauth.app.action.api.jwt.RefreshAction.post(RefreshAction.java:168) 2023-09-27 15:22:34 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2023-09-27 15:22:34 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) 2023-09-27 15:22:34 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 2023-09-27 15:22:34 at java.base/java.lang.reflect.Method.invoke(Method.java:568) 2023-09-27 15:22:34 at org.primeframework.mvc.util.ReflectionUtils.invoke(ReflectionUtils.java:443) 2023-09-27 15:22:34 at org.primeframework.mvc.action.DefaultActionInvocationWorkflow.execute(DefaultActionInvocationWorkflow.java:77) 2023-09-27 15:22:34 at org.primeframework.mvc.action.DefaultActionInvocationWorkflow.perform(DefaultActionInvocationWorkflow.java:60) 2023-09-27 15:22:34 at org.primeframework.mvc.workflow.SubWorkflowChain.continueWorkflow(SubWorkflowChain.java:50) 2023-09-27 15:22:34 at org.primeframework.mvc.message.DefaultMessageWorkflow.perform(DefaultMessageWorkflow.java:50) 2023-09-27 15:22:34 at org.primeframework.mvc.workflow.SubWorkflowChain.continueWorkflow(SubWorkflowChain.java:50) 2023-09-27 15:22:34 at org.primeframework.mvc.validation.DefaultValidationWorkflow.perform(DefaultValidationWorkflow.java:45) 2023-09-27 15:22:34 at org.primeframework.mvc.workflow.SubWorkflowChain.continueWorkflow(SubWorkflowChain.java:50) 2023-09-27 15:22:34 at org.primeframework.mvc.security.DefaultSecurityWorkflow.perform(DefaultSecurityWorkflow.java:65) 2023-09-27 15:22:34 at org.primeframework.mvc.workflow.SubWorkflowChain.continueWorkflow(SubWorkflowChain.java:50) 2023-09-27 15:22:34 at org.primeframework.mvc.parameter.DefaultPostParameterWorkflow.perform(DefaultPostParameterWorkflow.java:49) 2023-09-27 15:22:34 at org.primeframework.mvc.workflow.SubWorkflowChain.continueWorkflow(SubWorkflowChain.java:50) 2023-09-27 15:22:34 at org.primeframework.mvc.content.DefaultContentWorkflow.perform(DefaultContentWorkflow.java:74) 2023-09-27 15:22:34 at org.primeframework.mvc.workflow.SubWorkflowChain.continueWorkflow(SubWorkflowChain.java:50) 2023-09-27 15:22:34 at org.primeframework.mvc.parameter.DefaultParameterWorkflow.perform(DefaultParameterWorkflow.java:58) 2023-09-27 15:22:34 at org.primeframework.mvc.workflow.SubWorkflowChain.continueWorkflow(SubWorkflowChain.java:50) 2023-09-27 15:22:34 at org.primeframework.mvc.parameter.DefaultURIParameterWorkflow.perform(DefaultURIParameterWorkflow.java:92) 2023-09-27 15:22:34 at org.primeframework.mvc.workflow.SubWorkflowChain.continueWorkflow(SubWorkflowChain.java:50) 2023-09-27 15:22:34 at org.primeframework.mvc.scope.DefaultScopeRetrievalWorkflow.perform(DefaultScopeRetrievalWorkflow.java:50) 2023-09-27 15:22:34 at org.primeframework.mvc.workflow.SubWorkflowChain.continueWorkflow(SubWorkflowChain.java:50) 2023-09-27 15:22:34 at org.primeframework.mvc.action.DefaultActionMappingWorkflow.perform(DefaultActionMappingWorkflow.java:113) 2023-09-27 15:22:34 at org.primeframework.mvc.workflow.SubWorkflowChain.continueWorkflow(SubWorkflowChain.java:50) 2023-09-27 15:22:34 at org.primeframework.mvc.security.DefaultSavedRequestWorkflow.perform(DefaultSavedRequestWorkflow.java:65) 2023-09-27 15:22:34 at org.primeframework.mvc.workflow.SubWorkflowChain.continueWorkflow(SubWorkflowChain.java:50) 2023-09-27 15:22:34 at org.primeframework.mvc.cors.CORSFilter.doFilter(CORSFilter.java:171) 2023-09-27 15:22:34 at org.primeframework.mvc.cors.CORSRequestWorkflow.perform(CORSRequestWorkflow.java:63) 2023-09-27 15:22:34 at org.primeframework.mvc.workflow.SubWorkflowChain.continueWorkflow(SubWorkflowChain.java:50) 2023-09-27 15:22:34 at org.primeframework.mvc.workflow.DefaultMVCWorkflow.perform(DefaultMVCWorkflow.java:108) 2023-09-27 15:22:34 at org.primeframework.mvc.PrimeMVCRequestHandler.handle(PrimeMVCRequestHandler.java:72) 2023-09-27 15:22:34 at io.fusionauth.http.server.HTTPWorker.run(HTTPWorker.java:50) 2023-09-27 15:22:34 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) 2023-09-27 15:22:34 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 2023-09-27 15:22:34 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) 2023-09-27 15:22:34 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) 2023-09-27 15:22:34 at java.base/java.lang.Thread.run(Thread.java:833)
does not appear to be any guidance on this. I am getting the user refresh token from the same endpoints get method using the userID
-
Hi @clowen !
What version of FusionAuth are you using?
Have you set up a lambda function for this application?
Are you providing the
applicationId
on the request? Better yet, can you please provide the request you are making?