The code was overwritten by a colleague, which made me miserable all day

Product feedback: An interface that I have been online for several months reported an error. The following is the error message:

I immediately checked the source code and found that an interface request returned an error. The following is the error code line:

 

I released this code a few months ago, and it has been verified that it works. Now I am getting an error, which makes me quite depressed. . .

After thinking hard for an afternoon, I felt that I needed to check the log printing records in the formal environment, and then I saw the error code information:

 

 It shows that the field cannot be found. This field was not posted by me, which made me quite confused. Fortunately, at least I have an idea.

When I was about to get off work, I had an idea and went to the production environment to check the code.

I wouldn’t know if I didn’t check it. But I was shocked when I checked it and saw that the production environment had a code version that was different from my local version.

After communicating later, I found that another colleague accidentally synchronized it, and the code was placed on his machine without version management, so there was no clue in the version log on my side.

Finally, just put my code in it.

The cause of the problem: A colleague put the code from the test environment into production, causing an error.

Result: Just roll back and it will be fine

 

Guess you like

Origin blog.csdn.net/lijinquan2009/article/details/126647292