Skip to content

MongoError: Interrupted by the host #4494

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
majidhassan opened this issue Jan 10, 2018 · 3 comments
Closed

MongoError: Interrupted by the host #4494

majidhassan opened this issue Jan 10, 2018 · 3 comments

Comments

@majidhassan
Copy link

Hello,

I recently got the error "MongoError: Interrupted by the host" from my self hosted parse-server. My assumption is, that this is caused by a shortage in the connection pool.

Could something else be causing this error?

Here's the exact error object:

{"code":141,"message":{"name":"MongoError","message":"Interrupted by the host","ok":0,"errmsg":"Interrupted by the host","code":11601,"codeName":"Interrupted"}}

@montymxb
Copy link
Contributor

Just looking around seems to indicate that something is being interrupted server (host) side, don't really think a connection shortage cause this as the connection has already been established for it to be interrupted (unless there's a contest for resources, maybe...).

Could you provide further details regarding the circumstances of this? Especially if you have a scenario that can reproduce this.

@majidhassan
Copy link
Author

Hey @montymxb, thanks for your reply. It turned out I had a bug that caused a call to go into an infinite loop. The call made multiple calls to the database, so my guess is, that the cloud call either timed out while a db call was executing, or, that the db itself rejected a call due to too many requests. I'm betting it's the first one, though.

@montymxb
Copy link
Contributor

Ahh, there you go. Glad you figured it out. Unless there's something else that's outstanding I'll go ahead and close this out. Feel free to open it back up if this is persisting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants