Comments (11)
thanks, this works, probabaly good to update readme
from example-consumer.
Thanks Jithin. It should be fairly ease to resolve, my guess is we haven't pinned a react dependency. If you could try a npm ci
with a fresh node modules to see if it works it might be as simple as that
from example-consumer.
See also pact-foundation/pact-workshop-js#3
from example-consumer.
i am getting the same error as i mentioned in the initial bug, it looks like not unrelated to above workshop issue, tried in mac as wel
l
from example-consumer.
Actually, I think the issue here is that you don't have your provider running and the react warning is just that. The canonical provider is https://github.com/pactflow/example-provider but you can mix and match many (see https://docs.pactflow.io/docs/examples/).
from example-consumer.
I can't reproduce with those instructions.
I can see the bug report is http://localhost:3000/error
. If the provider is unavailable when you first open the app, it will route to this page. Can you please show the network tab or capture a full HAR from the chrome dev tools when you navigate to /
?
from example-consumer.
Provider is running , then only i opened the consumer
No specific network erros as well.
Note: I will try to setup the tests and see if they are working fine , as i am trying to run the contract test scenarios
from example-consumer.
What happens if you open in another browser? I've noticed sometimes Chrome will redirect to /error
because it previously detected a redirect.
Can you please take a full HAR trace:
- Go to the network tab
- Set "preserve log" to true
- navigate in the same window to http://localhost:3000
- Choose the down arrow to export a HAR
Please paste the HAR here.
Feel free to also take a short video (command+shift+5) and upload.
from example-consumer.
from example-consumer.
Thanks for that.
I can see the problem - it’s trying to send requests to localhost:3001.
The example is actually part of this workshop, and one of the steps describes how to configure it to point at the locally running provider: https://docs.pactflow.io/docs/workshops/ci-cd/set-up-local-development/run-the-applications
I'm not sure why it doesn't use the default, but likely there was a good reason.
I’ll update the README so people coming from a different source will know what to do (or I'll update the api.js file to change the default if it makes sense).
Hope this helps!
I'll leave it open so you can confirm.
from example-consumer.
Have updated the readme. Note, there was already a Usage
section that linked to how to run this in detail, however I've specifically brought in the section on how to run it locally.
from example-consumer.
Related Issues (20)
- CVE-2021-23382 (High) detected in postcss-7.0.35.tgz, postcss-7.0.21.tgz - autoclosed HOT 1
- CVE-2022-37601 (High) detected in loader-utils-1.2.3.tgz, loader-utils-1.4.0.tgz - autoclosed HOT 1
- CVE-2022-3517 (High) detected in minimatch-3.0.4.tgz
- CVE-2022-37599 (High) detected in loader-utils-2.0.2.tgz
- About the mockserver HOT 1
- The link is broken HOT 2
- Pact flow
- CVE-2021-3805 (High) detected in object-path-0.11.4.tgz - autoclosed HOT 1
- CVE-2021-23434 (High) detected in object-path-0.11.4.tgz - autoclosed HOT 1
- CVE-2021-3803 (High) detected in nth-check-1.0.2.tgz
- CVE-2021-23436 (High) detected in immer-1.10.0.tgz - autoclosed HOT 1
- CVE-2022-1650 (High) detected in eventsource-1.0.7.tgz - autoclosed HOT 1
- CVE-2021-3807 (High) detected in multiple libraries - autoclosed HOT 1
- CVE-2020-28477 (High) detected in immer-1.10.0.tgz - autoclosed HOT 1
- CVE-2021-26707 (High) detected in merge-deep-3.0.2.tgz - autoclosed HOT 1
- CVE-2021-28092 (High) detected in is-svg-3.0.0.tgz - autoclosed HOT 1
- CVE-2022-0686 (High) detected in url-parse-1.4.7.tgz - autoclosed HOT 1
- CVE-2021-3777 (High) detected in tmpl-1.0.4.tgz - autoclosed HOT 1
- CVE-2021-42740 (High) detected in shell-quote-1.7.2.tgz - autoclosed HOT 1
- WS-2020-0042 (High) detected in acorn-5.7.4.tgz - autoclosed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from example-consumer.