Mongodb introspection fails with "called `Option::unwrap()` on a `None` value"
See original GitHub issueHappy to provide more info. Very new to mongo so I’ll need some direction to be of any use.
Command
db pull
Versions
Name | Version |
---|---|
Platform | darwin-arm64 |
Node | v16.15.0 |
Prisma CLI | 4.0.0 |
Engine | da41d2bb3406da22087b849f0e911199ba4fbf11 |
Error
Error: [introspection-engine/connectors/mongodb-introspection-connector/src/sampler/statistics/indices.rs:222:67] called `Option::unwrap()` on a `None` value
Issue Analytics
- State:
- Created a year ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
called `Option::unwrap()` on a `None` value · Issue #12998 - GitHub
This is due to us expecting the indices we get from mongo to be reasonable, but they can actually be whatever. An example...
Read more >Panicked at 'called `Option::unwrap()` on a `None` value ...
Hi! I'm currently porting the Lox language from Crafting Interpreters , but I've been stuck for a while in an annoying bug.
Read more >Prisma - Browse /3.15.0 at SourceForge.net
The Prisma Data Proxy provides connection management and pooling for database connections for efficiently scaling database connections in serverless ...
Read more >Fix list for IBM WebSphere Application Server V8.5
IBM WebSphere Application Server provides periodic fixes for the base and Network Deployment editions of release V8.5. The following is a complete listing ......
Read more >Prisma 2.23.0 Release - GitClear
Today, we are excited to share the 2.23.0 stable release. Help us spread the word about Prisma by starring the repo or tweeting...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah when a dev is out. The PR is still not approved by anybody and I’m not sure is this the solution we choose. I’ll mark the dev release here when one is out.
So you should check in the data if any of the following fields points to an embedded type in every single document:
venues.default
orderstats.totalsByAgeGroup
orderstats.totalsByAgeGroup.ageGroup6
venuerewards.alpineIQ
products.leaflogix
venueoffers.springbig
ordercarts.discoungs
ordercarts.discounts.alpineIQ
inventories.leaflogix
reports.default
I’m pushing a fix that does not crash here anymore, but we cannot really generate an immediately working data model if the data is super dirty… Of course it’s easier to fix if you at least get some data model out…