Tuesday, June 23, 2015

VUGen replay errors for HTTPS sites



Problem Statement: Now as most of the sites are migrating to HTTPS; during replay of these application(s) / sites you might see some errors as mentioned below; you can follow the solutions given to resolve the same.

Solution:

Below are a list of Errors encountered and their resolutions for the same:
Error: "--27776: Server "[server_name]" shut connection during attempt to negotiate SSL session"

To resolve this issue, you can reduce the amount of connections simultaneously opened to a Web server by using the following statement in the script:
web_set_sockets_option("MAX_CONNECTIONS_PER_HOST","1");
Also, make sure that Keep-Alive is set to "No." This setting can be found via Run-Time Settings -> Preferences -> Options -> Keep-Alive HTTP Connections.

Error: "Error -27781 Timeout in state STATE_SSL_CONNECT "
Error: -27778 : SSL protocol error when attempting to read with host

There are some possible work-around for the above 2 errors, you need to check which one (or combination) works for you:
1. Add the following statement to the beginning of the script:
        web_set_sockets_option("SSL_VERSION", "3");
You can check the SSL Version in your recording log of the script, it can be TLSv1.1 / 1.2 or SSL3; accordingly you can change the command mentioned above.

2. Add web_set_sockets_option("MAX_CONNECTIONS_PER_HOST","1"); at the very beginning of the script.

This forces a single connection to the server thus eliminating the possibility of the server prematurely shutting down an existing connection and causing errors when LoadRunner sends data using that connection.

3. Disable webpage breakdown if HTTPS protocol (SSL) is being used and there is a proxy server in-between the client (LoadRunner) and the server under test. To disable webpage breakdown from the Controller:

   a. Go to Diagnostics->Configuration.
   b. Select "Disable" tab for "Web Page Diagnostics"
   c. Click "OK" to close the diaglogue to complete the setup

4. If you have generated your script using WinInet options then use the WinInet Replay engine. To do so, go to Run-Time Settings -> Preferences -> Select "WinInet Replay Engine instead of Sockets (Windows Only)."

Error: "SSL State: error in SSLv3 write client certificate B..." while replaying in Socket mode
Error: "SSL protocol error when attempting to connect with host" while replaying a Web protocol script

Add all of the certificates in the certificate hierarchy for the SSL certificate to a .pem file (e.g. certFile.pem) and include this .pem file by adding the following line at the beginning of the script:
web_set_certificate_ex( "CertFilePath=certFile.pem", "CertFormat=PEM", ...LAST);
web_set_sockets_option("LOAD_VERIFY_FILE", "certFile.pem");

Error -27791 : "server name" has shut down the connection prematurely

To Resolve this, you can try adding the below command:
web_set_sockets_option("MAX_CONNECTIONS_PER_HOST","1"); at the very beginning of the script.
If you still get the same error then you can try the below command (add it after the previous one):
web_set_sockets_option("IGNORE_PREMATURE_SHUTDOWN", "1")

Error: SSL protocol error when attempting to connect with host "xxx"

Try to check the certificate and connection using openssl with this sentence from CMD:
                       openssl s_client -connect :2443
               or
                       openssl s_client -connect :443

This will show the certificate information. If not, application has a certificate problem and need to check with application owners / server admins.

22 comments:

  1. Great post. Needed to write simple word that Thanks for suggestions. Keep it up! best sap simple finance online training institute in hyderabad

    ReplyDelete
  2. I just stumbled over this page and have to say - wow. The site is really good and kept up to date. Continue like
    RDVV BCOM TimeTable 2020
    UOK BCOM TimeTable 2020

    ReplyDelete
  3. Hey! Mind-blowing blog. Keep writing such beautiful blogs. In case you are struggling with issues on QuickBooks software, dial QuickBooks Support (877)603-0806. The team, on the other end, will assist you with the best technical services.

    ReplyDelete
  4. Hey! Nice Blog, I have been using QuickBooks for a long time. One day, I encountered QuickBooks Support Number in my software, then I called QuickBooks Support Number They resolved my error in the least possible time.

    ReplyDelete
  5. Hey! Well-written blog. It is the best thing that I have read on the internet today. Moreover, if you are looking for the solution of QuickBooks Customer Service, visit at QuickBooks Phone Number to get your issues resolved quickly.

    ReplyDelete

  6. This Blog have relevant information’s and reference links which not get bored to the readers.
    What is Digital PR?
    PR in Digital Marketing

    ReplyDelete
  7. Hey! Lovely blog. Your blog contains all the details and information related to the topic. In case you are a QuickBooks user, here is good news for you. You may encounter any error like QuickBooks Error, visit at QuickBooks Customer Service Number for quick help.

    ReplyDelete
  8. Great work! It is the best thing that I have read on the internet today. Moreover, If you encounter any error while working on QuickBooks software , do contact this QuickBooks Customer Service Number (855)963-5959 number for quick assistance.

    ReplyDelete
  9. Hey! Mind-blowing blog. Keep writing such beautiful blogs. In case you are struggling with issues on QuickBooks for MAC Support , dial QuickBooks Support Phone Number (602)325-1557. The team, on the other end, will assist you with the best technical services.

    ReplyDelete
  10. Awesome bolg.if you looking for a best quickbook customer service you can contact us on phone call.+1 888-272-4881

    ReplyDelete
  11. Nice & Informative Blog !
    In case you face any technical issue in QuickBooks, call us at QuickBooks Customer Service Phone Number +1 346-414-8256and get feasible solutions for QuickBooks problems.

    ReplyDelete
  12. This comment has been removed by the author.

    ReplyDelete
  13. good contant!! we provide bestest service and you are looking for QUICKBOOKS SUPPORT SERVICE SUPPORT. you can contact us at.+18555484814

    ReplyDelete
  14. Good content!!
    if you want to a best service so go to Quickbook support serviceyou can contact us at.+1 888-210-4052

    ReplyDelete
  15. It`s a very good blog. Start your day from Suryanamaskar to make day Energetic. meditation basics yoga , yogainfo, theyogainfo.com you reach us at


    ReplyDelete
  16. I find it useful is the ability to call Quickbooks phone numbers for help. This can be done by dialing Quickbooks Support Phone Number +1 8555644161. When you do, you will reach the customer service team, who will be able to provide assistance with any question or issue that you may have.

    ReplyDelete
  17. Thanks for sharing Nice blog. blog. Here is mastery about yoga Yoga, yogainfo , Female fitness,you reach us at

    ReplyDelete
  18. When you you are using Quickbooks Software then many type error may occurs at this time so you should call at quickbooks support phone number

    ReplyDelete