{ 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 /
  • General /
avatar image
0
Question by manikandanj · Jun 10, 2017 at 10:04 AM · 264 Views Apigee APIenvironment configurationapigee edge trial

Externalizing the targer server as environment variable is not working

Hello,

I have developed one API service in Apigee Edge called PostalCode for example. I used the "VehcileCode" proxy as a TargetServer for one more Proxy API.

If i configure postalCode service as a Target Server like below in a new Proxy API. This is working fine.

<HTTPTargetConnection>

http://manidemo-test.apigee.net/postalcode>

I tried to externalize by configuring the PostalCode URL as a Environment variable in Apigee and

Named it as "Server_Postal_Code"

HOST : http://manidemo-test.apigee.net

PORT: 80

But its not working when i tried it like this:

<HTTPTargetConnection>

<LoadBalancer> <Server name="Server_Postal_Code"/>

</LoadBalancer>

<Path>/postalcode</Path>

</HTTPTargetConnection>

Getting error as : Trace below. It went into error flow on reaching the targetflow

Can someone help me ?

targeterror.jpg (43.4 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

1 Answer

  • Sort: 
avatar image
0
Best Answer

Answer by Sai Saran Vaidyanathan   · Jun 11, 2017 at 04:32 AM

Hi @manikandanj

You do not need to add the "http://" in the Target Server configuration. Just put the hostname there - allianzdemo-test.apigee.net.

Hope the endpoint you are connecting as TargetServer is a valid API endpoint.

Let me know if that did the trick

Comment
Add comment Show 1 · 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 manikandanj · Jun 12, 2017 at 04:49 AM 0
Link

Thanks @Sai Saran Vaidyanathan. This seems to be the problem. I removed the http://

Follow this Question

Answers Answers and Comments

39 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

Related Questions

503 Unavailable Service Response 2 Answers

Error: Cannot find module 'cheerio' apigee 3 Answers

how do I make a new environment 1 Answer

How to read extracted variables in target point url ? 1 Answer

Apigee Reports API 1 Answer

  • 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