{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Adapter for Envoy
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • 日本語コミュニティ
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • Edge/API Management /
avatar image
0
Question by Erick Lee · Oct 31, 2017 at 02:36 AM · 710 Views deploymentapigeetool401

401 with the Apigeetool

I am consistently getting 401 errors when trying to use the apigeetool to push my deployments to the EDGE or listing the deployments. I am on an eval/trial license and only have one account. I can log into that account and manage from the web interface but I cannot see how to deploy all my code through that interface. I prefer to use the command line but if someone can help me figure out how to deploy a full node.js app (node modules and all) I would greatly appreciate it.

Error: HTTP error 401 when trying to list deployments

Error: Get API info returned status 401 when trying to deploy

Comment
Add comment
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Close

4 Answers

  • Sort: 
avatar image
0
Best Answer

Answer by Erick Lee · Nov 13, 2017 at 10:38 PM

So, the issue ended up being several things. First, I had to ensure that I was not using ES6 syntax like string literals and let/const. Second, I had ghost text in my console that was replacing 1/2 of my password - a reboot and putting my password in quotes fixed the issue.

Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Raunak Narooka   · Oct 31, 2017 at 06:40 AM

Hi @Erick Lee,

Can you specify the command which you have used to deploy your node js app into Edge..

apigeetool deploynodeapp -n myNodeApp -d .-m server.js -o myorg -e test -b /myNodeApp -u ntesla -p myPassword

are you specifying any extra command line options to deploy?

Also someone in the community faced a similar issue before..

Here is the link: https://community.apigee.com/questions/8275/apigeetool-deploynodeapp-help-with-node-npm-module.html

But it would be of much help, if you specify the command you are using to deploy, so that we can figure out where are you going wrong

Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by davissean   · Nov 02, 2017 at 10:38 AM

It can be very useful to add -V to the end of your command, to get more verbose logging.

Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Nkcubeko Jamela · Nov 13, 2017 at 07:25 AM

I have just experianced the same issue with apigeetool using this method to deploy

apigeetool deploynodeapp -n myNodeApp -d .-m server.js -o myorg -e test -b /myNodeApp -u ntesla -p myPassword

and managed to successfull deploy my nodejs app by changing environment(-e) from test to prod.

Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Follow this Question

Answers Answers and Comments

55 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Issue while deploying JWT proxy through apigeetool 1 Answer

Unable to deploy api proxy with a schema validation error by apigeetool 2 Answers

Error deploying Node.js App apigeetool 0 Answers

apigeetool deploy proxy is showing issue 0 Answers

Question on the behavior of apigeetool-node for API proxy deployment 3 Answers

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2021 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Adapter for Envoy
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • 日本語コミュニティ
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Badges