Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 23 12:30
    balibebas opened #6301
  • Oct 22 16:20
    ramezrafla edited #6300
  • Oct 22 16:20
    ramezrafla edited #6300
  • Oct 22 16:08
    ramezrafla labeled #6300
  • Oct 22 16:08
    ramezrafla labeled #6300
  • Oct 22 16:08
    ramezrafla opened #6300
  • Oct 20 16:37
    nnnnat closed #6299
  • Oct 20 16:37
    nnnnat commented #6299
  • Oct 20 01:57
    phearakthefoundry opened #6299
  • Oct 19 10:48
    loan-laux commented #1433
  • Oct 19 09:31
    phearakthefoundry commented #1433
  • Oct 18 12:27
    dzirg44 labeled #6298
  • Oct 18 12:27
    dzirg44 opened #6298
  • Oct 18 12:27
    dzirg44 labeled #6298
  • Oct 16 16:06
    nnnnat labeled #6297
  • Oct 16 07:31
    yerlantemir closed #6297
  • Oct 16 07:30
    yerlantemir opened #6297
  • Oct 15 09:33
    loan-laux commented #6296
  • Oct 15 08:09
    loan-laux commented #1433
  • Oct 15 05:51
    mian-muhammad commented #6011
Loan Laux
@loan-laux
@karbal Try and add user: node:node under api
1 reply
Karbal
@karbal
Ok
Mian Muhammad
@mian-muhammad
/* 45 */
{
    "_id" : "DDEnLFRWaG9ptbeqz",
    "name" : "reaction:legacy:navigationTrees/read:drafts"
}

/* 46 */
{
    "_id" : "qf3aGKB3s6HafjQHz",
    "name" : "reaction:legacy:navigationTrees/update"
}

I can only see these two permissions related to createNavigationTree

got it working

Pirun Seng
@PirunSeng
Hi there! Could somebody guide me which is the skeleton project of the Reaction Commerce? I have cloned reaction-development-platform, and there are some other projects inside like example-storefront, reaction, reaction-admin, reaction-hydra, and reaction-identity. Thanks for your help :)
Loan Laux
@loan-laux
Hi @PirunSeng, welcome to Reaction! reaction is the GraphQL API server, example-storefront is your customer storefront, reaction-admin is your admin panel, and reaction-hydra and reaction-identity are used to manage logins.
You won’t have to care about reaction-hydra and reaction-identity too much for now. Just focus on the storefront at localhost:4000, and the admin panel at localhost:4080.
Pirun Seng
@PirunSeng
Thanks @loan-laux for your answer :) And to start both customer and admin sites, I need to stay in root of "reaction-development-platform" and run "make start", is that correct?
Mian Muhammad
@mian-muhammad
@All has someone tried reaction api in debug mode?
rondlite
@rondlite
@mian-muhammad doing it now.. you might need: DEBUG * in your .env and/or REACTION_LOG_LEVEL TRACE or DEBUG
10 replies
Pulkit Garg
@wittycodes
Hi all, any suggestions on how to integrate reaction commerce with keycloak / fusionauth, instead of using hydra and identity. Can we have the roles and policy definitions of reaction APIs well cohesive via above
Pirun Seng
@PirunSeng
Good day everyone!
Base on this, reactioncommerce/reaction#5702, I'm not sure if we still be able to implement social login like Facebook with https://github.com/keppelen/react-facebook-login? :)
Arun Madhavan
@arunmadhavan-g
Hi. I'm trying to get a reaction commerce instance up using the reaction-development-platform.
I've edited the .env files and got the service up. But been struggling to create an admin user. Checked a bunch of forums and searched and none seem to work.
5 replies
Could one of you help me on how to create an admin user for first time?
Pirun Seng
@PirunSeng
Hi there! I have tried https://github.com/reactioncommerce/reaction-development-platform#running-from-code-for-development, but it seems that every time I need to re-do this flow to see the code changes. I wonder if there is a better to see the changes like hot reload / fast refresh. Thanks for your support :)
2 replies
Alan Ng
@DeveloperAlan

