a127-samples's People
Forkers
earth2marsh dzuluaga amuramoto shruti-singh03 mikemalloyapigee wwitman smusa rajrin sudheergopalam suragys vamsirajendra carmot ksprashu mishimaltd kbmkbackups karlitxo rsekhaross anindyasen82 bonomali testpilot031 tvprasad manikandan-github degratnik naveents1989 isabella232 michaelchaoli-cpu san-atosa127-samples's Issues
Error running the security-apikey-apigee sample with an on-premise installation
Hi,
we have an on-premise installation.
First we had problems to start the project locally at all. The solution for that problem was to adjust the config/default.yaml with
managementUri: "http://our-host:8080"
and config/index.js with
exports.appRequest = {
name: 'A127 Sample App',
environments: ['dev-online' ]
};
Now the project is able to start but executing the example curl command results in
$ curl 'http://127.0.0.1:10010/hello?name=Scott&apiKey=n8EkeaA8axNLCAPOOJigV6LZskbmNW5q'
Error
at makeError (/home/aabeling/Projects/github/a127-samples/security-apikey-apigee/node_modules/volos-oauth-apigee/node_modules/volos-oauth-common/lib/oauth.js:531:13)
at /home/aabeling/Projects/github/a127-samples/security-apikey-apigee/node_modules/volos-oauth-apigee/node_modules/volos-oauth-common/lib/oauth.js:492:12
at /home/aabeling/Projects/github/a127-samples/security-apikey-apigee/node_modules/volos-oauth-apigee/lib/apigeeruntime.js:292:23
at /home/aabeling/Projects/github/a127-samples/security-apikey-apigee/node_modules/volos-oauth-apigee/lib/apigeeruntime.js:120:11
at Request.callback (/home/aabeling/Projects/github/a127-samples/security-apikey-apigee/node_modules/volos-oauth-apigee/node_modules/superagent/lib/node/index.js:746:30)
at ClientRequest.<anonymous> (/home/aabeling/Projects/github/a127-samples/security-apikey-apigee/node_modules/volos-oauth-apigee/node_modules/superagent/lib/node/index.js:711:10)
at ClientRequest.emit (events.js:95:17)
at CleartextStream.socketErrorListener (http.js:1547:9)
at CleartextStream.emit (events.js:95:17)
at SecurePair.<anonymous> (tls.js:1384:19)
Cannot POST /accesstoken
I've checked out the project as is, the rest of the API is working just fine, but I'm not able to access the oauth2-related URLs.
I'm trying this:
curl -X POST "http://localhost:10010/accesstoken" -d "grant_type=client_credentials&client_id=k6l4TO4DsnQr72LdAIZAxWVZKhXhfM5I&client_secret=tske5wxrUKZsbAbp"
And getting this error:
Cannot POST /accesstoken
It also doesn't work for any other HTTP method.
config is incorrect
Hi Scott,
Great examples! Loving them. For the oauth-password-sample, the config file is missing the field 'id'. hope this helps,
Guy
Error: Cannot find module './secrets'
I'm getting this error on weather-advanced
.
Starting: C:\Users\hbarcelos\test\a127-samples\weather-advanced\app.js...
project started here: http://localhost:10010
project will restart on changes.
to restart at any time, enter `rs`
module.js:340
throw err;
^
Error: Cannot find module './secrets'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (C:\Users\hbarcelos\test\a127-samples\weather-advanced\config\index.js:26:15)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
I've tried to run npm install
, npm update
, npm install secrets
on project root, but it didn't fix it.
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.