Comments (11)
I am facing issue too with the frontend, it is not working for me too.
from saleor-platform.
Same thing happening here with latest master(saleor, dash & storefront) on Kubuntu 20.10
ApolloError: Network error: request to http://localhost:8000/graphql/ failed, reason: connect ECONNREFUSED 127.0.0.1:8000
at new ApolloError (/app/node_modules/apollo-client/bundle.umd.js:92:26)
at /app/node_modules/apollo-client/bundle.umd.js:1588:34
at /app/node_modules/apollo-client/bundle.umd.js:2008:15
at Set.forEach (<anonymous>)
at /app/node_modules/apollo-client/bundle.umd.js:2006:26
at Map.forEach (<anonymous>)
at QueryManager.broadcastQueries (/app/node_modules/apollo-client/bundle.umd.js:2004:20)
at /app/node_modules/apollo-client/bundle.umd.js:1483:29
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5) {
graphQLErrors: [],
networkError: FetchError: request to http://localhost:8000/graphql/ failed, reason: connect ECONNREFUSED 127.0.0.1:8000
at ClientRequest.<anonymous> (/app/node_modules/node-fetch/lib/index.js:1461:11)
at ClientRequest.emit (events.js:315:20)
at Socket.socketErrorListener (_http_client.js:469:9)
at Socket.emit (events.js:315:20)
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
type: 'system',
errno: 'ECONNREFUSED',
code: 'ECONNREFUSED'
},
extraInfo: undefined
}
Looks like some commit on the storefront(probably saleor/saleor-storefront@ea54d72 but cannot confirm) introduced server side fetching that trys to fectch from saleor API(http://localhost:8000/graphql/) from inside of the storefront container and fails due to saleor api running in different container.
Quick workaround is to set NEXT_PUBLIC_API_URI to your PCs ip address ie. 192.168.1.10
from saleor-platform.
Ok perfect, It's working now, thank you! @lkostrowski
from saleor-platform.
Where are you configuring the NEXT_PUBLIC_API_URI value?
from saleor-platform.
Hi guys, im experiencing the same issue. Any updates on this one? Also tried to set the --hostname param to --host as i saw somewhere as a suggestion to fix this but it didnt do it for me.
from saleor-platform.
Hi, storefront has been rebuilt a lot, please try updating it
from saleor-platform.
Hello @lkostrowski updating it also fix the issue of saleor-platform? or is there another solution? I ran this with docker compose up. I dockerized this repository (saleor-platform) yesterday in a new VM. Error in the react-storefornt folder.
all containers are running:
this is the error output:
Thank you in advance!
from saleor-platform.
Hi @AlexisHeap , have you tried running fresh git clone
first?
from saleor-platform.
I tried to do git clone again and still the same error "ApolloError"
from saleor-platform.
@saleor/storefront-checkout can you check this one?
from saleor-platform.
Storefront is no longer part of the platform, so I'm closing this. Please report related problems in the project's repository.
from saleor-platform.
Related Issues (20)
- Investigate AWS Marketplace setup for Platform
- Some error and warning logs when navigating to the checkout page HOT 1
- Official docker images should be advertised more HOT 2
- I can't open STOREFRONT and DASHBOARD (graphql loaded from localhost:8000/graphql HOT 4
- Unable to see any payment method HOT 1
- Metadata not getting saved while create checkout HOT 1
- Cannot create super user in when installing with docker HOT 1
- Cannot build
- docker-compose.yml points to wrong dashboard version. HOT 1
- CORS problem with the latest docker compose file HOT 2
- nothing shows up on port 3001 after docker compose up HOT 4
- storefront service is missing from docker-compose.yml at master branch HOT 4
- Login went wrong. Please try again. HOT 13
- Login went wrong. Please try again. HOT 4
- Unknown backend exception with CACHE_URL environment variable HOT 1
- Saleor does not load product images. HOT 3
- failing to pull images? HOT 1
- Login went wrong. Please try again. HOT 4
- Latest docker tag does not point to the latest version HOT 1
- `version` is obsolete HOT 3
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 saleor-platform.