Hey all, I was wondering if there is any api-plugin that does reviews? Otherwise I'm looking into creating an api plugin for it.

In fact, is there any resource that gathers all the api plugins that the wider open source community has created?

1 reply
Mian Muhammad
@mian-muhammad

Hey all, I was wondering if there is any api-plugin that does reviews? Otherwise I'm looking into creating an api plugin for it.

In fact, is there any resource that gathers all the api plugins that the wider open source community has created?

@DeveloperAlan if you found something regarding reviews, please share that here as well.

Karbal
@karbal
Hello @loan-laux , plz i got this error when i want to start server for the first time for hydra Cannot start service hydra: driver failed programming external connectivity on endpoint
Karim Abuzaid
@Vercryger
Hey everybody! Just wondering if anyone had problems with the mail plugin? I've set the MAIL_URL and it works fine for development, but for production I always get ERROR Reaction: Email job failed: Error: connect ECONNREFUSED 127.0.0.1:587
4 replies
Mian Muhammad
@mian-muhammad
Has someone tried custom fields to order?

Has someone tried custom fields to order?

@loan-laux @balibebas

balibebas
@balibebas
Tried adding custom fields to an Order, you mean?
Not yet, here.
Mian Muhammad
@mian-muhammad
yes
ok
balibebas
@balibebas
Right now I'm trying to understand how to get images appearing in Cart and MiniCart. I thought it was a front-end issue (reactioncommerce/example-storefront#735) but turns out it's related to an API plug-in refactoring. Still trying to wrap my head wrapped around the problem to try and fix it. The actual issue: reactioncommerce/api-plugin-files#10
Jesus Millan
@JsusMillan
hello

Creating reaction_mongo_1 ... error

ERROR: for reaction_mongo_1 Cannot start service mongo: driver failed programming external connectivity on endpoint reaction_mongo_1 (dfcf7bdfb13e66f3c2f2defd2611f5eca94b28240653f41abda9091697769822): Error starting userland proxy: listen tcp 0.0.0.0:27017: bind: address already in use

ERROR: for mongo Cannot start service mongo: driver failed programming external connectivity on endpoint reaction_mongo_1 (dfcf7bdfb13e66f3c2f2defd2611f5eca94b28240653f41abda9091697769822): Error starting userland proxy: listen tcp 0.0.0.0:27017: bind: address already in use
ERROR: Encountered errors while bringing up the project.
[soyJsus@localhost reaction]$ docker-compose up -d

balibebas
@balibebas
looks like you're already running mongo. disable the other instance then restart the service
Jesus Millan
@JsusMillan
aah ok but, ERROR: for mongo Cannot start service mongo: cgroups: cgroup mountpoint does not exist: unknown
balibebas
@balibebas
I'm looking at 2) which could be causing 1)
Jesus Millan
@JsusMillan
api_1 | 14:19:00.778Z INFO Reaction: Connecting to MongoDB...
api_1 | 14:19:30.784Z ERROR Reaction: connect EHOSTUNREACH 172.19.0.2:27017
api_1 | MongoServerSelectionError: connect EHOSTUNREACH 172.19.0.2:27017
api_1 | at Timeout._onTimeout (/usr/local/src/app/node_modules/mongodb/lib/core/sdam/topology.js:430:30)
api_1 | at listOnTimeout (internal/timers.js:554:17)
api_1 | at processTimers (internal/timers.js:497:7)
api_1 | npm ERR! code ELIFECYCLE
api_1 | npm ERR! errno 1
api_1 | npm ERR! reaction-api@3.10.0 start: node --experimental-modules --experimental-json-modules ./src/index.js
api_1 | npm ERR! Exit status 1
api_1 | npm ERR!
api_1 | npm ERR! Failed at the reaction-api@3.10.0 start script.
api_1 | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
api_1 |
api_1 | npm ERR! A complete log of this run can be found in:
api_1 | npm ERR! /home/node/.npm/_logs/2020-10-21T14_19_30_817Z-debug.log
api_1 | reaction_api_1 exited with code 1
Jesus Millan
@JsusMillan

