param.query object becomes empty on server side. #2657
-
params.query object becomes empty on server sideI am using websocket for client server communication. On the server side, within the hook I see that the query object is empty. It does not contain the criteria I added when i called the service from the client. Some logic inside the framework is resetting it. Feathers version - 4.3.1 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
The logic is more likely in your application code than the framework but we'd need a complete example to reproduce your issue. |
Beta Was this translation helpful? Give feedback.
-
Here are additional details -
Problem statement - Auth0-custom-authentication strategy flow works fine. When I try to use generated feathers JWT token for API calls, i have observed that
I need help to debug this issue as I am not sure why it is happening. Another puzzling observation - If I just refresh the browser side application using "refresh" button, communication is restored. Everything starts working as expected including the query object. |
Beta Was this translation helpful? Give feedback.
-
I have updated the feathersJS library from 4.3.1 to 4.5.15. It has resolved the query issue I was facing. So we can close the thread at this moment. NOTE - My application is not working as expected after Auth0 SSO login. There are some service calls in which query object is still going empty. I want debug it at my end to ensure that it is not a code issue. QUESTION - I want to debug feathers framework code check if the query parameters are being passed to each hook. Where do I start for it? Can you guide me? |
Beta Was this translation helpful? Give feedback.
-
I am able to resolve the issue. It was little tricky. I have custom authentication scheme. The scheme was returning a result and the result had a field with name "query". This field was somehow overriding "query" parameters passed by service calls and causing the challenges I faced. I renamed the query field returned by my custom authentication scheme and everything started working as expected. |
Beta Was this translation helpful? Give feedback.
I am able to resolve the issue. It was little tricky. I have custom authentication scheme. The scheme was returning a result and the result had a field with name "query". This field was somehow overriding "query" parameters passed by service calls and causing the challenges I faced.
I renamed the query field returned by my custom authentication scheme and everything started working as expected.