Comments (3)
Good morning, thanks to answer very fast.
I fork the project and try to simulate the error, in my windows with python 3 works perfect, but in macOS with python 2 explode these errors.
Using pip3 works perfectly.
thanks
from mongotail.
🤔 I'll try to reproduce the error. Do you have a query example?
from mongotail.
I tried to reproduce the error without success. I activated the profiler level of a database with:
$ mongotail test -l 2
Then execute mongotail in folow mode with:
$ mongotail test -f
And then in another console executed this Python script:
from pymongo import MongoClient
client = MongoClient()
client.test.test_collection.insert_one({
'test_field': '\u0080проверка'.encode('utf-8'),
})
And the first console shows:
2018-05-24 01:17:53.006 INSERT [test_collection] : {"test_field": BinData(0,"0L/RgNC+0LLQtdGA0LrQsA=="), "_id": ObjectId("5b0612c528d4321763ae436e")}. 1 inserted.
Anyway, I forgot to mention that specially when you have binary data, it's better to install Mongotail with Python 3.x (instead of Python 2.x). If you use mongotail with Python 2, it will show the binary data with a different enconding, like this:
2018-05-24 01:16:37.028 INSERT [test_collection] : {"test_field": "\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430", "_id": ObjectId("5b0612c528d4321763ae436e")}. 1 inserted.
So, try to uninstall mongotail from Python 2 with:
$ sudo pip uninstall mongotail
And then install with Py3 with:
$ pip3 install mongotail
On the other hand, what version of MongoDB are you using? which OS?
from mongotail.
Related Issues (20)
- `Mongotail EXCEPTION - Unknown command operation` when list collection indexes HOT 2
- Doesn't show sort properties HOT 3
- mongotail just closes HOT 12
- CPU runaway using `-f` option HOT 10
- ImportError: cannot import name string_type HOT 2
- list query log don't show HOT 2
- `mongotail [db] --follow` exits after 1 second HOT 7
- No support of bytes/binary data coming from MongDB HOT 7
- Mongotail EXCEPTION - Unknown registry HOT 8
- Supposed to work with Mongo 4.0.1? HOT 1
- MongoDB Timestamp type is not supported HOT 3
- Mongotail EXCEPTION - Unknown registry HOT 10
- Cannot get queries to log; only DROP and INSERT show in the log HOT 7
- Replace deprecated API methods from PyMongo
- Crash for queries containing `MaxKey` / `MinKey` HOT 13
- Error parsing command line: Invalid database "portal," HOT 3
- Connection to mongodb atlas not possible HOT 10
- mongotail 3.0.0 not compatible with res-address 2.0.0 HOT 2
- Command values cased as findAndModify or mapReduce cause errors HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mongotail.