How to Debug your Pre Steps Errors
This document will help you debug your failed job if you are facing any errors in the pre-command stage.
Lambda Error
While executing a playwright project in HyperExecute, you may encounter a Lambda Error.
To resolve this issue, you need to pass the below mentioned command in the pre step in your YAML file
pre:
- npx install playwright
.Net Build Issue in C#
If you encounter a similar error while running the command dotnet build in pre steps, as mentioned below, it means that you are not using a core dotnet version but instead a framework version.
error : MSB4803: The task "ResolveComReference" is not supported on the .NET Core version of MSBuild
We need to build it by invoking MSBuild.exe from the Visual Studio directory inside our VMs. Please target MSBuild.exe of Visual Studio 19. Replace dotnet build with the below command
C:\PROGRA~2\Micros~1\2019\Community\MSBuild\Current\Bin\MSBuild.exe /p:Configuration=Release /p:TargetFramework=net481 /t:restore
The target Framework can be replaced with dotnet version targeted in the user’s repository. /p:TargetFramework=net70302
SSL Certificate Error
This error is generated while installing the dependencies in your project suite.
Error in Python
You can encounter a similar error while installing dependencies
There was a problem confirming the ssl certificate:
HTTPSConnectionPool(host='http://pypi.org ', port=443):
Max retries exceeded with url: /simple/selenium/
(Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed: self signed certificate in certificate chain
(_ssl.c:1131)'))) - skipping
To resolve the above issue, you are required to pass the following command
pip install -r requirements.txt --cache-dir
pip_cache --trusted-host http://pypi.org --trusted-host http://pypi.python.org --trusted-host files.pythonhosted.org
pip setuptools
Error in Maven
You can encounter a similar error while running Maven Project as well, Now to resolve this issue for maven, pass the following command
-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true