Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: expected string or buffer #34

Open
kings-j opened this issue Mar 17, 2015 · 0 comments
Open

TypeError: expected string or buffer #34

kings-j opened this issue Mar 17, 2015 · 0 comments

Comments

@kings-j
Copy link

kings-j commented Mar 17, 2015

Hi,
While we tried to run dex in the below format using profiling, we are getting "TypeError: expected string or buffer" error. Pls guide us on the same.
command used:
dex -p 'mongodb://adminUser:adminPwd#122@127.0.0.1:27017/admin' -n "MyDB.*"
Error:
Traceback (most recent call last):
File "/usr/bin/dex", line 233, in
main(sys.argv[1:])
File "/usr/bin/dex", line 206, in main
return md.analyze_profile()
File "/usr/lib/python2.6/site-packages/dex/dex.py", line 162, in analyze_profile
profile_parser)
File "/usr/lib/python2.6/site-packages/dex/dex.py", line 88, in _process_query
line_time = get_line_time(input)
File "/usr/lib/python2.6/site-packages/dex/parsers.py", line 51, in get_line_time
match = ts_rx.match(line)
TypeError: expected string or buffer

Pls note that, it is working fine when targeted to a log file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant