Coder Social home page Coder Social logo

Comments (11)

prashantidealittechno avatar prashantidealittechno commented on June 11, 2024 1

I am facing issue too with the frontend, it is not working for me too.

from saleor-platform.

Deni-Iconis avatar Deni-Iconis commented on June 11, 2024 1

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.

AlexisHeap avatar AlexisHeap commented on June 11, 2024 1

Ok perfect, It's working now, thank you! @lkostrowski

from saleor-platform.

weeping-somnambulist avatar weeping-somnambulist commented on June 11, 2024

Where are you configuring the NEXT_PUBLIC_API_URI value?

from saleor-platform.

kutucode avatar kutucode commented on June 11, 2024

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.

lkostrowski avatar lkostrowski commented on June 11, 2024

Hi, storefront has been rebuilt a lot, please try updating it

from saleor-platform.

AlexisHeap avatar AlexisHeap commented on June 11, 2024

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:

image

this is the error output:

image

Thank you in advance!

from saleor-platform.

lkostrowski avatar lkostrowski commented on June 11, 2024

Hi @AlexisHeap , have you tried running fresh git clone first?

from saleor-platform.

FouadDakhel96 avatar FouadDakhel96 commented on June 11, 2024

I tried to do git clone again and still the same error "ApolloError"
Screen Shot 2022-12-28 at 4 35 40 PM

@lkostrowski

from saleor-platform.

lkostrowski avatar lkostrowski commented on June 11, 2024

@saleor/storefront-checkout can you check this one?

from saleor-platform.

patrys avatar patrys commented on June 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.