Tag: error
-
Post Views: 29 In Go language, errors are not an exception, but a value. By implementing the Error interface, we can create custom error types with rich context information. This article will combine Go Tour’s ‘exercise: errors’ exercise to explore how to implement a square root function that supports negative number detection, and reveal the ‘infinite recursion’ pit that is…
-
Post Views: 44 1. When learning the official Go tutorial a Tour of Go, I encountered a very classic exercise:Implement a square root function sqrt(x). as shown in Figure 1 This exercise involves not only Go’s loops and functions, but also introduces a very important numerical calculation method:Newton iteration method (Newtons method). This article will demonstrate how to get from…
-
Post Views: 38 1. Error: Error: Expected Response Code 354 But Got Code “503”, with message “503 Bad Sequence of Commands”[@sm190202]” . As shown in Figure 1 2. SMTP rejects the preparation steps before the data command. This is a common specific trigger point for 503, usually caused by missing or errors in rcpt to . Make sure that $this->to…
-
Post Views: 16 1. When pulling in TortoiseGit, an error is reported: Error: Some local refs could not be updated; try runningGit Remote Prune OriginTo remove any old, conflicting branches. as shown in Figure 1 2. Check the prompt information carefully and find that there is: error: cannot lock refrefs/remotes/origin/sc/fix/to-be-merged-table-scroller:refs/remotes/origin/sc/fixexists; cannot createrefs/remotes/origin/sc/fix/to-be-merged-table-scroller. as shown in Figure 2 3. Reference: When…
-
Post Views: 63 1. Error: class “vtifulkernelexcel” not found. 2. The reason is that the extension php-ext-xlswriter is not installed. 3. GitHub Release: https://github.com/viest/php-ext-xlswriter/releases download php-windows-xlswriter-cf7e1933-8.1-ts-vs16-x64.zip. as shown in Figure 1 4. After decompression, copy php_xlswriter.dll to C:php-8.1.27extphp_xlswriter.dll 5. Edit php.ini, add extension=xlswriter 6. After restarting php, the error is reported again:[ERROR]workbook_close(): error creatingE:WWWRootObjectStorageAppExport/Order/Order Export Task 2024-02-19 10:24:06.xls. error =…
-
Post Views: 16 1. After entering the front-end page, click some links, the URL will change, and the response is 200 at this time. But once the entire page is refreshed, it will respond to 404. such as video 1 2. View the error log of nginx and add a line: try_files $uri $uri//index.html; 3. Refresh the entire page again,…
-
Post Views: 13 1. When executing the command: git push -u origin main, an error is reported: fatal: unable to accesshttps://github.com/shuijingwan/refactoring.git/: Error:1407742E:SSL Routines:SSL23_GET_SERVER_Hello:TLSv1 Alert Protocol Version. as shown in Figure 1 2. Reference:https://github.com/glennhickey/progressiveCactus/issues/93. Work for me on Windows: Update git to latest version (2.16) and remove old version ( 1.9). as shown in Figure 2 3. Check the version of…