Home > Back-end >  Small program calls the backend API interfaces occasionally performed twice, please bosses give advi
Small program calls the backend API interfaces occasionally performed twice, please bosses give advi

Time:09-18

Small program in the calling the backend API interface (POST requests), incidental interface is called twice, there are two of the same data in the repository (UUID generated but different), please bosses to give directions, thank!!!!!!

CodePudding user response:

The back-end to print the log to see if the front sent two requests, what are your front-end app?
Our program has also been found in the iOS has such a bug, and use two fingers to click a button, and then two fingers left button, and in turn will trigger twice request (triggered release button, two fingers in turn release button, creates two trigger).

CodePudding user response:

reference 1st floor qybao response:
back-end print log, see if the front sent two requests, what are your front-end app?
Our program has also been found in the iOS has such a bug, and use two fingers to click a button, and then two fingers left button, and in turn will trigger twice request (triggered release button, two fingers, in turn, release the button, it caused two trigger),


The front is a small program, the background is springcloud, gateway for zuul,

CodePudding user response:

Will be bound to the button two trigger modes, seems a, for example: individual as href and onclick in Java JSP page

CodePudding user response:

I have a project has a similar situation before, the front says he code must no problem and the only one, but the background I see the log do have two requests, lead to duplicate data warehousing, only the manual on a regular basis to delete, don't know whether I WeChat applet framework own behavior, then put the database, the only index, repeated injection when an error code in the try catch, the problem will not appear, but I still don't know why there are two request to come over,

CodePudding user response:

Have 2 servers

CodePudding user response:

The building Lord solved
  • Related