Hi Team,
I am making single Ajax calls from Angular to these 2 servlets on from My login component. But it always calls twice and couldn't able to find what was going wrong. Is this a product defect? Please help me to resolve this issue.
FYI,
AEM: 6.5.13
In general, all servlet calls are happening twice in AEM-SPA. (AEM + Angular)
The below thread also has the same issue, but no correct answer.
Regards,
Shyam
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @shyamasundar-ks ,
The way I would debug this would be as follows:
- Open browser developer console
- Search for the servlet called in the sources(JS)
- Then put the breakpoint there.
- Check if the breakpoint is called twice. ( Which I think it would )
? If yes, the problem lies within the JS script, and you need to check why it is called twice.
> If not, the problem may be something else, and we need to investigate further.
Hi @shyamasundar-ks ,
The way I would debug this would be as follows:
- Open browser developer console
- Search for the servlet called in the sources(JS)
- Then put the breakpoint there.
- Check if the breakpoint is called twice. ( Which I think it would )
? If yes, the problem lies within the JS script, and you need to check why it is called twice.
> If not, the problem may be something else, and we need to investigate further.
@shyamasundar-ks - Try debugging using browser console. Also see if you are not embedding multiple clientlibs.
Hi,
You might have click event registered twice, can you please check?
Views
Likes
Replies