Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

streetcarts: 500 error adding users; script streetcarts-config-seed

This script seems to connect and start to create users, but then crashes with a 500 error when it tries to Post:

[root@localhost seed]# node streetcarts-config-seed register-users ./data/users.json

sleep: using busy loop fallback

prompt: Your Edge username: samuelucich@gmail.com

prompt: Your Edge password:

prompt: The Edge organization that hosts StreetCarts: samuelucich-trial

prompt: The environment the proxies are deployed to: (test)

prompt: The host part of the URL to your API proxies: (apigee.net)

prompt: The name of the StreetCarts app: (streetcarts)

prompt: Edge management API URL: (https://api.enterprise.apigee.com)

Getting app key and secret.

Got consumer key and secret

Creating user Liz456

Creating user steffen111

Creating user freewill444

Creating user jonesy42

Creating user Alex666

Creating user steve303

Request: POST https://samuelucich-trial-test.apigee.net/v1/streetcarts/users Headers: {"Content-Type":"application/json","x-api-key":"0IHOGzzNqURdihUFl6H6wnxYIdqHqn6g"}

Status code: 500 Error creating user account:

Error: Script node executed prematurely: syntax error

syntax error

at module.js:439

at module.js:474

at module.js:356

at module.js:312

at module.js:364

at require (module.js:380)

at /organization/environment/api/node_modules/request/node_modules/hawk/node_modules/boom/lib/index.js:5

at module.js:456

at module.js:474

at module.js:356

at module.js:312

at module.js:364

at require (module.js:380)

at /organization/environment/api/node_modules/request/node_modules/hawk/lib/index.js:5 at module.js:456

at module.js:474

at module.js:356

at module.js:312

at module.js:364

at require (module.js:380) at /organization/environment/api/node_modules/request/request.js:9

at module.js:456

at module.js:474

at module.js:356

at module.js:312

at module.js:364 at require (module.js:380)

at /organization/environment/api/node_modules/request/index.js:143

at module.js:456

at module.js:474

at module.js:356

at module.js:312

at module.js:364

at require (module.js:380) at /organization/environment/api/data-manager.js:1 at module.js:456

at module.js:474

at module.js:356

at module.js:312

at module.js:364

at require (module.js:380) at /organization/environment/api/server.js:7

at module.js:456

at module.js:474

at module.js:356

at module.js:312

at module.js:497

0 7 135
7 REPLIES 7