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

Error when restarting browser with meteor not running then running meteor #34

Closed
scottburch opened this issue Jul 29, 2014 · 2 comments
Closed

Comments

@scottburch
Copy link

Exception in setTimeout callback: TypeError: undefined is not a function

To reproduce:

Start meteor
Run app
Stop meteor
Insert into a collection
close browser
start meteor
open browser

I have done some investigating and this seems to be caused by GroundDB expecting a _id field to be sent in the insert message. DDP does not appear to do that but instead sends a randomSeed value to generate IDs from.

------ grounddb.client.js (line 555) -------------
var mongoId = _gDB.idParse((method.args && method.args[0])?
method.args[0]._id || method.args[0]:'');

Seems like generating the ID from the random seed might be the right thing to do, or maybe trick the client into thinking that it received the insert message.. Not sure yet. Still looking into it.

Any suggestions are welcome.

@scottburch
Copy link
Author

Workaround #27 seems to be a workaround for this issue as well.

@raix
Copy link

raix commented Sep 19, 2014

Cant reproduce in the new ground:db - let me know if this persist

@raix raix closed this as completed Sep 19, 2014
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