N
Novu5mo ago
akash

Regarding session issue

Getting infinte session api calls, url is:https://api.novu.co/v1/inbox/session i'm not calling this kind of api in my code. it is calling from sdk in infinte. can you please provide me the solution.
No description
12 Replies
Pawan Jain
Pawan Jain5mo ago
@akash You must be using inbox or initializing the session in useEffect Can you share your code implementation
akash
akashOP5mo ago
I am using only 2 hooks provided by novu, one is useNotification and second is useCount This session api is calling infinite on its own
Pawan Jain
Pawan Jain5mo ago
@akash Can you share your code implementation?
akash
akashOP5mo ago
Yes, i am sharing it, please let me know if i am missing something
akash
akashOP5mo ago
@Pawan Jain do you need any guide in code ? Please let me know. @Pawan Jain ??
Dima Grossman
Dima Grossman5mo ago
@akash this code is enough for the time being, it's also connected to the rate limiting you are getting in the other thread you opened
akash
akashOP5mo ago
Okay
Dima Grossman
Dima Grossman5mo ago
@akash what novu/react version are you using?
akash
akashOP5mo ago
18.2.0
Novu_Bot
Novu_Bot5mo ago
@akash, you just advanced to level 3!
Pawan Jain
Pawan Jain5mo ago
@akash Looks like your above code has your custom components which is making it a bit difficult to debug. I reached out to you in DM requesting for screen sharinfg session, but you denied. So now only possible way for us to debug is if you can share github repo with minimal code so that we can reproduce the issue. Please make sure, github repo has minimal code and does not have custom components

Did you find this page helpful?