Sunday, February 8, 2015

Root cause of getting 404 error when do rest call to google places apis

When we do call any rest api starting with https://maps.googleapis.com (ex: google location api) from an application other than a normal browser I observed we are getting 404 error message as the response. 

What we can do to prevent this

  • Add host: maps.googleapis.com parameter to the request header when application send rest call to that api


In WSO2 ESB we can use below property before send mediator. It will add above parameter to request header when ESB send rest call to maps.googleapis.com.

<property name="REQUEST_HOST_HEADER" value="maps.googleapis.com" scope="axis2"></property> 

1 comment:

  1. Thanks for sharing this valuable information to our vision. You have posted a worthy blog keep sharing.

    Digital Marketing Training in Chennai

    Digital Marketing Course in Chennai

    ReplyDelete

How to choose IP address range for resources for AWS virtual private cloud

You will often need to allocate  an IP address range when you design the network of an AWS VPC. Since VPC is a small network of resources(E...