<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rich on Medium]]></title>
        <description><![CDATA[Stories by Rich on Medium]]></description>
        <link>https://medium.com/@rich_13499?source=rss-19d3f708b3e6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*tWCaVUfrGyVTr3hH</url>
            <title>Stories by Rich on Medium</title>
            <link>https://medium.com/@rich_13499?source=rss-19d3f708b3e6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 12:08:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rich_13499/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Selenium Page Load Timeout Error]]></title>
            <link>https://medium.com/@rich_13499/selenium-page-load-timeout-error-525e46461300?source=rss-19d3f708b3e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/525e46461300</guid>
            <category><![CDATA[selenium-webdriver]]></category>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[chrome]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Rich]]></dc:creator>
            <pubDate>Thu, 01 Dec 2022 21:00:42 GMT</pubDate>
            <atom:updated>2022-12-01T21:00:42.675Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nvmqis-8ibfulSa-PG84cA.png" /></figure><p>We run our selenium grid using Docker containers in AWS. We have been plagued by 504 errors recently and this post will outline what we needed to do to peel back the layers on the issue.</p><p>Our first issue we were seeing was a reported 504 in the logs from the job that run the tests. There are several reasons this could happen but this proved to be a response caused by the AWS load balancer. The ALB maintains a front-end and back-end connection for a session. What happens is that the idle timeout is hit before the application’s session times out. This causes the next request to raise a 504.<br>Docs: <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/application/application-load-balancers.html#connection-idle-timeout">Load Balancer Idle Timeout</a></p><p>Once that was fixed it exposed an underlying error being sent back from the WebDriver.<br><em>No response from renderer after 300s</em></p><p>This was a very confusing issue because it doesn’t tell you why, or even what the renderer is referring to. It also reports an error after 300 seconds. I have a global timeout set to be a maximum of 60 seconds, so where was it getting this 300 seconds from? Finally found the Page Load Timeout which defaults to 300 seconds. We set this in the code to be 10 seconds and sure enough we had these errors after 10 seconds. Great, but why is the page not loading after 300 seconds, when clearly it is if you watch it?</p><p>There is a lot of chatter about this exact issue and some people claim to fix it with certain options, while other claim to fix it by upgrading the container versions. However some people claim they fixed it by removing options, while other have it start failing when they upgrade the container version.</p><p>Our main browser for testing is Chrome. While I do most of my development using Firefox. After testing it a bit more we found that this error seems to be an issue mainly with Chrome. We recently upgraded our containers and saw this more frequently, but it got to the point that all our tests have failed.</p><p>I switched our browser for our automation to use Firefox and have not seen this error since. I am still not sure if it is a problem with the communication between the WebDriver and the browser or the containerization of the Chrome browser itself that is responsible, but that is a story for another day.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=525e46461300" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Adventures: Adding a Dynamic List of IP Addresses to a Security Group Using Terraform]]></title>
            <link>https://medium.com/formswift/aws-adventures-adding-a-dynamic-list-of-ip-addresses-to-a-security-group-using-terraform-df9233614605?source=rss-19d3f708b3e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/df9233614605</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[network-security]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[travis-ci]]></category>
            <dc:creator><![CDATA[Rich]]></dc:creator>
            <pubDate>Thu, 11 Aug 2022 16:25:58 GMT</pubDate>
            <atom:updated>2022-08-11T16:25:58.332Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hinV3S9e_riGhlFf" /><figcaption>Photo by <a href="https://unsplash.com/@theshubhamdhage?utm_source=medium&amp;utm_medium=referral">Shubham Dhage</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>My current test automation infrastructure requires that I allow traffic from my build server to reach my internal test servers. However my build server has a changing set of IP addresses it uses for its build machines. As a result I periodically get connection timeouts because new build machine IP’s are not in the current security group, while decommissioned build machine IP’s are.</p><p>Initially I updated this list manually and then re-applied Terraform code to update the security group. However I discovered that I could get a list of the build machine IP addresses through an API in JSON format. Additionally Terraform has a built-in HTTP client that can be used to get this list.</p><p>The HTTP data block below sets the URL and headers. The local variable stores the processed IP address list. In this example I need to transform each IP into CIDR format for the AWS Security Group. Then in the security group I can reference the local variable containing the new list. This updates each time <strong>terraform apply</strong> is run.</p><pre>data &quot;http&quot; &quot;build_machine_ips&quot; {<br>  url = &quot;https://dnsjson.com/<strong>DNS_NAME</strong>/A.json&quot;<br><br>  request_headers = {<br>    Accept = &quot;application/json&quot;<br>  }<br>}</pre><pre>locals {</pre><pre>  # Excessive formatting is only for post. the following code<br>  # should all be one line.<br>  <em>build_machine_ip_list</em> = sort([ <br>    for ip in jsondecode(<br>      <strong>data.http.build_machine_ips</strong>.body<br>      )[&quot;results&quot;][&quot;records&quot;]:</pre><pre>      # Reformat list into CIDR notation for AWS<br>      &quot;${ip}/32&quot;<br>  ])<br>}<br><br>resource &quot;aws_security_group&quot; &quot;build_machine_sg&quot; {<br>  name        = &quot;NetworkPorts&quot;<br>  description = &quot;Allow external access&quot;<br>  vpc_id      = &quot;<strong><em>xxxxxxxx</em></strong>&quot; # Add your VPC<br><br>  ingress {<br>    from_port   = 80<br>    to_port     = 80<br>    protocol    = &quot;TCP&quot;<br>    cidr_blocks = local.<strong>build_machine_ip_list</strong><br>    description = &quot;Access to internal servers from build machines&quot;<br>  }<br>}</pre><p>Now it updates automatically when the infrastructure is applied.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df9233614605" width="1" height="1" alt=""><hr><p><a href="https://medium.com/formswift/aws-adventures-adding-a-dynamic-list-of-ip-addresses-to-a-security-group-using-terraform-df9233614605">AWS Adventures: Adding a Dynamic List of IP Addresses to a Security Group Using Terraform</a> was originally published in <a href="https://medium.com/formswift">FormSwift</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>