Skip to content
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

Can't change timeout #809

Closed
deleuterio opened this issue Sep 4, 2018 · 8 comments
Closed

Can't change timeout #809

deleuterio opened this issue Sep 4, 2018 · 8 comments
Labels
Milestone

Comments

@deleuterio
Copy link

Repro steps:
5 seconds is to little for my mongo database respond. I try to change timeout connection and timeout connection on mongoDB url connection but I think cosmos have a timeout for wait mongo response... Can I change this timeout?

Action: cosmosDB.executeMongoCommand
Error type: string
Error Message: Timed out executing MongoDB command "use placeholder"

Version: 0.8.0
OS: darwin

@StephenWeatherford
Copy link
Contributor

@deleuterio Are you using the emulator?

@deleuterio
Copy link
Author

Nops @StephenWeatherford, I just attach a db account.

@deleuterio
Copy link
Author

Anyone can help me? I think a timeout option should be a new feature... 🤔
I'm right?

@tec-goblin
Copy link
Contributor

It seems it's hard-coded in shell.ts exec(). What would be a reasonable level of the setting?
A global setting for all of a user's databases? (this could unblock the situation)
Or a way to override for specific requests? (but this would only work in scrapbooks, if we propose some special syntax)

@deleuterio
Copy link
Author

deleuterio commented Sep 14, 2018

A both ways will solve my problem @tec-goblin.
To be more specific about my problem I will describe what happens... Every time I try an update in a mongo's big collection a timeout error are throwed.

@tec-goblin
Copy link
Contributor

Just to be sure, even if it's just one document? Then the second solution I proposed wouldn't work (editing directly a document doesn't need to pass through a scrapbook).

@deleuterio
Copy link
Author

Would be lovely if works more than one document 😃
Therefore I think is better the first solution.

@PrashanthCorp PrashanthCorp added this to the 0.9.0 milestone Sep 26, 2018
@PrashanthCorp
Copy link
Contributor

Probably related to #838

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

No branches or pull requests

4 participants