Unable to access my localhost api


#1

Hi Sir,
I have created an Api but when I am trying to access it it’s giving error “There was a problem proxying the request”


#2

Hi Yadav,

Can you give details about your steps and configuration?

Best,
Furkan


#3

I have followed the steps as given by tyk documentation. I have used tyk cloud


#4

Can you share your API definition?

APIs --> your-api-name --> RAW API DEFINITION(at top)


#5

its a service which is deployed on kurbenetes


#7

I think the problem is here. You cannot access your local API by tyk cloud. Target URL should be public.


#8

can u help me for this


#9

i also tried with tyk on premise


#10

If your API is on Kubernetes, this doc can help you: https://kubernetes.io/docs/tutorials/stateless-application/expose-external-ip-address/


#13

Is your on-premise in your local? or in kubernetes?


#14

it is in local not on kurbenetes


#15

What did you say this for ?


#16

i tried for both api with kubernetes and without kurbernetes


#17

http://localhost:5000/v2/
and this one is on localhost not on kubernetes


#18

Are you sure that http://localhost:5000/v2/ is running its own? I mean paste that URL into browser and make a request to it and please share the result with me.


#19

In the example of Tyk docs, it uses petstore v2 API so it has postfix of v2 at the end. Are you putting that v2 because of the example?


#20


#21

Why doesn’t it show anything?


#22

I need this as output


#23

Can you please make target URL http://httpbin.org/ and try to make request to Tyk API URL?