Getting error after setting up proxy as specified in training and performing GET operation { "fault": { "faultstring": "Unable to identify proxy for host: secure and url: /db/products", "detail": { "errorcode": "messaging.adaptors.http.flow.ApplicationNotFound" } } }
@Satish Mariyappa, from the error it seems like your virtual host is not configured properly. Check your environment configuration and virtual host named "secure"
Can you post your proxy endpoint configuration in the API proxy and your virtual host configuration in the environment.
You can view the list of virtual hosts using this endpoint - https://{management server url}/v1/organizations/{org_name}/environments/{env_name}/virtualhosts
Nagshre, "host": "satishmariyappa-eval-test.apigee.net" is as per the training material
Kindly check the TargetServer details in your Proxy Default settings.
my target endpoint default is set to
default | https://satishmariyappa-eval-test.apigee.net/db |
simple spec as in training material used:
"swagger": "2.0", "host": "satishmariyappa-eval-test.apigee.net", "schemes": [ "https", "http" ], "info": { "description": "Products Information", "title": "Products", "version": "1.0", "termsOfService": "http://example.com/about/terms", "contact": { "name": "API Docs", "url": "http://example.com/contact", "email": "apis-eng@apigee.com" }, "license": { "name": "Apache 2.0", "url": "http://example.com" } }, "basePath": "/v1", "paths": { "/products": { "get": { "description": "<p>Product Detail</p> Detailed list of all Products.", "summary": "Get All Product Details", "operationId": "Get All Products", "tags": [ "Products" ], "produces": [ "application/json; charset=utf-8" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/ProductDetails" } }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized access" } }, "parameters": [] } }, "/products/{product_id}": { "get": { "description": "<p>Product Detail</p> Detailed list of Product given the productId.", "summary": "Product Detail", "operationId": "Get Product", "tags": [ "Products" ], "produces": [ "application/json; charset=utf-8" ], "parameters": [ { "name": "product_id", "in": "path", "description": "Product identifier", "type": "string", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/ProductDetail" } }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized access" } } } } }, "definitions": { "ProductDetails": { "description": "Product Details", "type": "array", "items": { "$ref": "#/definitions/ProductDetail" } }, "ProductDetail": { "description": "Product Details", "type": "object", "properties": { "id": { "type": "string", "description": "A unique identifier for the product" }, "product_name": { "type": "string", "description": "Display name of the product" }, "short_description": { "type": "string", "description": "A short description of the product" }, "images": { "type": "array", "description": "An array of image objects", "items": { "type": "string", "description": "Image Url" } }, "category": { "type": "array", "description": "An array of category objects", "items": { "type": "string", "description": "Product Categories" } }, "overall_rating": { "type": "number", "format": "float", "description": "Overall customer rating for the product" } } } } }
Hi @Satish Mariyappa, check ou tthis doc, it has various resolutions for same error,
https://docs.apigee.com/api-platform/troubleshoot/runtime/404-unable-identify-proxy-host
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |