Skip to content
webhook handler times out accessing MongoDB
kgilfilen
OP

a year ago

I have an endpoint service that listens to Stripe for web hooks and updates MongoDB. I consistently get ServerSelectionTimeoutError when the web hook handler tries to access MongoDB, and tried switching to asynchronous libraries (python motor with pymongo), but nothing seems to fix this. Here are the first few lines of the error, I have NO IDEA how to fix this, or why it fails here. It works fine locally. This happens when I send event web hooks from stripe, and it tries to access (find_one, insert_one, etc) customer records.

"pymongo.errors.ServerSelectionTimeoutError: SSL handshake failed: ac-dfcsz2b-shard-00-01.aiuzmtg.mongodb.net:27017: [SSL: TLSV1_ALERT_INTERNAL_ERROR] tlsv1 alert internal error (_ssl.c:1032) (configured timeouts: socketTimeoutMS: 10000.0ms, connectTimeoutMS: ..."

Project ID: bb8a939a-e0ec-430a-bce8-72f82e4267fa

Service name: “The real project”

$10 Bounty

1 Reply

kgilfilen
OP

a year ago

Looks like I got it fixed. I made the processor respond quicker, and saved the processing for later.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...