Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error reaching HCP service

nic_botha2
Product and Topic Expert
Product and Topic Expert
0 Likes
1,190
  • SAP Managed Tags

Hi,

I'm trying to create a API for a service host on HCP.  But while testing in API Test Console keep getting 405 Method not allowed.  Looking at HCP Access Log there are no requests with code 405 for that service.  Also used debug but no apparent reason for failure (but then again I might not know what to look for).

Seems as though API proxy endpoint does not accept GET which does not make sense.  Ideas on what I'm missing?

API endpoint URL: https://trial.apim1.hanatrial.ondemand.com:443/[inumber]trial/piggybankCP/cashposition

Target endpoint: https://piggybank[inumber]trial.hanatrial.ondemand.com/piggy-bank-web/API/cashposition

In API Management created the System, tested destination and working

Then created the API

Testing results in

1 ACCEPTED SOLUTION
Read only

nic_botha2
Product and Topic Expert
Product and Topic Expert
0 Likes
1,097
  • SAP Managed Tags

Figured out the issue.  Proving solution to anyone else making same noob mistake.


I didn't configure the Path Prefix correct.  After changing the path prefix in system to "/piggy-bank-web/API" and then also the target endpoint url to "/piggy-bank-web/API" it works.

Hi,

I'm trying to create a API for a service host on HCP.  But while testing in API Test Console keep getting 405 Method not allowed.  Looking at HCP Access Log there are no requests with code 405 for that service.  Also used debug but no apparent reason for failure (but then again I might not know what to look for).

Seems as though API proxy endpoint does not accept GET which does not make sense.  Ideas on what I'm missing?

API endpoint URL: https://trial.apim1.hanatrial.ondemand.com:443/[inumber]trial/piggybankCP/cashposition

Target endpoint: https://piggybank[inumber]trial.hanatrial.ondemand.com/piggy-bank-web/API/cashposition

In API Management created the System, tested destination and working

Then created the API

Testing results in

2 REPLIES 2
Read only

nic_botha2
Product and Topic Expert
Product and Topic Expert
0 Likes
1,098
  • SAP Managed Tags

Figured out the issue.  Proving solution to anyone else making same noob mistake.


I didn't configure the Path Prefix correct.  After changing the path prefix in system to "/piggy-bank-web/API" and then also the target endpoint url to "/piggy-bank-web/API" it works.

Read only

Elijah_Martinez1
Product and Topic Expert
Product and Topic Expert
0 Likes
1,097
  • SAP Managed Tags

Thank you Nic for sharing your experience, and how to troubelshoot. We were all 'noobs' once