connection

RTSP connection issue on IP Camera

RTSP connection issue on IP Camera Question: I have flir blackfly s bfs-pge-04s2c-cs model ip camera. I have poe injector that is connected to router and to camera. I can find the camera ip. My problem is I cannot connect with rtsp. with EasyPySpin I can get a frame with the code below. import cv2 …

Total answers: 2

PyArango holds persistent connection with pod even after Node Death (Kubernetes)

PyArango holds persistent connection with pod even after Node Death (Kubernetes) Question: I have a Kubernetes Multinode system set up 3 three nodes. I am creating a connection between a pod on Node 2 to the Arango deployment using PyArango, the Arango Deployment has two coordinator pods one on Node 2 and one on Node …

Total answers: 2

Python 3.8 Snowflake Connection Error : snowflake.connector.errors.OperationalError: 250003: 250003

Python 3.8 Snowflake Connection Error : snowflake.connector.errors.OperationalError: 250003: 250003 Question: Failed to get the response. Hanging? method: post, url: https://ABC.us-east-2.aws.snowflakecomputing.com:443/session/v1/login-request?request_id=efabf1c7-7fb6-48cb-a50e-256967e3de45&databaseName=DATAVAULT&schemaName=STAGE&warehouse=DATAVAULT&roleName=TEST_Admin&request_guid=c99547cd-ceeb-4280-845b-f2de7be76755 Getting connection error on Windows Python 3.8 Connection parameters { "user" : "TestUser1", "password" : "XXXX", "account" : "ABC.us-east-2.aws", "warehouse" : "DATAVAULT", "database" : "DATAVAULT", "schema" : "STAGE", "Role" : "Test_role" } Also tried account …

Total answers: 2

urllib3 connectionpool – Connection pool is full, discarding connection

urllib3 connectionpool – Connection pool is full, discarding connection Question: Does seeing the urllib3.connectionpool WARNING – Connection pool is full, discarding connection mean that I am effectively loosing data (because of lost connection) OR Does it mean that connection is dropped (because pool is full); however, the same connection will be re-tried later on when …

Total answers: 2

Python requests – Exception Type: ConnectionError – try: except does not work

Python requests – Exception Type: ConnectionError – try: except does not work Question: I am using a webservice to retrieve some data but sometimes the url is not working and my site is not loading. Do you know how I can handle the following exception so there is no problem with the site in case …

Total answers: 1

How to close a mongodb python connection?

How to close a mongodb python connection? Question: I’m doing a python script that writes some data to a mongodb. I need to close the connection and free some resources, when finishing. How is that done in Python? Asked By: lrente || Source Answers: Use close() method on your MongoClient instance: client = pymongo.MongoClient() # …

Total answers: 3

Managing connection to redis from Python

Managing connection to redis from Python Question: I’m using redis-py in my python application to store simple variables or lists of variables in a Redis database, so I thought it would be better to create a connection to the redis server every time I need to save or retrieve a variable as this is not …

Total answers: 3

Python server "Only one usage of each socket address is normally permitted"

Python server "Only one usage of each socket address is normally permitted" Question: I’m trying to create a very basic server in python that listens in on a port, creates a TCP connection when a client tries to connect, receives data, sends something back, then listens again (and repeats the process indefinitely). This is what …

Total answers: 7

Python [Errno 98] Address already in use

Python [Errno 98] Address already in use Question: In my Python socket program, I sometimes need to interrupt it with Ctrl-C. When I do this, it does close the connection using socket.close(). However, when I try to reopen it I have to wait what seems like a minute before I can connect again. How does …

Total answers: 16