farb Hi
The error message suggested that the Google Maps JavaScript API key you used was invalid. The key is necessary for using Google Maps, as it allows Google to keep track of your usage and ensure that you are not exceeding any usage limits.
If you are using an invalid key, Google will not be able to authenticate your requests and will reject them, resulting in the error message you are seeing. You should double-check that your API key is correct and it's been configured properly.
If you are still having issues, you might want to check if your API key has the correct permissions and it's associated with the correct billing account. You can also try generating a new API key to see if that resolves the issue.
Alternatively, you could consider using a different mapping solution that does not require an API key, such as OpenStreetMap, which worked successfully as you mentioned.