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.

Misssing MissingFieldException

See original GitHub issue

I used to use the following construction:

try:
   run['a/b/c/d/e/f/g/h/i/j/k'].fetch()
except MissingFieldException:

to check whether a given field exists.

This has worked in neptune client 0.9.16 but doesn’t work anymore in neptune client 0.11.0 since now the raised exception is AttributeError: No such method 'fetch'

Of course, I can handle a new one but I have a feeling that MissingFieldException was a bit more informative. Or maybe there is even a more natural way to check whether a given path in the tree exists?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
pkasprzykcommented, Oct 20, 2021

It checks what’s inside the in-memory run structure representation that neptune-client uses while running (the same you get from Run.get_structure()). It is updated synchronously when user assign metadata (so can be “ahead” of the actual info on server) + rebuilt from server when user initially inits run, or each time they call Run.sync().

0reactions
Herudaiocommented, Feb 7, 2022

Closing the issue as it was discussed over using other channels.

Read more comments on GitHub >

github_iconTop Results From Across the Web

MissingFieldException Class (System) - Microsoft Learn
The MissingFieldException is thrown when code in a dependent assembly attempts to access a missing field in an assembly that was modified.
Read more >
MissingFieldException - Kotlin
MissingFieldException is thrown on missing field from all auto-generated serializers and it is recommended to throw this exception from user-defined ...
Read more >
Kotlinx Serialization MissingFieldException - Stack Overflow
Specifies whether null values should be encoded for nullable properties and must be present in JSON object during decoding. When this flag is ......
Read more >
Type: System.MissingFieldException - GitHub Pages
The MissingFieldException is thrown when code in a dependent assembly attempts to access a missing field in an assembly that was modified.
Read more >
MissingFieldException (Groovy 4.0.6)
An exception occurred if a dynamic field dispatch fails with an unknown field. Note that the Missing*Exception classes were named for consistency and...
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