I'm having an issue with Google Maps Directions API when using it through Power Automate's HTTP action. The problem only occurs in my sandbox environment - it works fine in development environment.
Using Google Maps Directions API endpoint:
https://maps.googleapis.com/maps/api/directions/json
With these query parameters:
origin=Sydney Opera House, Sydney NSW, Australia
destination=Surfers Paradise, Gold Coast QLD, Australia
waypoints=optimize:true|Blue Mountains National Park, NSW, Australia|Hunter Valley, NSW, Australia|Byron Bay, NSW, Australia
key=YOUR_API_KEY
When I include the pipe character "|" in the waypoints parameter, I get this error in Power Automate:
{
"body": {
"title": "Proxy execute request error",
"status": 400,
"detail": "ms-plex-targetServiceUrl header must be a valid Absolute Uri.",
"instance": "/extension/proxy",
"serviceRequestId": "3572fbb2-4cc2-4e54-9a07-4c87363596a4",
"exceptionSource": "InvalidProxyExecuteRequestException"
}
}
Any help would be greatly appreciated!
Tomac
986
Moderator
stampcoin
699
Super User 2025 Season 2
Riyaz_riz11
577
Super User 2025 Season 2