stlouisweb / Mautic-to-SuiteCRM-Webhook-Intercepter

13 stars 1 forks source link

Trying to start the server. Need help. #1

Open lquessenberry opened 4 years ago

lquessenberry commented 4 years ago

$ npm start [±master ●]

marketing-js@0.1.0 start /Users/lquessenberry/Sites/bitnami-docker-suitecrm/nodecode source settings.conf && node app.js

Needs latest SSL Root Certificate Authority data /Users/lquessenberry/Sites/bitnami-docker-suitecrm/nodecode/node_modules/ssl-root-cas/ssl-root-cas-latest.js Loading latest certificates from https://mxr.mozilla.org/nss/source/lib/ckfw/builtins/certdata.txt?raw=1 internal/modules/cjs/loader.js:797 throw err; ^

Error: Cannot find module 'swagger-tools/middleware/swagger-ui' Require stack:

npm ERR! A complete log of this run can be found in: npm ERR! /Users/lquessenberry/.npm/_logs/2020-01-24T16_02_12_907Z-debug.log

lquessenberry@Lees-MacBook-Pro ~/Sites/bitnami-docker-suitecrm/nodecode [10:02:12]

$ npm install [±master ●] audited 487 packages in 0.996s found 33 vulnerabilities (11 low, 2 moderate, 20 high) run npm audit fix to fix them, or npm audit for details

lquessenberry commented 4 years ago

Progress

Okay after I manually installed swagger like this

npm i swagger-tools

I now get the following output.

> $ npm start                                                                                                                                                                                                           [±master ●]

> marketing-js@0.1.0 start /Users/lquessenberry/Sites/bitnami-docker-suitecrm/nodecode
> source settings.conf && node app.js

Needs latest SSL Root Certificate Authority data /Users/lquessenberry/Sites/bitnami-docker-suitecrm/nodecode/node_modules/ssl-root-cas/ssl-root-cas-latest.js
Loading latest certificates from https://mxr.mozilla.org/nss/source/lib/ckfw/builtins/certdata.txt?raw=1
[{"code":"UNUSED_DEFINITION","message":"Definition is not used: #/definitions/FullName","path":["definitions","FullName"]},{"code":"UNUSED_DEFINITION","message":"Definition is not used: #/definitions/Modules","path":["definitions","Modules"]}] 2
Skipped 2 untrusted certificates.
Processed 150 certificates.
Wrote 150 certificates in '/Users/lquessenberry/Sites/bitnami-docker-suitecrm/nodecode/node_modules/ssl-root-cas/pems/'.
Wrote '/Users/lquessenberry/Sites/bitnami-docker-suitecrm/nodecode/node_modules/ssl-root-cas/ssl-root-cas-latest.js'.
##########################################################################################
#                                                                                        #
#  Downloaded the latest Root Certificate Authorities. Restart your server to use them.  #
#                                                                                        #
##########################################################################################

And when I visit the browser:

Cannot GET /

lquessenberry commented 4 years ago

Seems the server is running now, but I am still not able to create a contact that lands in SuiteCRM

lquessenberry commented 4 years ago

When I try to authenticate Sugarcrm plugin this is what I get.

Authorization failed with the error message, 'There was an unknown error encountered when trying to obtain the access token.'

lquessenberry commented 4 years ago

I think that may actually not be a big deal, but I don't know how to test whether it's authorized or not.

lquessenberry commented 4 years ago

I am getting this output on the node server.

[{"code":"UNUSED_DEFINITION","message":"Definition is not used: #/definitions/FullName","path":["definitions","FullName"]},{"code":"UNUSED_DEFINITION","message":"Definition is not used: #/definitions/Modules","path":["definitions","Modules"]}] 2