hay como un error al conectar a la base de datos

api_1 | 14:51:49.401Z WARN Reaction: Failed to initialize a MongoDB replica set. This may result in errors or some things not working. Error: connect ECONNREFUSED 127.0.0.1:27017

I have to configure a user or something like that?
Loan Laux
@loan-laux
@JsusMillan Are you using reaction-development-platform?
Karbal
@karbal

10:25:08.902Z ERROR Reaction: _pathParser.default is not a constructor
api_1 | TypeError: _pathParser.default is not a constructor
api_1 | at Object.<anonymous> (/usr/local/src/app/node_modules/@idigi/reaction-plugin-files/node_modules/@reactioncommerce/file-collections/dist/node/getFileDownloadHandler/getFileDownloadHandler.js:10:19)
api_1 | at Module._compile (internal/modules/cjs/loader.js:955:30)
api_1 | at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)
api_1 | at Module.load (internal/modules/cjs/loader.js:811:32)
api_1 | at Function.Module._load (internal/modules/cjs/loader.js:723:14)
api_1 | at Module.require (internal/modules/cjs/loader.js:848:19)
api_1 | at require (internal/modules/cjs/helpers.js:74:18)
api_1 | at Object.<anonymous> (/usr/local/src/app/node_modules/@idigi/reaction-plugin-files/node_modules/@reactioncommerce/file-collections/dist/node/getFileDownloadHandler/index.js:1:342)
api_1 | at Module._compile (internal/modules/cjs/loader.js:955:30)
api_1 | at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)

@loan-laux i got this error when i want to youse the S3Store

Loan Laux
@loan-laux
Interesting… Did you make any modifications to anything related to reaction-files? Or does it do that straight out of the box?
Karbal
@karbal
i download the plugin from github and i change in this part
let MediaStore;
  if (["s3", "minio"].includes(config.MEDIA_PROVIDER.toLowerCase().trim())) {

    MediaStore = ({ name, transform }) =>
      new S3Store({
        name, // Should be provided within buildGFS
        isPublic: true,
        objectACL: "public-read",
        transformWrite: async (fileRecord) => transformWrite(name, transform, fileRecord)
      });
  } else {

    MediaStore = ({ name, transform }) =>
      new GridFSStore({
        chunkSize: gridFSStoresChunkSize,
        collectionPrefix: "cfs_gridfs.",
        db,
        mongodb,
        name,
        transformWrite: async (fileRecord) => transformWrite(name, transform, fileRecord)
      });
  }
the plugin is available at @idigi/reaction-plugin-files
i don't get this error when i try to override it trough docker-compose
only when i call it like a plugin npm
Loan Laux
@loan-laux
Strange
balibebas
@balibebas
Hi folks. I wrote a tutorial for step debugging the RC API. Feel free to share it for those who are approaching debugging RC for the first time. Later I plan to update it with Yalc, package linking, etc. Later. Cheers. https://habd.as/post/reaction-commerce-debugging-primer/
1 reply
Nuno Rocha de Sousa
@rochadsouzaiit
Hi @loan-laux
I'm still experiencing an error that sets wrongs values to price and the price object grown indefinitely
image.png
Do you know this error?
this blocks the RC container
Mian Muhammad
@mian-muhammad

Hi folks. I wrote a tutorial for step debugging the RC API. Feel free to share it for those who are approaching debugging RC for the first time. Later I plan to update it with Yalc, package linking, etc. Later. Cheers. https://habd.as/post/reaction-commerce-debugging-primer/

@balibebas thanks for great article, I was able connect debugger but my node_modules folder is empty.

5 replies
Mian Muhammad
@mian-muhammad
Has someone played around with invitations in reaction-admin. After configuring email, I sent an invite to an email, an email was received on clicking the link in email, it took me to sign in page, I was expecting to take me to a page where invited need to enter his password.
1 reply