I resolved the issue by adding my server's IP address to the allowed IPs for my Google API key. However, it only started working 24 hours after making the change.