'Firebase Admin SDK Python TransportError max retries exceeded

Trying to Fetch and modify data from the real-time database. No code change was done, working fine till yesterday. Tried creating a new key, disabling service, updating packages. Nothing seems to work.

The code is used in Python Firebase Admin SDK. It is used to get and modify data from the real-time database. I am using firebase_admin to access Firebase Realtime Database.

#Add Topics
topics=root.child('Topics/')
Category='Kabaddi'
with open('/Users/user/Desktop/balancerproject/single_sample.json') as response:
    data = json.load(response)
    #topics.update(data)
    topics.child(Category+'/').push(data)
    send_fcm(data)
    #instaQuotes(data.get('Title'))

It is throwing error in topics.child(Category+'/').push(data)


TransportError: HTTPSConnectionPool(host='oauth2.googleapis.com', port=443): Max retries exceeded with url: /token (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x10bb4b700>: Failed to establish a new connection: [Errno 60] Operation timed out'))


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source