These are chat archives for reactioncommerce/reaction

14th
Feb 2019
Isha Saran
@ishasaran
Feb 14 05:54
@antecrypto yes it's normal and that means you need to check the logs and figure out why reaction-next-starterkit container did not get up.
Also you could use one of the make commands as well to get up any of the containers - https://docs.reactioncommerce.com/docs/installation-reaction-platform#reaction-platform-commands
antecrypto
@antecrypto
Feb 14 05:56

What would be the command to show my logs?

Anthony@DESKTOP-305IC87 MINGW64 ~/Documents/GitHub/reaction-platform/reaction-next-starterkit (develop)
$ docker-compose logs -f
Attaching to reaction-next-starterkit_web_1
': No such file or directory'sh
reaction-next-starterkit_web_1 exited with code 127

When I run this I get an error:

GitHub/reaction-platform (master)
$ make init-reaction-next-starterkit
Error response from daemon: network with name auth.reaction.localhost already exists
Error response from daemon: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Running pre-build hook script for reaction-next-starterkit.
reaction-next-starterkit post-project-start script invoked.

antecrypto
@antecrypto
Feb 14 06:18
*I have not ran docker-compose up -d yet, not sure if that matters yet
Isha Saran
@ishasaran
Feb 14 06:19

I am not sure how to solve

Error response from daemon: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

this problem, maybe looking thru some git issues would help. Never faced this.

Your make command does docker-compose up for you, so if u have run that or docker-compose up it's the same.

Adrian1110
@Adrian1110
Feb 14 06:20
Hi, Why does Reaction commerce need so many databases? I have a mongo DB on 27017, also there is a docker with postgresql and from what I have understand there is another one running on port 3001 (next port after Meteor)
Isha Saran
@ishasaran
Feb 14 07:28

@here
I'm runnning the following version of reaction

Node: 10.5.0
NPM: 6.4.1
Meteor Node: 8.11.4
Meteor NPM: 6.4.1
Reaction CLI: 0.29.0
Reaction: 2.0.0-rc.9
Reaction branch: HEAD
Docker: 18.09.1

When using the starterkit storefront, trying to checkout the basic product to my cart (Admin), I find these in the logs of reaction,

