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 using MongoDB lib #160

Open
Zer0-Tolerance opened this issue Jan 7, 2021 · 3 comments
Open

Error when using MongoDB lib #160

Zer0-Tolerance opened this issue Jan 7, 2021 · 3 comments

Comments

@Zer0-Tolerance
Copy link

Zer0-Tolerance commented Jan 7, 2021

Hello,
I get a free unreferenced scalar error when I use MongoDB in my Raku script just after the

use MongoDB:from<Perl5>;
my $mongo;
$mongo=MongoDB.connect('mongodb://localhost:27017');

Any idea why it crashes ?

Attempt to free unreferenced scalar: SV 0x7fb06a247cc8, Perl interpreter: 0x7fb06571ec00.

@Zer0-Tolerance
Copy link
Author

Any update ?

@niner
Copy link
Owner

niner commented May 3, 2021 via email

@Zer0-Tolerance
Copy link
Author

Zer0-Tolerance commented May 4, 2021

Hi niner, thanks for your reply with the latest version v2021.04, it doesn't crash anymore.
But I'm facing another issue with this code:

use MongoDB:from<Perl5>;
my $mongo=MongoDB.connect('mongodb://127.0.0.1:27017');
my $col=$mongo.ns('testdb.col');
$col.update_one({a => 1},{a => 2},{ upsert => 1 });

which returns MongoDB::UsageError: filter and update arguments must be references at -e line 0. eval {...} called at -e line 0

haven't find anyway to pass references same behavior on Linux. Do you have an idea ?

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