# Macros not working: port not found with 0 and Loading page timedout after 60 seconds

**URL:** <https://forums.distill.io/t/macros-not-working-port-not-found-with-0-and-loading-page-timedout-after-60-seconds/2502>\
**Category:** Help and Support\
**Tags:** macros\
**Created:** [September 15, 2023, 4:18pm UTC](https://forums.distill.io/t/macros-not-working-port-not-found-with-0-and-loading-page-timedout-after-60-seconds/2502 "2023-09-15T16:18:39Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul1600](https://forums.distill.io/letter_avatar_proxy/v4/letter/p/b9bd4f/32.png) [@paul1600](https://forums.distill.io/u/paul1600)\
**Post date:** [September 15, 2023, 4:18pm UTC](https://forums.distill.io/t/macros-not-working-port-not-found-with-0-and-loading-page-timedout-after-60-seconds/2502/1 "2023-09-15T16:18:39Z")

</div>

Hi! I’d like to ask why my macros are not working. Both of the sites I’m monitoring automatically logs out the account whenever the tab is closed so I have to use a Macro for each of them.

Monitor 1 Check log:

 ![image](https://forums.distill.io/uploads/default/original/1X/fe48df605e04a270c46214d7506872ed27229515.png)

Monitor page:  
[https://bettingzoo.ag/v2/#/pendings](https://bettingzoo.ag/v2/#/pendings)

my macros are:

1. wait doc
2. click (login id)
3. type
4. click (password)
5. type
6. click (enter)
7. wait doc
8. click (pending)

1st page:

 ![image](https://forums.distill.io/uploads/default/original/1X/45e0738c291fa707a5e664775923777884e7cdb0.png)

2nd page:

 ![image](https://forums.distill.io/uploads/default/original/1X/8052668f1bba15c4e337857c0d65cbe64eccb22e.png)

3rd page:

 ![image](https://forums.distill.io/uploads/default/original/1X/82d0e6e3e2fbf83eeffb417e76174d16014b16d9.png)

Monitor 2 Check log:

 ![image](https://forums.distill.io/uploads/default/original/1X/b370a3a8dbe11a932d3cf20e3ca490ca569824d0.png)

Monitor page:  
[https://ezplay247.com/v2/#/pendings](https://ezplay247.com/v2/#/pendings)

my macros are the same as the one above:

1. wait doc
2. click (login id)
3. type
4. click (password)
5. type
6. click (enter)
7. wait doc
8. click (pending)

1st page:

 ![image](https://forums.distill.io/uploads/default/original/1X/b1e1252e638bd52e3e87fe34f50a35d76c49bb4e.jpeg)

2nd page:

 ![image](https://forums.distill.io/uploads/default/original/1X/4909b73f4224318fc253d4a3abf09f89b7f4d142.png)

3rd page:

 ![image](https://forums.distill.io/uploads/default/original/1X/74f8a6ea309f15b198889c44ef48615152510e67.png)

Thank you very much for your time.

---

<div class="post-metadata">

**Author:** ![cobramonk](https://forums.distill.io/user_avatar/forums.distill.io/cobramonk/32/353_2.png) [@cobramonk](https://forums.distill.io/u/cobramonk)\
**Post date:** [September 17, 2023, 2:35pm UTC](https://forums.distill.io/t/macros-not-working-port-not-found-with-0-and-loading-page-timedout-after-60-seconds/2502/2 "2023-09-17T14:35:08Z")

</div>

Hi Paul,

I tried to create a dummy account to test the flow. But, seems like there is no way to signup from the landing page. it would be helpful if you can create a dummy account and share so that we can use it to debug the flow of the macro. Please email the dummy account details to [support@distill.io](mailto:support@distill.io).

---

<div class="post-metadata">

**Author:** ![paul1600](https://forums.distill.io/letter_avatar_proxy/v4/letter/p/b9bd4f/32.png) [@paul1600](https://forums.distill.io/u/paul1600)\
**Post date:** [October 5, 2023, 11:41pm UTC](https://forums.distill.io/t/macros-not-working-port-not-found-with-0-and-loading-page-timedout-after-60-seconds/2502/3 "2023-10-05T23:41:35Z")

</div>

Hi Sathya,

Sent the details of the dummy account last Sept 30. Please check. Thanks!

---

<div class="post-metadata">

**Author:** ![paul1600](https://forums.distill.io/letter_avatar_proxy/v4/letter/p/b9bd4f/32.png) [@paul1600](https://forums.distill.io/u/paul1600)\
**Post date:** [October 6, 2023, 1:57am UTC](https://forums.distill.io/t/macros-not-working-port-not-found-with-0-and-loading-page-timedout-after-60-seconds/2502/4 "2023-10-06T01:57:00Z")

</div>

Here are also some of the sites that are having errors on the monitoring check logs. I will be sending another email with the details of the dummy accounts you can use for these sites.

Thank you so much for your help.

* * *

**Monitor check log 1**

 ![image](https://forums.distill.io/uploads/default/original/1X/d7a9d509732e0956836bbfead7d51de66a7533b2.jpeg)

Monitor page:  
[https://2bet888.com/Qubic/SpecificPlayerPendingWagers.php](https://2bet888.com/Qubic/SpecificPlayerPendingWagers.php)

1st page:

 ![image](https://forums.distill.io/uploads/default/original/1X/72019f8a2e61cff85ba2f8f5200d6c4cd75b1558.jpeg)

2nd page:

 ![image](https://forums.distill.io/uploads/default/original/1X/6a20b59420a61bf49db1b7f32653b11e042db1f1.jpeg)

3rd page:

 ![image](https://forums.distill.io/uploads/default/original/1X/0dd832a246740d2af2eda32553ceaec9f66aa18b.jpeg)

Macros:

1. wait doc
2. click (username)
3. type
4. click (password)
5. type
6. click (login)
7. wait doc
8. click (ok)
9. click (pending)
10. wait doc

* * *

**Monitor check log 2**

 ![image](https://forums.distill.io/uploads/default/original/1X/1ed8db8139ceadd5941852374362d9b91006dbcb.jpeg)

Monitor page:  
[https://711ac.com/sports.html?v=1696551579634](https://711ac.com/sports.html?v=1696551579634)

1st page:

 ![image](https://forums.distill.io/uploads/default/original/1X/e27a8d2a6e88767fb81e9c5c42ded9ac4199f415.jpeg)

2nd page:

 ![image](https://forums.distill.io/uploads/default/original/1X/635ef6aa4be52a19812e667d71da64f4e569a104.png)

3rd page:

 ![image](https://forums.distill.io/uploads/default/original/1X/6328c6d69ca45047bfb8d011a8e0ac0a117a7b80.png)

Macros:

1. wait doc
2. click (ok)
3. wait doc
4. type (username)
5. type (password)
6. keypress (enter)
7. wait doc
8. click (pending)

* * *

**Monitor check log 3**

 ![image](https://forums.distill.io/uploads/default/original/1X/2c9ff3e8fd41888423220d7fa13d280d75bf3a39.png)

Monitor page:  
[[456142228] Pending Bets [456142228] (10stack.com)](https://engine3.10stack.com/player/open-bets)

1st page:

 ![image](https://forums.distill.io/uploads/default/original/1X/ef2e5f4d2ee12598d046e21c3cb52e463cbf66f9.jpeg)

2nd page:

 ![image](https://forums.distill.io/uploads/default/original/1X/6f3f91cde511320e3eb0964558f540abe5f4c00d.png)

3rd page:

 ![image](https://forums.distill.io/uploads/default/original/1X/1e6f5a0552804353ad01dd1d9e59a99b4a982b2d.png)

Macros:

1. wait doc
2. click (username)
3. type (username)
4. type (password)
5. keypress (enter)
6. wait doc
7. click (pending)
8. wait doc

* * *

**Monitor check log 4**

 ![image](https://forums.distill.io/uploads/default/original/1X/6a22576fb08dfe095ef04310347784cb6e89f635.png)

Monitor page:  
[vodka55.com/v2/#/pendings](https://vodka55.com/v2/#/pendings)

1st page:

 ![image](https://forums.distill.io/uploads/default/original/1X/326a613fcf6359520bfd50c19e28c4f522e5aff7.png)

2nd page:

 ![image](https://forums.distill.io/uploads/default/original/1X/aa83559894b9d57d21779730c32484106c74bcbb.png)

3rd page:

 ![image](https://forums.distill.io/uploads/default/original/1X/1f8be7b3176d97fc23ed224e2b8b6f8cb5014537.jpeg)

Macros:

1. wait doc
2. type (username)
3. type (password)
4. keypress (enter)
5. wait doc
6. click (pending)

* * *

**Monitor check log 5**

 ![image](https://forums.distill.io/uploads/default/original/1X/4d9a573084aec4b47f48014d1d2dd3f70a41c93e.jpeg)

Monitor page:  
[smash66.com/v2/#/pendings](https://smash66.com/v2/#/pendings)

1st page:

 ![image](https://forums.distill.io/uploads/default/original/1X/de99493cf9fae652f52d7b9b906f824737ae9c3a.jpeg)

2nd page:

 ![image](https://forums.distill.io/uploads/default/original/1X/41f99118893ead5642dd66b9ee9b22c5ca313ce0.png)

3rd page:

 ![image](https://forums.distill.io/uploads/default/original/1X/7b92cf235e70c1cc061265dd54a66f248ea2fee4.jpeg)

Macros:

1. wait doc
2. type (username)
3. type (password)
4. keypress (enter)
5. wait doc
6. click (pending)

* * *

**Monitor check log 6**

 ![image](https://forums.distill.io/uploads/default/original/1X/d56d132c5d7a5ddf320e73cb19323518161d9f80.png)

Monitor page:  
[Red105](https://red105.com/Client/PendingsWagers.aspx)

1st page:

 ![image](https://forums.distill.io/uploads/default/original/1X/ca4c634d18cf2f9c3b89a4fb459f6d33f39bd47b.jpeg)

2nd page:

 ![image](https://forums.distill.io/uploads/default/original/1X/274b5e8934a22a3e091b36bddff60a2bc55c3493.png)

3rd page:

 ![image](https://forums.distill.io/uploads/default/original/1X/61b17f759d86cf9b329de31bad0a1d3563328489.png)

Macros:

1. wait doc
2. type (username)
3. type (password)
4. keypress (enter)
5. wait doc
6. click (pending)

* * *

---

<div class="post-metadata">

**Author:** ![cobramonk](https://forums.distill.io/user_avatar/forums.distill.io/cobramonk/32/353_2.png) [@cobramonk](https://forums.distill.io/u/cobramonk)\
**Post date:** [October 6, 2023, 5:32am UTC](https://forums.distill.io/t/macros-not-working-port-not-found-with-0-and-loading-page-timedout-after-60-seconds/2502/5 "2023-10-06T05:32:27Z")

</div>

Hi Paul,

Thank you for sharing the macros and the dummy account. Will check it out and get back to you with a solution.

Thanks,  
Sathya.

---

<div class="post-metadata">

**Author:** ![cobramonk](https://forums.distill.io/user_avatar/forums.distill.io/cobramonk/32/353_2.png) [@cobramonk](https://forums.distill.io/u/cobramonk)\
**Post date:** [October 6, 2023, 8:22am UTC](https://forums.distill.io/t/macros-not-working-port-not-found-with-0-and-loading-page-timedout-after-60-seconds/2502/6 "2023-10-06T08:22:18Z")

</div>

Hi Paul,

With respect to BettingZoo. The macro can be fixed by replacing the `wait_doc` ( step 7) with `wait_for_duration`.

Procedure:  
[Make sure you are in the latest version of chrome extension: 3.7.0]

1. Click on the title of step 7 (“wait\_doc”). A searchable dropdown will appear with names of all step types available.
2. Select “wait\_for\_duration” from the dropdown. Now, your `wait_doc` will be replaced by `wait_for_duration`.
3. There will be a number in the `wait_for_duration` step, below the title. Click on it and edit the number to be of 5. This is the number of seconds for which the macro will wait before executing the next step.
4. Either press the “Enter” key or click on the “blue tick” symbol next to the input box. This will save the number for `wait_for_duration`.
5. Click on the `Save` button to save the macro.

Now the macro should work properly.

Similar change should make EZPlay also to work.

---

<div class="post-metadata">

**Author:** ![paul1600](https://forums.distill.io/letter_avatar_proxy/v4/letter/p/b9bd4f/32.png) [@paul1600](https://forums.distill.io/u/paul1600)\
**Post date:** [October 6, 2023, 2:18pm UTC](https://forums.distill.io/t/macros-not-working-port-not-found-with-0-and-loading-page-timedout-after-60-seconds/2502/7 "2023-10-06T14:18:05Z")

</div>

Thank you so much for your help. Everything seems to be working fine now except for sites with multiple accounts. The macro works on the first account but once I add the second one, it starts to show some errors. Note that I already made 2 separate macros for each account.

Here are the details:

 ![image](https://forums.distill.io/uploads/default/original/1X/e8a3e3e9f4926b995390109e69c6f2641ead585b.png)

---

<div class="post-metadata">

**Author:** ![cobramonk](https://forums.distill.io/user_avatar/forums.distill.io/cobramonk/32/353_2.png) [@cobramonk](https://forums.distill.io/u/cobramonk)\
**Post date:** [October 7, 2023, 6:41am UTC](https://forums.distill.io/t/macros-not-working-port-not-found-with-0-and-loading-page-timedout-after-60-seconds/2502/8 "2023-10-07T06:41:53Z")

</div>

Can you elaborate on the issue.

I am unclear about what the steps are.

Are you running two macros each opening the same site but trying to login using different credentials?

---

<div class="post-metadata">

**Author:** ![paul1600](https://forums.distill.io/letter_avatar_proxy/v4/letter/p/b9bd4f/32.png) [@paul1600](https://forums.distill.io/u/paul1600)\
**Post date:** [October 7, 2023, 4:32pm UTC](https://forums.distill.io/t/macros-not-working-port-not-found-with-0-and-loading-page-timedout-after-60-seconds/2502/9 "2023-10-07T16:32:50Z")

</div>

I am using 2 macros to log in different credentials (Account 1 and 2) on the same site. Both are running simultaneously but there’s an error on the check logs and it only shows 1 account for both monitors. Please see details below.

I’m sending another email with the details of 2 dummy accounts for the same site. Thank you so much.

**Monitor check log**  
**Account 1**

 ![image](https://forums.distill.io/uploads/default/original/1X/fe4aae3c7998e48e4b2a25250b86081dcfb8d131.png)

**Account 2**

 ![image](https://forums.distill.io/uploads/default/original/1X/92c8df4eab22bd254d54acd9f48fac81faa5b7d6.png)

Monitor page:  
[Pending Bets (10stack.com)](https://engine3.10stack.com/player/open-bets)

1st page:

 ![image](https://forums.distill.io/uploads/default/original/1X/41274f91b7a706ab5bb96ddc3dce585d83b3229e.jpeg)

2nd page:

 ![image](https://forums.distill.io/uploads/default/original/1X/924c5b19f684ac011e45f4b7fad00370c28c34de.png)

3rd page:

 ![image](https://forums.distill.io/uploads/default/original/1X/3d11c126478e338fdb117a35ed747e21d36c7ee2.png)

Macros:

1. wait doc
2. click
3. type (username)
4. click
5. type (password)
6. click (enter)
7. wait for duration (5)
8. click (pending)
9. wait doc

---

<div class="post-metadata">

**Author:** ![cobramonk](https://forums.distill.io/user_avatar/forums.distill.io/cobramonk/32/353_2.png) [@cobramonk](https://forums.distill.io/u/cobramonk)\
**Post date:** [October 8, 2023, 12:42am UTC](https://forums.distill.io/t/macros-not-working-port-not-found-with-0-and-loading-page-timedout-after-60-seconds/2502/10 "2023-10-08T00:42:35Z")

</div>

I’ll debug it and get back to you.

---

<div class="post-metadata">

**Author:** ![cobramonk](https://forums.distill.io/user_avatar/forums.distill.io/cobramonk/32/353_2.png) [@cobramonk](https://forums.distill.io/u/cobramonk)\
**Post date:** [October 9, 2023, 8:31am UTC](https://forums.distill.io/t/macros-not-working-port-not-found-with-0-and-loading-page-timedout-after-60-seconds/2502/11 "2023-10-09T08:31:32Z")

</div>

Hi Paul,

The problem is that you cannot have two accounts loggin in to the same site.

This is what is happening:

1. Macro1 logs-in with account1.
2. Browser now has the cookies of account1. When the site is opened in a new tab, it will not prompt for login because it has the cookies of account1. It will just show the account1’s info.
3. Macro2 tries to login with account2. But, since the browser is already having account1 cookies, it will just open the account1’s page instead of login page. Thus causing Macro2 to error out.

Solution.

Option 1: Create different User profiles in Google chrome. Install Distill extension in both of them and run monitor1 (which uses macro1) from the first profile and monitor2 (which uses macro2) from the second profile.

Option 2: Use Cloud instead of the Chrome extension for running monitors.

---

<div class="post-metadata">

**Author:** ![paul1600](https://forums.distill.io/letter_avatar_proxy/v4/letter/p/b9bd4f/32.png) [@paul1600](https://forums.distill.io/u/paul1600)\
**Post date:** [October 10, 2023, 1:23am UTC](https://forums.distill.io/t/macros-not-working-port-not-found-with-0-and-loading-page-timedout-after-60-seconds/2502/12 "2023-10-10T01:23:54Z")

</div>

Hi Sathya,

I used Option 2 and it’s working fine now. Thank you so much for your help.

---

<div class="post-metadata">

**Author:** ![soorajsairam](https://forums.distill.io/letter_avatar_proxy/v4/letter/s/57b2e6/32.png) [@soorajsairam](https://forums.distill.io/u/soorajsairam)\
**Post date:** [March 12, 2024, 4:05am UTC](https://forums.distill.io/t/macros-not-working-port-not-found-with-0-and-loading-page-timedout-after-60-seconds/2502/13 "2024-03-12T04:05:42Z")

</div>

Hi

Getting the below error. Can you please help us resolve it urgently ?

![image](https://forums.distill.io/uploads/default/original/2X/e/ef8799a37941005564540fa53764f2137bf6724a.png)

---

<div class="post-metadata">

**Author:** ![ajitk](https://forums.distill.io/letter_avatar_proxy/v4/letter/a/ec9cab/32.png) [@ajitk](https://forums.distill.io/u/ajitk)\
**Post date:** [March 12, 2024, 5:56am UTC](https://forums.distill.io/t/macros-not-working-port-not-found-with-0-and-loading-page-timedout-after-60-seconds/2502/14 "2024-03-12T05:56:30Z")

</div>

The port in “port not found” the error message represents a connection to a frame in the page. This error can be logged if the frame in a page did not load or if the frame was destroyed before Distill had the chance to read its content.

Are you trying to monitor an inner frame’s content?

---

<div class="post-metadata">

**Author:** ![soorajsairam](https://forums.distill.io/letter_avatar_proxy/v4/letter/s/57b2e6/32.png) [@soorajsairam](https://forums.distill.io/u/soorajsairam)\
**Post date:** [March 12, 2024, 7:48am UTC](https://forums.distill.io/t/macros-not-working-port-not-found-with-0-and-loading-page-timedout-after-60-seconds/2502/15 "2024-03-12T07:48:21Z")

</div>

Hi Ajit, Exactly the page contains an iframe. Trying to monitor that page’s content. How to do that ?

---

<div class="post-metadata">

**Author:** ![ajitk](https://forums.distill.io/letter_avatar_proxy/v4/letter/a/ec9cab/32.png) [@ajitk](https://forums.distill.io/u/ajitk)\
**Post date:** [March 12, 2024, 7:51am UTC](https://forums.distill.io/t/macros-not-working-port-not-found-with-0-and-loading-page-timedout-after-60-seconds/2502/16 "2024-03-12T07:51:10Z")

</div>

You will need to find the reason the frame could not be found. For example, does the page need to be active (not in background) or do you need to take some action to load it? Try increasing the delay to see if giving the page more time to load the frames help.

---

<div class="post-metadata">

**Author:** ![soorajsairam](https://forums.distill.io/letter_avatar_proxy/v4/letter/s/57b2e6/32.png) [@soorajsairam](https://forums.distill.io/u/soorajsairam)\
**Post date:** [March 12, 2024, 7:51am UTC](https://forums.distill.io/t/macros-not-working-port-not-found-with-0-and-loading-page-timedout-after-60-seconds/2502/17 "2024-03-12T07:51:34Z")

</div>

in distill app monitoring can we wait for the frame to load before reading the content ? Is there a setting like that ?

---

<div class="post-metadata">

**Author:** ![soorajsairam](https://forums.distill.io/letter_avatar_proxy/v4/letter/s/57b2e6/32.png) [@soorajsairam](https://forums.distill.io/u/soorajsairam)\
**Post date:** [March 12, 2024, 9:02am UTC](https://forums.distill.io/t/macros-not-working-port-not-found-with-0-and-loading-page-timedout-after-60-seconds/2502/18 "2024-03-12T09:02:29Z")

</div>

Thanks Ajit. It worked after setting the wait time to 5s and the polling time to 7s.
