Comments (4)
Looks like you should provide more info like code snippet and error message..
from relay-starter-kit.
In server i don't have any output logs. When it reaches to bcrypt call, server rejects this request without any response and not execute after bcrypt lines. In client i see only failed to fetch
error.
Currently slice of code looks like this
export const createUser = mutationWithClientMutationId({
name: 'CreateUser',
inputFields,
outputFields,
async mutateAndGetPayload(input, context) {
const { data, errors } = validate(input, context);
if (errors.length) {
throw new ValidationError(errors);
}
console.log('Requested by client');
data.password = await bcrypt.hash('testing', 2); // below this nothing executed
console.log(data.password);
return data;
const rows = await db
.table('users')
.insert(data)
.returning('id');
console.log('rows = ', rows);
return context.userById.load(rows[0]).then(user => ({ user }));
// return context.userById.load("VXNlcjozOGZhMGY2YS1iYTIzLTExZTctYTAyZi1mYmQ0NTNlOTQ2YjA=").then(user => ({ user }));
},
});
from relay-starter-kit.
Switched to bcryptjs
.
from relay-starter-kit.
@Khangeldy perhaps some native dependency of bcrypt
is missing. Or, it's not compatible with node-alpine
image, you can tweak .Dockerfile
in the root of the project to include missing dependencies (e.g. apk add --no-cache <package>
) or change node:8.9.3-alpine
to node:8.9.3
.
from relay-starter-kit.
Related Issues (20)
- Adding controller/service layer for business logic HOT 3
- MongoDB instead of PostgreSQL HOT 1
- Where is the Passport.js implementation? HOT 1
- Dependabot can't resolve your JavaScript dependency files
- File Upload HOT 3
- Dependabot can't resolve your JavaScript dependency files
- Dependabot can't resolve your JavaScript dependency files
- big int HOT 1
- SyntaxError: Unexpected token = HOT 2
- Missing quotation marks in setup.js HOT 2
- Feature Request: "New Feature Walkthrough"
- Add the flexibility of multiple roles HOT 1
- Bug with emails that have "." in them breaks username requirements
- README.md out of date - no "setup" script HOT 3
- Nightly build fails
- Account settings page does not update
- docker image for the repo HOT 1
- error while run yarn setup HOT 1
- Readme.md has not been updated. HOT 1
- app-deploy.js file does not exists
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 relay-starter-kit.