woohaaha

woohaaha

I am getting the error listed here (RuntimeError) Wallaby had an internal issue with HTTPoison · Issue #365 · elixir-wallaby/wallaby · GitHub reliably ~50% of the time.

Anyone here have a workaround that may not have been discussed in this thread?

Thank you

Update:

Making async false and adding a sleep (~200ms) around every click/visit doesn’t make a difference. Tests passing < 50% of time with the same error:

(RuntimeError) Wallaby had an internal issue with HTTPoison:
     %HTTPoison.Error{id: nil, reason: :timeout}

Showing Posts 1 to 4

michallepicki

michallepicki

@woohaaha Can you paste more of the stacktrace? This doesn’t say where the error happens.

But we at least see that you’re hitting timeouts. Maybe try increasing them? Docs here: Introduction — wallaby v0.31.0

And if you’re running many tests in parallel, maybe try tuning that down as well? It is possible that the machine or Chromedriver can’t keep up.

woohaaha

woohaaha OP

Thank you for the suggestions!

I will paste the output of the error when I run it later.

I’ll checkout the timeouts suggestion and also explore other settings which I think are here https://github.com/benoitc/hackney/blob/master/doc/hackney.md under “make a request”

And if you’re running many tests in parallel, maybe try tuning that down as well?

How do I turn those down? I cannot find anything about allowing only one session to run.

It is possible that the machine or Chromedriver can’t keep up

Anything is possible :grinning: If I had to guess, and per the discussions in the github thread, it is that the chromedriver cannot keep up. I think my machine is fine since it is fairly new (2017) and I have turned off all memory hungry applications while testing to be sure. Upgraded to ChromeDriver 80.0.3987.16 (and browser as well). Are there any configs I can and should pass to it?

michallepicki

michallepicki

You can do that either in ExUnit’s config: ExUnit — ExUnit v1.20.2 or when running mix test: mix test — Mix v1.20.2 (look for max_cases/max-cases)

padjo

padjo

had this error
" test login --core test (Devato.Features.IndexPageTest)
test/devato_web/features/index_page_test.exs:13
** (RuntimeError) Wallaby had an internal issue with HTTPoison:
%HTTPoison.Error{id: nil, reason: :timeout}
stacktrace:
(wallaby 0.23.0) lib/wallaby/httpclient.ex:37: Wallaby.HTTPClient.make_request/5
(wallaby 0.23.0) lib/wallaby/experimental/chrome.ex:96: Wallaby.Experimental.Chrome.start_session/1
(wallaby 0.23.0) lib/wallaby.ex:78: Wallaby.start_session/1
(devato 0.1.0) test/support/feature_case.ex:25: Devato.FeatureCase.__ex_unit_setup_0/1
(devato 0.1.0) test/support/feature_case.ex:1: Devato.FeatureCase.ex_unit/2
test/devato_web/features/index_page_test.exs:1: Devato.Features.IndexPageTest.ex_unit/2"

i could run the tests chrome headless but i needed it to work so i can see it running on the browser . What worked for me was configuring the timeouts

added
config :wallaby,
hackney_options: [timeout: :infinity, recv_timeout: :infinity]

Overriding a value

config :wallaby,
hackney_options: [timeout: 5_000]

hope this helps others

— All posts loaded —

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
ryanwinchester
apply_graft/2 doesn’t rewrite an add_many sub-workflow’s deps on an add step. Grafted jobs cancel with “upstream job was deleted” Version...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge &amp; Solve. They are GUI (Emerge) and State management (S...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews