{ 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 /
  • Apigee Test - archive /
avatar image
0
Question by garethbradley · May 24, 2018 at 01:02 PM · 194 Views hosted targetsnode

Hosted Target 404 - No Runtime Error Logs

Hey Guys

org: hachetteuk

env: test

proxy: ProductAPI

I have followed the tutorial here for my own Node.js app we have been building in house, and unfortunately I always get 404 errors when trying to access my methods.

I get the following error when I try to hit my GET method:

{
   "fault":{
      "faultstring":"Unable to identify proxy for host: secure and url: /v1/product",
      "detail":{
         "errorcode":"messaging.adaptors.http.flow.ApplicationNotFound"
      }
   }
}

Here is my apigeetool command I used (excluding credentials) to deploy:

apigeetool deployhostedtarget -n ProductAPI -d . -o hachetteuk -e test -b /v1/product

Also here is my output from running that command (with -V) attached to this question:

apigeetool-log.txt

Going to create revision 4 of API ProductAPI

Creating revision 4 of API ProductAPI
Uploading resource app.js
Uploading resource app.js.map
Uploading resource app.yaml
Uploading resource common/config.js
Uploading resource common/config.js.map
Uploading resource controller/ProductController.js
Uploading resource controller/ProductController.js.map
Uploading resource models/Mapper.js
Uploading resource models/Mapper.js.map
Uploading resource models/Product.js
Uploading resource models/Product.js.map
Uploading resource package.json
Uploading resource repositories/base/CosmosBaseReadOnlyRepository.js
Uploading resource repositories/base/CosmosBaseReadOnlyRepository.js.map
Uploading resource repositories/common/CosmosDBUtilities.js
Uploading resource repositories/common/CosmosDBUtilities.js.map
Uploading resource repositories/CosmosProductRepository.js
Uploading resource repositories/CosmosProductRepository.js.map
Uploading resource repositories/entities/ProductEntity.js
Uploading resource repositories/entities/ProductEntity.js.map
Uploading resource repositories/errors/CosmosDatabaseError.js
Uploading resource repositories/errors/CosmosDatabaseError.js.map
Uploading resource repositories/errors/CosmosDatabaseQueryError.js
Uploading resource repositories/errors/CosmosDatabaseQueryError.js.map
Uploading resource repositories/errors/RepositoryError.js
Uploading resource repositories/errors/RepositoryError.js.map
Uploading resource repositories/factories/CosmosDBClientFactory.js
Uploading resource repositories/factories/CosmosDBClientFactory.js.map
Uploading resource repositories/interfaces/IQueryRepository.js
Uploading resource repositories/interfaces/IQueryRepository.js.map
Uploading resource server.js
Uploading resource server.js.map
Creating the target endpoint
Creating the proxy endpoint
Deploying revision 4 of ProductAPI to test
Deployment on test successful
"ProductAPI" Revision 4
  deployed
  environment = test
  base path = /
  URI = http://hachetteuk-test.apigee.net/v1/product
  URI = https://hachetteuk-test.apigee.net/v1/product 

As you can see from the above the node code has been deployed, but I'm getting runtime errors.

NB: There are no runtime or build logs for this proxy.

apigeetool-log.txt (2.1 kB)
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

2 Answers

  • Sort: 
avatar image
2

Answer by Jeremy Whitlock · May 24, 2018 at 02:51 PM

Your error message does not mention anything about being partially deployed so the undeploy/redeploy likely won't help. The error I see is "Unable to identify proxy for host" so are you sure there is a "secure" virtual host?

Comment
Add comment Show 11 · 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 garethbradley · May 24, 2018 at 02:57 PM 0
Link

Hey @Jeremy Whitlock

Do you mean this?

apigee-secure-product.png (8.9 kB)
avatar image Jeremy Whitlock garethbradley · May 24, 2018 at 03:00 PM 0
Link

Wait...it appears to be deployed now. Did something change, or is this a runtime error as traffic flows through the proxy?

avatar image garethbradley Jeremy Whitlock · May 24, 2018 at 03:02 PM 0
Link

@Jeremy Whitlock

Thanks for looking at this. It deployed fine with regards to appearing in the Edge UI, but when I hit the the URLs, I get:

{
   "fault":{
      "faultstring":"Unable to identify proxy for host: secure and url: /v1/product",
      "detail":{
         "errorcode":"messaging.adaptors.http.flow.ApplicationNotFound"
      }
   }
}

Show more comments
avatar image
0

Answer by Siddharth Barahalikar   · May 24, 2018 at 01:44 PM

Hi @garethbradley, Even I faced the same issue when I deployed my first Node App using Hosted Targets. It has few issues as it is still in Beta.

Normally this error usually means the message processors are not able to classify the request - classification error. This can happen if the proxy is not deployed to the environment that you are hitting.

As a workaround, after apigeetool deployed the proxy, I had to manual un-deploy & deploy the proxy couple of times to make it work. Please give it a try.

Comment
Add comment Show 2 · 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 garethbradley · May 24, 2018 at 02:03 PM 0
Link

Thanks for the reply.

As a workaround, after apigeetool deployed the proxy, I had to manual un-deploy & deploy the proxy couple of times to make it work

How did you undeploy and deploy? Is that apigeetool command as well?

avatar image garethbradley · May 24, 2018 at 02:37 PM 0
Link

@Siddharth Barahalikar

Tried undeploying and using deployproxy, but to no avail.

Follow this Question

Answers Answers and Comments

48 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

Related Questions

hosted target proxy always returns 404 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