Maksym Liannoi
09/19/2022, 5:06 AMpact-foundation/pact to version "^10.1.3", - all our tests (that are written on jest-pact library) failed with Axios Network Error and following stack trace. So, even if I want to rewrite one of them on pact-js library, errors never go away. So, tell me please, what is going wrong?
Network Error
at createError (node_modules/axios/lib/core/createError.js:16:15)
at XMLHttpRequest.handleError (node_modules/axios/lib/adapters/xhr.js:117:14)
at XMLHttpRequest.invokeTheCallbackFunction (node_modules/jsdom/lib/jsdom/living/generated/EventHandlerNonNull.js:18:28)
at XMLHttpRequest.<anonymous> (node_modules/jsdom/lib/jsdom/living/helpers/create-event-accessor.js:35:32)
at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:338:25)
at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:274:3)
at XMLHttpRequestImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:221:9)
at fireAnEvent (node_modules/jsdom/lib/jsdom/living/helpers/events.js:18:36)
at requestErrorSteps (node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js:131:3)
at dispatchError (node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js:60:3)
at validCORSHeaders (node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js:75:5)
at validCORSPreflightHeaders (node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js:89:8)
at Request.<anonymous> (node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js:374:12)
at Request._processResponse (node_modules/jsdom/lib/jsdom/living/helpers/http-request.js:228:12)
at ClientRequest.<anonymous> (node_modules/jsdom/lib/jsdom/living/helpers/http-request.js:101:12)Maksym Liannoi
09/19/2022, 5:14 AMconsole.error
Error: Cross origin <http://localhost> forbidden
at dispatchError (C:\...\node_modules\jsdom\lib\jsdom\living\xhr\xhr-utils.js:63:19)
at validCORSHeaders (C:\...\node_modules\jsdom\lib\jsdom\living\xhr\xhr-utils.js:75:5)
at validCORSPreflightHeaders (C:\...\node_modules\jsdom\lib\jsdom\living\xhr\xhr-utils.js:89:8)
at Request.<anonymous> (C:\...\node_modules\jsdom\lib\jsdom\living\xhr\xhr-utils.js:374:12)
at Request.emit (node:events:390:28)
at Request._processResponse (C:\...\node_modules\jsdom\lib\jsdom\living\helpers\http-request.js:228:12)
at ClientRequest.<anonymous> (C:\...\node_modules\jsdom\lib\jsdom\living\helpers\http-request.js:101:12)
at Object.onceWrapper (node:events:510:26)
at ClientRequest.emit (node:events:390:28)
at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:623:27) undefined
at VirtualConsole.<anonymous> (node_modules/jsdom/lib/jsdom/virtual-console.js:29:45)
at dispatchError (node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js:66:53)
at validCORSHeaders (node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js:75:5)
at validCORSPreflightHeaders (node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js:89:8)
at Request.<anonymous> (node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js:374:12)
at Request._processResponse (node_modules/jsdom/lib/jsdom/living/helpers/http-request.js:228:12)Maksym Liannoi
09/19/2022, 5:47 AMMaksym Liannoi
09/19/2022, 6:19 AMTimothy Jones
09/19/2022, 7:08 AMMaksym Liannoi
09/19/2022, 8:28 AMMatt (pactflow.io / pact-js / pact-go)