post-robot icon indicating copy to clipboard operation
post-robot copied to clipboard

Missing timeout on function

Open barnesicle opened this issue 5 years ago • 5 comments

There is no documentation on how to set a timeout with the on function. I was looking through the code and can not seem to find it. I think there was before. It looks like this with removed with the removal of the global config in one of the later versions. I get "No ack for postMessage myEventName in http://localhost:8080 in 2000ms".

Please let me know if there is a way to set this timeout value.

Thanks.

barnesicle avatar Mar 12 '19 14:03 barnesicle

If you're getting this error, it probably means that post-robot is not loaded in the other window. The ack should be sent immediately; if it takes longer that 2000ms that means something is probably very wrong.

bluepnume avatar Mar 18 '19 18:03 bluepnume

This was configurable before though wasn't it? I can get it by using chromes network limiter with slow 3G selected.

barnesicle avatar Mar 18 '19 19:03 barnesicle

I am facing this issue too. Please let us know if there is a way to set this value higher than 2000ms. @bluepnume

mangatinanda avatar Aug 14 '20 12:08 mangatinanda

We ended up writing a recursive function that kept retrying n amount of times.

barnesicle avatar Aug 14 '20 21:08 barnesicle

Aww... that is not an ideal solution for us. We are rendering an iframe in a huge ember app already. @bluepnume please let us know if there is a way to set higher timeout value. This issue is happening sporadically in our case.

mangatinanda avatar Aug 24 '20 06:08 mangatinanda