reaction_1  | 07:15:29.530Z ERROR Reaction:  (errorId=cjs4ai4ca00006hmdio4q6c3x)
reaction_1  |   path: [
reaction_1  |     "reconcileCarts"
reaction_1  |   ]
^[[Areaction_1  | 07:16:48.918Z ERROR Reaction:  (errorId=cjs4ajtli00016hmdk4oezo94)
reaction_1  |   path: [
reaction_1  |     "reconcileCarts"
reaction_1  |   ]
reaction_1  | 07:17:15.865Z ERROR Reaction:  (errorId=cjs4akee100026hmda5knc4p6)
reaction_1  |   path: [
reaction_1  |     "reconcileCarts"
reaction_1  |   ]
reaction_1  | 07:17:27.155Z ERROR Reaction:  (errorId=cjs4akn3n00036hmdiq4rj85z)
reaction_1  |   path: [
reaction_1  |     "createCart"
reaction_1  |   ]

on the other hand, the logs of reaction-next-starterkit throw this,

web_1  | Attempting silent re-auth
web_1  | { Error: Network error: Unexpected token U in JSON at position 0
web_1  |     at new ApolloError (/usr/local/src/node_modules/apollo-client/bundle.umd.js:121:32)
web_1  |     at /usr/local/src/node_modules/apollo-client/bundle.umd.js:1188:45
web_1  |     at /usr/local/src/node_modules/apollo-client/bundle.umd.js:1619:21
web_1  |     at Array.forEach (<anonymous>)
web_1  |     at /usr/local/src/node_modules/apollo-client/bundle.umd.js:1618:22
web_1  |     at Map.forEach (<anonymous>)
web_1  |     at QueryManager.broadcastQueries (/usr/local/src/node_modules/apollo-client/bundle.umd.js:1613:26)
web_1  |     at /usr/local/src/node_modules/apollo-client/bundle.umd.js:1115:35
web_1  |     at process._tickCallback (internal/process/next_tick.js:68:7)
web_1  |   graphQLErrors: [],
web_1  |   networkError:
web_1  |    { SyntaxError: Unexpected token U in JSON at position 0
web_1  |        at JSON.parse (<anonymous>)
web_1  |        at /usr/local/src/node_modules/apollo-link-http-common/lib/bundle.umd.js:45:29
web_1  |        at process._tickCallback (internal/process/next_tick.js:68:7)
web_1  |      response:
web_1  |       Body {
web_1  |         url: 'http://reaction.api.reaction.localhost:3000/graphql-alpha',
web_1  |         status: 401,
web_1  |         statusText: 'Unauthorized',
web_1  |         headers: [Headers],
web_1  |         ok: false,
web_1  |         body: [PassThrough],
web_1  |         bodyUsed: true,
web_1  |         size: 0,
web_1  |         timeout: 0,
web_1  |         _raw: [Array],
web_1  |         _abort: false,
web_1  |         _bytes: 12 },
web_1  |      statusCode: 401,
web_1  |      bodyText: 'Unauthorized' },
web_1  |   message: 'Network error: Unexpected token U in JSON at position 0',
web_1  |   extraInfo: undefined }

All this with a fresh install of reaction-platfform without any change to anything/code.

@loan-laux @thegtagamer any ideas?
Bün Çolak
@BunColak
Feb 14 08:31
It says in the documentation that we can pass renderas a prop to components to overwrite the existing one. But this does not work. It seems that ProductDetail.js has no checks for the render prop?
Andrea Valdi
@avaldi
Feb 14 11:35

@Lumbi To version control your plugins, you'd use Git submodules, with one repo per plugin. Very clean and handy.

@loan-laux you mean submodules of the reaction repo? Or the reaction-platform?

Bradley
@bradlead
Feb 14 11:45
@Adrian1110 Did you manage to fix this? I have the exact same issue
Philipp Laurim
@EdgarNigel
Feb 14 12:54
Is it possible to use reaction just as affiliate, eg. redirecting to to the actual shop? I want to run some experiments first before setting up the whole shop
Loan Laux
@loan-laux
Feb 14 14:15
@avaldi Submodules in the reaction repo
@EdgarNigel Not sure why you'd need Reaction in this example... Why not build a simple static site from scratch, perhaps using @reactioncommerce/components?
@ishasaran Looks like your authentication token has expired and it failed to renew it?
antecrypto
@antecrypto
Feb 14 19:09

When I run the MAKE command on reaction-platform:

ERROR: for reaction-next-starterkit_web_1 Cannot start service web: OCI runtime create failed: container_linux.go:344: starting container process caused "exec: \"/usr/local/src/reaction-app/bin/start\": stat /usr/local/src/reaction-app/bin/start: no such file or directory": unknown

ERROR: for web Cannot start service web: OCI runtime create failed: container_linux.go:344: starting container process caused "exec: \"/usr/local/src/reaction-app/bin/start\": stat /usr/local/src/reaction-app/bin/start: no such file or directory": unknown
Encountered errors while bringing up the project.
make: * [Makefile:218: start-reaction-next-starterkit] Error 1

Any Advice?

antecrypto
@antecrypto
Feb 14 19:47
I believe I need to edit the docker-compose file in reaction-next-starterkit? from what's in the error to: C:\Users\Anthony\reaction-platform\reaction-next-starterkit\bin ? where it actually is?
Andrés Cortés
@cortesa
Feb 14 20:54
Hi, I followed this to create mutation and register it (related to a new payment method): https://github.com/reactioncommerce/reaction-docs/blob/master/public-docs/graphql-create-mutation.md but I can find how to call it, I looked into the examples (payment-example, payment-stripe) and they use simpleGraphQLClient.mutations.placeOrderWith...but in simpleGraphQLClient.mutationsobject ( I do: console.log('Mutations -->', simpleGraphQLClient.mutations);) don't exists my mutation method, where it is, how can I call it to try to register a order?, Thanks all.
I am working with v2.0.0-rc8 (tag)
Any genious that can explain something about this?