Matt (pactflow.io / pact-js / pact-go)
Harris Lee
08/01/2022, 5:41 AMHarris Lee
08/01/2022, 5:42 AMid
Harris Lee
08/01/2022, 5:42 AMHarris Lee
08/01/2022, 5:44 AMid
for all of the tests?Harris Lee
08/01/2022, 5:44 AMHarris Lee
08/01/2022, 5:46 AMcomparing to expected response: HTTP Response ( status: 200, headers: Some({"Content-Type": ["application/json;"]}), body: Present(39 bytes) )
Harris Lee
08/01/2022, 5:48 AMJSON -> JSON: Comparing '2' to '3' using Type -> Ok(())
compare_values: Comparing 'Number(2)' to 'Number(3)' at path '$.data.setLinkGatingRule.id' -> Ok(())
then
thread '<unnamed>' panicked at 'index out of bounds: the len is 1 but the index is 1', pact_matching/src/headers.rs:22:45
happeningMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
PACT_DESCRIPTION
environment variable to the one that’s exploding to isolate the problemHarris Lee
08/01/2022, 6:01 AMINFO pact_verifier] Running provider state change handler 'A new link will be created' for 'a deleteLink request'
DEBUG pact_verifier::provider_client] Sending HTTP Request ( method: POST, path: /, query: None, headers: Some({"Content-Type": ["application/json"]}), body: Present(70 bytes, application/json) ) to state change handler
Harris Lee
08/01/2022, 6:01 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Slackbot
08/01/2022, 6:30 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Harris Lee
08/02/2022, 3:47 AMHarris Lee
08/02/2022, 3:48 AMMatt (pactflow.io / pact-js / pact-go)
Harris Lee
08/02/2022, 3:57 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Harris Lee
08/02/2022, 3:58 AMthread '<unnamed>' panicked at 'index out of bounds: the len is 1 but the index is 1', pact_matching/src/headers.rs:22:45
stack backtrace:
0: rust_begin_unwind
at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:498:5
1: core::panicking::panic_fmt
at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/panicking.rs:116:14
2: core::panicking::panic_bounds_check
at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/panicking.rs:84:5
3: <core::iter::adapters::map::Map<I,F> as core::iter::traits::iterator::Iterator>::fold
4: pact_matching::headers::match_parameter_header
5: pact_matching::headers::match_header_value
6: pact_matching::headers::match_headers
7: pact_verifier::verify_response_from_provider::{{closure}}
8: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
9: <futures_util::future::future::flatten::Flatten<Fut,<Fut as core::future::future::Future>::Output> as core::future::future::Future>::poll
10: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
11: <futures_util::stream::stream::then::Then<St,Fut,F> as futures_core::stream::Stream>::poll_next
12: pact_verifier::verify_provider_async::{{closure}}::{{closure}}
13: <tokio::task::task_local::TaskLocalFuture<T,F> as core::future::future::Future>::poll
14: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
15: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
16: std::thread::local::LocalKey<T>::with
17: tokio::park::thread::CachedParkThread::block_on
18: tokio::runtime::thread_pool::ThreadPool::block_on
19: tokio::runtime::Runtime::block_on
20: pact_ffi::verifier::handle::VerifierHandle::execute
21: pact_ffi::error::panic::catch_panic
22: pactffi_verifier_execute
23: _ZN4Napi11AsyncWorker18OnAsyncWorkExecuteEP10napi_env__Pv
[2022-08-02 03:56:39.291 +0000] DEBUG (236 on 3b0d5f3b16db): pact@10.0.0-beta.60: outgoing response: {"body":"{\"data\":{\"setLinkGatingRule\":{\"id\":1}}}","headers":{"x-powered-by":"PHP/7.4.20","server":"nginx","content-type":"application/json","transfer-encoding":"chunked","connection":"close","set-cookie":["PHPSESSID=a79ad1a03d57970dedfb0d9a392fd4b9; path=/; HttpOnly; SameSite=lax"],"cache-control":"max-age=0, must-revalidate, private","date":"Tue, 02 Aug 2022 03:56:38 GMT","x-cache-debug":"1","x-debug-token":"bbbc3d","x-debug-token-link":"<http://nginx/_profiler/bbbc3d>","x-robots-tag":"noindex","expires":"Tue, 02 Aug 2022 03:56:39 GMT"},"status":200}
24: worker
at /home/iojs/build/ws/out/../deps/uv/src/threadpool.c:122:5
25: start_thread
26: clone
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
[2022-08-02T03:56:39Z DEBUG pact::matching::ffi] pact_ffi::verifier::pactffi_verifier_shutdown
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Harris Lee
08/02/2022, 4:02 AMare you testing a PHP app from JS?yes
Matt (pactflow.io / pact-js / pact-go)
Harris Lee
08/02/2022, 4:02 AMoh, are you pointing at a live server?yes local docker compose build
Harris Lee
08/02/2022, 4:03 AM