Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't start project #1

Open
JacquesBonet opened this issue Jan 27, 2020 · 0 comments
Open

Can't start project #1

JacquesBonet opened this issue Jan 27, 2020 · 0 comments

Comments

@JacquesBonet
Copy link

Hello,

I follow the readme instruction.

Its say

:> I installed mongodb

next

:> cd server
npm install

but there is no package.json file under server directory, so the command ### npm install do nothing.

So I do "npm install" at the root of the project.

The install is ok.

When I do "npm run start"

I get the following exception:

`npm run start

[email protected] start /home/jacquesbonet/Documents/boaton/stripe-connect-custom-rocketdeliveries
node app.js

(node:1162) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
(node:1162) DeprecationWarning: Mongoose: the isAsync option for custom validators is deprecated. Make your async validators return a promise instead: https://mongoosejs.com/docs/validation.html#async-custom-validators
_http_outgoing.js:479
throw new ERR_INVALID_CHAR('header content', name);
^

TypeError [ERR_INVALID_CHAR]: Invalid character in header content ["Authorization"]
at ClientRequest.setHeader (_http_outgoing.js:488:3)
at new ClientRequest (_http_client.js:221:14)
at Object.request (https.js:309:10)
at makeRequest (/home/jacquesbonet/Documents/boaton/stripe-connect-custom-rocketdeliveries/node_modules/stripe/lib/StripeResource.js:364:57)
at /home/jacquesbonet/Documents/boaton/stripe-connect-custom-rocketdeliveries/node_modules/stripe/lib/StripeResource.js:447:9
at /home/jacquesbonet/Documents/boaton/stripe-connect-custom-rocketdeliveries/node_modules/stripe/lib/stripe.js:199:7
at /home/jacquesbonet/Documents/boaton/stripe-connect-custom-rocketdeliveries/node_modules/stripe/lib/stripe.js:219:7
at ChildProcess.exithandler (child_process.js:286:7)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Socket. (internal/child_process.js:430:11)
at Socket.emit (events.js:210:5)
at Pipe. (net.js:659:12) {
code: 'ERR_INVALID_CHAR'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node app.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/jacquesbonet/.npm/_logs/2020-01-27T21_57_15_281Z-debug.log
`

NB: I have no probleme with this project: https://github.com/stripe/stripe-connect-rocketrides

Thks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant