Open davidbeers opened 3 years ago
import googlemaps def get_lat_lng(self, address: str): gmaps = googlemaps.Client(key="api_key") geocode_result = gmaps.geocode(address) return geocode_result
ResourceWarning: unclosed <ssl.SSLSocket fd=9, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.1.4', 59981), raddr=('172.217.12.10', 443)>
Services using the googlemaps client could easily run out of sockets because of this bug.
This bug appears to be the same as https://github.com/googleapis/google-api-python-client/issues/618 If it is indeed the same there was a fix in google-api-python-client here: https://github.com/googleapis/google-api-python-client/pull/1038
Having the same problem here. Any ideas on how to fix this?
Environment details
Steps to reproduce
Code example
Stack trace
Impact:
Services using the googlemaps client could easily run out of sockets because of this bug.
Potential resolution:
This bug appears to be the same as https://github.com/googleapis/google-api-python-client/issues/618 If it is indeed the same there was a fix in google-api-python-client here: https://github.com/googleapis/google-api-python-client/pull/1038