The requested URL cannot be obtained, but the server repeatedly receives two submissions.

Source: Internet
Author: User
The URL you requested cannot be obtained, but the server repeatedly receives the data submitted in the form twice, and then executes the PHP code (continuously INSERT records to the database, for example, 1000 Records ).. However, when the execution is complete, I find that there are 2000 million data records, half of which are more than half. then I write logs at the completion of the execution. I find that the requested URL (URL) cannot be obtained, however, the server repeatedly receives two submissions.

After the form submits data, execute PHP code (INSERT records continuously to the database, for example, 1000 Records )..
However, when the execution is completed, it turns out that there are 2000 million data records, half more.
Then I wrote logs at the completion of the execution and found that two logs are frequently displayed, about 100 seconds apart.
That is to say, the request is twice? However, during the test, the front-end does request only once.

If the page execution fails, the following error page is displayed:
Share:
------ Solution --------------------
The code has been repeatedly executed. it should be the code details. paste the relevant code and check it out.
------ Solution --------------------
Reference:
Nobody knows?

I am not quite clear about your problem.
I tried again just now, but after the following prompt appears
Is it "is the link reset "?
If your browser executes the request, you can f12 to check whether there is a problem with the network request.
------ Solution --------------------
1. it may be related to your server configuration. Because you have hidden the url, you cannot determine whether it is the cause (if not configured by a professional, the possibility is at least 80%)
2. it may be related to your browser, for example, IE8 or below. The possibility of post forms being processed repeatedly is about 50%.
3. it may be related to your program. it is time-consuming to process thousands of data entries one by one, and the program may time out.
4. it may be related to the data itself. if you do not check the validity of the data, wrong data will inevitably cause the system to crash.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.