question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mongodb introspection fails with "called `Option::unwrap()` on a `None` value"

See original GitHub issue

Happy 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:closed
  • Created a year ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
pimeyscommented, Jul 6, 2022

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.

1reaction
pimeyscommented, Jul 6, 2022

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…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found