My API seems to run multiple times, is this a front-end or backend issue?
![Xano Support Chat](https://us.v-cdn.net/6037124/uploads/userpics/FKYXLB95T7IC/nMGWYAJV7MBEL.jpeg)
ADMIN
Hello, I've noticed that every once in a while, some of my API's are run multiple times. For example, in the screenshot below, someone was trying to verify the OTP for login and instead of the API running once, it ran like 12 separate times back to back (just showing some of them in screenshot). My question is, is this a backend problem I need to fix in the function stack or is this caused from the frontend
Best Answer
-
Hey! This is a great question. This would be due to the API being called multiple times by the front-end. We've definitely seen this before where the front-end logic/workflow/code calls the API multiple times.
Answers
-
Would that signal a potential bug in the frontend? Because, 90% of the time this API is only called once and is successful and then every once in a while this happens
-
It's quite possible but I wouldn't be able to diagnose a front-end bug. It'd be worth closely debugging how the call is performed in the front-end in tandem with checking the request history. And also checking with your front-end's support team
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback