# \[Directions\] directionsRequestErrorCallback is never called

**URL:** <https://forum.woosmap.com/t/directions-directionsrequesterrorcallback-is-never-called/114>\
**Category:** Ask the community\
**Tags:** store-locator\
**Created:** [January 14, 2022, 2:59pm UTC](https://forum.woosmap.com/t/directions-directionsrequesterrorcallback-is-never-called/114 "2022-01-14T14:59:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tucsky](https://avatars.discourse-cdn.com/v4/letter/t/87869e/32.png) [@Tucsky](https://forum.woosmap.com/u/Tucsky)\
**Post date:** [January 14, 2022, 2:59pm UTC](https://forum.woosmap.com/t/directions-directionsrequesterrorcallback-is-never-called/114/1 "2022-01-14T14:59:27Z")

</div>

Hello

In the documentation there is a callback we can pass to the DirectionsProvider for catching errors like the ZERO\_RESULTS after searching for directions between two points.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/woosmap/original/1X/8285504177f4bfdffa138a2a4a4ff54cf3167050.png)

But for some reason it is never called, despite having it set as 3rd parameter in the DirectionsProvider constructor.

I’m not 100% sure but there might be a typo in the locastore library

in getDirectionsFromOrToStore

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/woosmap/original/1X/fba4ee84e74fe9fd88ada45810386ad23d25c95d.png)

it is searching for directionsRequestErrorCallback in ‘this’ yet the callback is located in ‘this.parent’

Is this a known issue or am I doing it wrong ?

---

<div class="post-metadata">

**Author:** ![gael](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.woosmap.com/gael/32/3_2.png) [@gael](https://forum.woosmap.com/u/gael)\
**Post date:** [January 14, 2022, 3:42pm UTC](https://forum.woosmap.com/t/directions-directionsrequesterrorcallback-is-never-called/114/2 "2022-01-14T15:42:43Z")

</div>

Hello @Tucsky,

You’re right, this callback is never called. It’s a known issue.  
We don’t have any public issue tracker but I will link your feedback to the issue and keep you inform right here when the product team fix it.

Thanks!
