Thanks @samliew for your lead.
I felt that there was something weird considering the fact that it was working on the terminal but not on make. And by checking the location server I found the root cause. It wasn’t because of the server but the keychain implemented in my http module. I guess i was using the API-key from my free plan…
Thank you !