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.

Error running query: UUID('...') is not JSON serializable

See original GitHub issue

Issue Summary

Querying mongo collection with UUID field fails with error.

Steps to Reproduce

  1. Run query { "collection": "myCollection", "query": { "foo": "bar" } }
  2. Observe error Error running query: UUID('xxx') is not JSON serializable

Technical details:

Redash 3.0.0+b3134

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
mwvaughncommented, Sep 17, 2018

Did you ever find a solution for this?

0reactions
arikfrcommented, Dec 16, 2021

I’m pretty sure this was fixed a while ago by switching to simplejson and using our encoder that supports UUID.

Read more comments on GitHub >

github_iconTop Results From Across the Web

UUID('...') is not JSON serializable - python - Stack Overflow
I had this same problem with a UUID field in a database model that I wanted to print out for debugging.
Read more >
Fixing UUID is not JSON serializable - Arthur Pemberton
I recently upgraded a Django project to version 1.8, and I am happily using Postgresql and Django's new UUIDField . While using django-eztables ......
Read more >
Object of type UUID is not JSON serializable #586 - GitHub
I'm passing in a UUID as a part of my extra data and getting this error Object of type UUID is not JSON...
Read more >
Object of type <Foo> is not JSON serializable (in Array)
Coding example for the question TypeError: Object of type is not JSON serializable (in Array)
Read more >
apache_beam.io.gcp.bigquery_tools - Apache Beam
Returns: A TableSchema of the BigQuery export from either the Query or the ... was a dry run then the fact that we...
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