When I am adding a new entry to the child table through mobile app, it is not fetching the user id. It is working as expected sometimes but sometimes it is unable to fetch the user id.
This is the business process that I have written to fetch the current user but it is not able to fetch everytime. For some users it is fetching the current user but sometimes it is not able to fetch the current user.
You need to add more logs to your processes to detect exact problem. Provided information is not enough to understand it.
Check that onCreate trigger really starts and API request return result without error.
Possible problem - user is not authorized but its required for profile endpoint.
Hi,
I Have done the needful whichever is guided in the instructions but still stuck with the same issue.
The LOG is getting unauthorised error. Can you please give some more details on how to solve authorisation issue .
@Jyoti_Deep So you basically saying that all endpoints that require authorization are not working when you properly send requests with auth token or only /api/user/profile/ ?
If one user can call endpoint and another can’t, please check user groups and auth middleware on that endpoint.
Even when new user profile is created using signup, The account gets created succesfully and the user details reflects in the DB but the same problem persists and profile doesn’t load when logged in with the new account.