Skip to content

Catch invalid JSON response and raise Mollie::RequestError #52

Catch invalid JSON response and raise Mollie::RequestError

Catch invalid JSON response and raise Mollie::RequestError #52

Triggered via pull request December 20, 2024 10:26
Status Failure
Total duration 37s
Artifacts

build.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

16 errors and 2 warnings
Failure: test/mollie/client_test.rb#L194
<Mollie::RequestError(<500 Internal server error: Unable to parse JSON: 859: unexpected token at '<h1>Internal server error</h1>'>)> exception expected but was <Mollie::RequestError(<500 Internal server error: Unable to parse JSON: 809: unexpected token at '<h1>Internal server error</h1>'>) /home/runner/work/mollie-api-ruby/mollie-api-ruby/lib/mollie/client.rb:138:in `perform_http_call' /home/runner/work/mollie-api-ruby/mollie-api-ruby/test/mollie/client_test.rb:195:in `block in test_invalid_response' /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:1961:in `block (2 levels) in _assert_raise' /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:55:in `block in assert_block' /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:1913:in `_wrap_assertion' /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:54:in `assert_block' /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:1959:in `block in _assert_raise' /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:1918:in `_wrap_assertion' /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:1945:in `_assert_raise' /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:287:in `assert_raise' /home/runner/work/mollie-api-ruby/mollie-api-ruby/test/mollie/client_test.rb:194:in `test_invalid_response' /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/test-unit-3.6.7/lib/test/unit/testcase.rb:896:in `run_test' /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/test-unit-3.6.7/lib/test/unit/testcase.rb:591:in `block (2 levels) in run' /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/test-unit-3.6.7/lib/test/unit/fixture.rb:276:in `block in create_fixtures_runner' /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/test-unit-3.6.7/lib/test/unit/fixture.rb:276:in `block in create_fixtures_runner' /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/test-unit-3.6.7/lib/test/unit/fixture.rb:257:in `run_fixture' /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/test-unit-3.6.7/lib/test/unit/fixture.rb:292:in `run_setup' /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/test-unit-3.6.7/lib/test/unit/testcase.rb:589:in `block in run' /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/test-unit-3.6.7/lib/test/unit/testcase.rb:588:in `catch' /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/test-unit-3.6.7/lib/test/unit/testcase.rb:588:in `run' /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:94:in `run_test' /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:60:in `block in run_tests' /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:59:in `each' /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:59:in `run_tests' /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:37:in `run' /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/test-unit-3.6.7/lib/test/unit/testsuite.rb:52:in `run' /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:94:in `run_test' /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:60:in `block in run_tests' /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:59:in `each' /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:5
Ruby (3.0)
Process completed with exit code 1.
Failure: test/mollie/client_test.rb#L194
<Mollie::RequestError(<500 Internal server error: Unable to parse JSON: 859: unexpected token at '<h1>Internal server error</h1>'>)> exception expected but was <Mollie::RequestError(<500 Internal server error: Unable to parse JSON: unexpected token at '<h1>Internal server error</h1>'>) /home/runner/work/mollie-api-ruby/mollie-api-ruby/lib/mollie/client.rb:138:in `perform_http_call' /home/runner/work/mollie-api-ruby/mollie-api-ruby/test/mollie/client_test.rb:195:in `block in test_invalid_response' /opt/hostedtoolcache/Ruby/3.3.6/x64/lib/ruby/gems/3.3.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:1961:in `block (2 levels) in _assert_raise' /opt/hostedtoolcache/Ruby/3.3.6/x64/lib/ruby/gems/3.3.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:55:in `block in assert_block' /opt/hostedtoolcache/Ruby/3.3.6/x64/lib/ruby/gems/3.3.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:1913:in `_wrap_assertion' /opt/hostedtoolcache/Ruby/3.3.6/x64/lib/ruby/gems/3.3.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:54:in `assert_block' /opt/hostedtoolcache/Ruby/3.3.6/x64/lib/ruby/gems/3.3.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:1959:in `block in _assert_raise' /opt/hostedtoolcache/Ruby/3.3.6/x64/lib/ruby/gems/3.3.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:1918:in `_wrap_assertion' /opt/hostedtoolcache/Ruby/3.3.6/x64/lib/ruby/gems/3.3.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:1945:in `_assert_raise' /opt/hostedtoolcache/Ruby/3.3.6/x64/lib/ruby/gems/3.3.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:287:in `assert_raise' /home/runner/work/mollie-api-ruby/mollie-api-ruby/test/mollie/client_test.rb:194:in `test_invalid_response' /opt/hostedtoolcache/Ruby/3.3.6/x64/lib/ruby/gems/3.3.0/gems/test-unit-3.6.7/lib/test/unit/testcase.rb:896:in `run_test' /opt/hostedtoolcache/Ruby/3.3.6/x64/lib/ruby/gems/3.3.0/gems/test-unit-3.6.7/lib/test/unit/testcase.rb:591:in `block (2 levels) in run' /opt/hostedtoolcache/Ruby/3.3.6/x64/lib/ruby/gems/3.3.0/gems/test-unit-3.6.7/lib/test/unit/fixture.rb:276:in `block in create_fixtures_runner' /opt/hostedtoolcache/Ruby/3.3.6/x64/lib/ruby/gems/3.3.0/gems/test-unit-3.6.7/lib/test/unit/fixture.rb:276:in `block in create_fixtures_runner' /opt/hostedtoolcache/Ruby/3.3.6/x64/lib/ruby/gems/3.3.0/gems/test-unit-3.6.7/lib/test/unit/fixture.rb:257:in `run_fixture' /opt/hostedtoolcache/Ruby/3.3.6/x64/lib/ruby/gems/3.3.0/gems/test-unit-3.6.7/lib/test/unit/fixture.rb:292:in `run_setup' /opt/hostedtoolcache/Ruby/3.3.6/x64/lib/ruby/gems/3.3.0/gems/test-unit-3.6.7/lib/test/unit/testcase.rb:589:in `block in run' /opt/hostedtoolcache/Ruby/3.3.6/x64/lib/ruby/gems/3.3.0/gems/test-unit-3.6.7/lib/test/unit/testcase.rb:588:in `catch' /opt/hostedtoolcache/Ruby/3.3.6/x64/lib/ruby/gems/3.3.0/gems/test-unit-3.6.7/lib/test/unit/testcase.rb:588:in `run' /opt/hostedtoolcache/Ruby/3.3.6/x64/lib/ruby/gems/3.3.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:94:in `run_test' /opt/hostedtoolcache/Ruby/3.3.6/x64/lib/ruby/gems/3.3.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:60:in `block in run_tests' /opt/hostedtoolcache/Ruby/3.3.6/x64/lib/ruby/gems/3.3.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:59:in `each' /opt/hostedtoolcache/Ruby/3.3.6/x64/lib/ruby/gems/3.3.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:59:in `run_tests' /opt/hostedtoolcache/Ruby/3.3.6/x64/lib/ruby/gems/3.3.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:37:in `run' /opt/hostedtoolcache/Ruby/3.3.6/x64/lib/ruby/gems/3.3.0/gems/test-unit-3.6.7/lib/test/unit/testsuite.rb:52:in `run' /opt/hostedtoolcache/Ruby/3.3.6/x64/lib/ruby/gems/3.3.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:94:in `run_test' /opt/hostedtoolcache/Ruby/3.3.6/x64/lib/ruby/gems/3.3.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:60:in `block in run_tests' /opt/hostedtoolcache/Ruby/3.3.6/x64/lib/ruby/gems/3.3.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:59:in `each' /opt/hostedtoolcache/Ruby/3.3.6/x64/lib/ruby/gems/3.3.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:59:in
Ruby (3.3)
Process completed with exit code 1.
Ruby (3.1)
The job was canceled because "_3_0" failed.
Ruby (3.2)
The job was canceled because "_3_0" failed.
Failure: test/mollie/client_test.rb#L194
<Mollie::RequestError(<500 Internal server error: Unable to parse JSON: 859: unexpected token at '<h1>Internal server error</h1>'>)> exception expected but was <Mollie::RequestError(<500 Internal server error: Unable to parse JSON: unexpected token at '<h1>Internal server error</h1>'>) /home/runner/work/mollie-api-ruby/mollie-api-ruby/lib/mollie/client.rb:138:in `perform_http_call' /home/runner/work/mollie-api-ruby/mollie-api-ruby/test/mollie/client_test.rb:195:in `block in test_invalid_response' /opt/hostedtoolcache/Ruby/3.2.6/x64/lib/ruby/gems/3.2.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:1961:in `block (2 levels) in _assert_raise' /opt/hostedtoolcache/Ruby/3.2.6/x64/lib/ruby/gems/3.2.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:55:in `block in assert_block' /opt/hostedtoolcache/Ruby/3.2.6/x64/lib/ruby/gems/3.2.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:1913:in `_wrap_assertion' /opt/hostedtoolcache/Ruby/3.2.6/x64/lib/ruby/gems/3.2.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:54:in `assert_block' /opt/hostedtoolcache/Ruby/3.2.6/x64/lib/ruby/gems/3.2.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:1959:in `block in _assert_raise' /opt/hostedtoolcache/Ruby/3.2.6/x64/lib/ruby/gems/3.2.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:1918:in `_wrap_assertion' /opt/hostedtoolcache/Ruby/3.2.6/x64/lib/ruby/gems/3.2.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:1945:in `_assert_raise' /opt/hostedtoolcache/Ruby/3.2.6/x64/lib/ruby/gems/3.2.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:287:in `assert_raise' /home/runner/work/mollie-api-ruby/mollie-api-ruby/test/mollie/client_test.rb:194:in `test_invalid_response' /opt/hostedtoolcache/Ruby/3.2.6/x64/lib/ruby/gems/3.2.0/gems/test-unit-3.6.7/lib/test/unit/testcase.rb:896:in `run_test' /opt/hostedtoolcache/Ruby/3.2.6/x64/lib/ruby/gems/3.2.0/gems/test-unit-3.6.7/lib/test/unit/testcase.rb:591:in `block (2 levels) in run' /opt/hostedtoolcache/Ruby/3.2.6/x64/lib/ruby/gems/3.2.0/gems/test-unit-3.6.7/lib/test/unit/fixture.rb:276:in `block in create_fixtures_runner' /opt/hostedtoolcache/Ruby/3.2.6/x64/lib/ruby/gems/3.2.0/gems/test-unit-3.6.7/lib/test/unit/fixture.rb:276:in `block in create_fixtures_runner' /opt/hostedtoolcache/Ruby/3.2.6/x64/lib/ruby/gems/3.2.0/gems/test-unit-3.6.7/lib/test/unit/fixture.rb:257:in `run_fixture' /opt/hostedtoolcache/Ruby/3.2.6/x64/lib/ruby/gems/3.2.0/gems/test-unit-3.6.7/lib/test/unit/fixture.rb:292:in `run_setup' /opt/hostedtoolcache/Ruby/3.2.6/x64/lib/ruby/gems/3.2.0/gems/test-unit-3.6.7/lib/test/unit/testcase.rb:589:in `block in run' /opt/hostedtoolcache/Ruby/3.2.6/x64/lib/ruby/gems/3.2.0/gems/test-unit-3.6.7/lib/test/unit/testcase.rb:588:in `catch' /opt/hostedtoolcache/Ruby/3.2.6/x64/lib/ruby/gems/3.2.0/gems/test-unit-3.6.7/lib/test/unit/testcase.rb:588:in `run' /opt/hostedtoolcache/Ruby/3.2.6/x64/lib/ruby/gems/3.2.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:94:in `run_test' /opt/hostedtoolcache/Ruby/3.2.6/x64/lib/ruby/gems/3.2.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:60:in `block in run_tests' /opt/hostedtoolcache/Ruby/3.2.6/x64/lib/ruby/gems/3.2.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:59:in `each' /opt/hostedtoolcache/Ruby/3.2.6/x64/lib/ruby/gems/3.2.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:59:in `run_tests' /opt/hostedtoolcache/Ruby/3.2.6/x64/lib/ruby/gems/3.2.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:37:in `run' /opt/hostedtoolcache/Ruby/3.2.6/x64/lib/ruby/gems/3.2.0/gems/test-unit-3.6.7/lib/test/unit/testsuite.rb:52:in `run' /opt/hostedtoolcache/Ruby/3.2.6/x64/lib/ruby/gems/3.2.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:94:in `run_test' /opt/hostedtoolcache/Ruby/3.2.6/x64/lib/ruby/gems/3.2.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:60:in `block in run_tests' /opt/hostedtoolcache/Ruby/3.2.6/x64/lib/ruby/gems/3.2.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:59:in `each' /opt/hostedtoolcache/Ruby/3.2.6/x64/lib/ruby/gems/3.2.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:59:in
Ruby (3.2)
The operation was canceled.
Ruby (2.7)
The job was canceled because "_3_0" failed.
Failure: test/mollie/client_test.rb#L194
<Mollie::RequestError(<500 Internal server error: Unable to parse JSON: 859: unexpected token at '<h1>Internal server error</h1>'>)> exception expected but was <Mollie::RequestError(<500 Internal server error: Unable to parse JSON: 783: unexpected token at '<h1>Internal server error</h1>'>) /home/runner/work/mollie-api-ruby/mollie-api-ruby/lib/mollie/client.rb:138:in `perform_http_call' /home/runner/work/mollie-api-ruby/mollie-api-ruby/test/mollie/client_test.rb:195:in `block in test_invalid_response' /opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:1961:in `block (2 levels) in _assert_raise' /opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:55:in `block in assert_block' /opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:1913:in `_wrap_assertion' /opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:54:in `assert_block' /opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:1959:in `block in _assert_raise' /opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:1918:in `_wrap_assertion' /opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:1945:in `_assert_raise' /opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:287:in `assert_raise' /home/runner/work/mollie-api-ruby/mollie-api-ruby/test/mollie/client_test.rb:194:in `test_invalid_response' /opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/test-unit-3.6.7/lib/test/unit/testcase.rb:896:in `run_test' /opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/test-unit-3.6.7/lib/test/unit/testcase.rb:591:in `block (2 levels) in run' /opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/test-unit-3.6.7/lib/test/unit/fixture.rb:276:in `block in create_fixtures_runner' /opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/test-unit-3.6.7/lib/test/unit/fixture.rb:276:in `block in create_fixtures_runner' /opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/test-unit-3.6.7/lib/test/unit/fixture.rb:257:in `run_fixture' /opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/test-unit-3.6.7/lib/test/unit/fixture.rb:292:in `run_setup' /opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/test-unit-3.6.7/lib/test/unit/testcase.rb:589:in `block in run' /opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/test-unit-3.6.7/lib/test/unit/testcase.rb:588:in `catch' /opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/test-unit-3.6.7/lib/test/unit/testcase.rb:588:in `run' /opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:94:in `run_test' /opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:60:in `block in run_tests' /opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:59:in `each' /opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:59:in `run_tests' /opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:37:in `run' /opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/test-unit-3.6.7/lib/test/unit/testsuite.rb:52:in `run' /opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:94:in `run_test' /opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:60:in `block in run_tests' /opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:59:in `each' /opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:5
Ruby (2.7)
The operation was canceled.
Ruby (2.5)
The job was canceled because "_3_0" failed.
Failure: test/mollie/client_test.rb#L194
<Mollie::RequestError(<500 Internal server error: Unable to parse JSON: 859: unexpected token at '<h1>Internal server error</h1>'>)> exception expected but was <Mollie::RequestError(<500 Internal server error: Unable to parse JSON: 765: unexpected token at '<h1>Internal server error</h1>'>) /home/runner/work/mollie-api-ruby/mollie-api-ruby/lib/mollie/client.rb:138:in `perform_http_call' /home/runner/work/mollie-api-ruby/mollie-api-ruby/test/mollie/client_test.rb:195:in `block in test_invalid_response' /opt/hostedtoolcache/Ruby/2.5.9/x64/lib/ruby/gems/2.5.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:1961:in `block (2 levels) in _assert_raise' /opt/hostedtoolcache/Ruby/2.5.9/x64/lib/ruby/gems/2.5.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:55:in `block in assert_block' /opt/hostedtoolcache/Ruby/2.5.9/x64/lib/ruby/gems/2.5.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:1913:in `_wrap_assertion' /opt/hostedtoolcache/Ruby/2.5.9/x64/lib/ruby/gems/2.5.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:54:in `assert_block' /opt/hostedtoolcache/Ruby/2.5.9/x64/lib/ruby/gems/2.5.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:1959:in `block in _assert_raise' /opt/hostedtoolcache/Ruby/2.5.9/x64/lib/ruby/gems/2.5.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:1918:in `_wrap_assertion' /opt/hostedtoolcache/Ruby/2.5.9/x64/lib/ruby/gems/2.5.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:1945:in `_assert_raise' /opt/hostedtoolcache/Ruby/2.5.9/x64/lib/ruby/gems/2.5.0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:287:in `assert_raise' /home/runner/work/mollie-api-ruby/mollie-api-ruby/test/mollie/client_test.rb:194:in `test_invalid_response' /opt/hostedtoolcache/Ruby/2.5.9/x64/lib/ruby/gems/2.5.0/gems/test-unit-3.6.7/lib/test/unit/testcase.rb:896:in `run_test' /opt/hostedtoolcache/Ruby/2.5.9/x64/lib/ruby/gems/2.5.0/gems/test-unit-3.6.7/lib/test/unit/testcase.rb:591:in `block (2 levels) in run' /opt/hostedtoolcache/Ruby/2.5.9/x64/lib/ruby/gems/2.5.0/gems/test-unit-3.6.7/lib/test/unit/fixture.rb:276:in `block in create_fixtures_runner' /opt/hostedtoolcache/Ruby/2.5.9/x64/lib/ruby/gems/2.5.0/gems/test-unit-3.6.7/lib/test/unit/fixture.rb:276:in `block in create_fixtures_runner' /opt/hostedtoolcache/Ruby/2.5.9/x64/lib/ruby/gems/2.5.0/gems/test-unit-3.6.7/lib/test/unit/fixture.rb:257:in `run_fixture' /opt/hostedtoolcache/Ruby/2.5.9/x64/lib/ruby/gems/2.5.0/gems/test-unit-3.6.7/lib/test/unit/fixture.rb:292:in `run_setup' /opt/hostedtoolcache/Ruby/2.5.9/x64/lib/ruby/gems/2.5.0/gems/test-unit-3.6.7/lib/test/unit/testcase.rb:589:in `block in run' /opt/hostedtoolcache/Ruby/2.5.9/x64/lib/ruby/gems/2.5.0/gems/test-unit-3.6.7/lib/test/unit/testcase.rb:588:in `catch' /opt/hostedtoolcache/Ruby/2.5.9/x64/lib/ruby/gems/2.5.0/gems/test-unit-3.6.7/lib/test/unit/testcase.rb:588:in `run' /opt/hostedtoolcache/Ruby/2.5.9/x64/lib/ruby/gems/2.5.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:94:in `run_test' /opt/hostedtoolcache/Ruby/2.5.9/x64/lib/ruby/gems/2.5.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:60:in `block in run_tests' /opt/hostedtoolcache/Ruby/2.5.9/x64/lib/ruby/gems/2.5.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:59:in `each' /opt/hostedtoolcache/Ruby/2.5.9/x64/lib/ruby/gems/2.5.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:59:in `run_tests' /opt/hostedtoolcache/Ruby/2.5.9/x64/lib/ruby/gems/2.5.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:37:in `run' /opt/hostedtoolcache/Ruby/2.5.9/x64/lib/ruby/gems/2.5.0/gems/test-unit-3.6.7/lib/test/unit/testsuite.rb:52:in `run' /opt/hostedtoolcache/Ruby/2.5.9/x64/lib/ruby/gems/2.5.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:94:in `run_test' /opt/hostedtoolcache/Ruby/2.5.9/x64/lib/ruby/gems/2.5.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:60:in `block in run_tests' /opt/hostedtoolcache/Ruby/2.5.9/x64/lib/ruby/gems/2.5.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:59:in `each' /opt/hostedtoolcache/Ruby/2.5.9/x64/lib/ruby/gems/2.5.0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:5
Ruby (2.5)
The operation was canceled.
Ruby (2.6)
The job was canceled because "_3_0" failed.
Ruby (2.6)
The operation was canceled.
Ruby (3.0)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Ruby (3.3)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636