I am trying to run the sample "policy-mashup-cookbook" proxy by running ./invoke.sh from gitbash. I am getting error as noted below -
Using org and environment configured in /setup/setenv.sh + curl 'http://kalyanmudi-eval-test.apigee.net/policy-mashup-cookbook?country=us&postalcode=08008' % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 194 100 194 0 0 24 0 0:00:08 0:00:07 0:00:01 42{"fault":{"faultstring":"Execution of ServiceCallout ExecuteGeocodingRequest failed. Reason: ResponseCode 403 is treated as error","detail":{"errorcode":"steps.servicecallout.ExecutionFailed"}}}
I tried to trace the call and I understand that the first call out to "http://maps.googleapis.com/maps/api/geocode/json?address=08008®ion=us&sensor=false" failing. So, I tried just that call from postman, i.e., outside of the proxy example and it seems google is asking for an apiKey, which makes sense. However, during setup of the example, I don't seem to come across any instruction on setting up an apiKey for google map. Can someone help me understand if I am missing something?
I think maybe the maps service changed, between the time the sample was created, and the time you tried it. I don't know the plan for updating the sample.
Maybe someone on the docs team knows.
We'll look into this, @Kalyan Mudi. Thanks for posting. It's possible that the API changed to require a key.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |