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

Regex matching yields "Unexpected end of JSON input" #92

Open
yfrolov opened this issue May 13, 2020 · 2 comments
Open

Regex matching yields "Unexpected end of JSON input" #92

yfrolov opened this issue May 13, 2020 · 2 comments

Comments

@yfrolov
Copy link

yfrolov commented May 13, 2020

Hello,

I tried to use $regex in $match stage but it does not seem to work. E.g.:

db.collection.aggregate([
	{ "$match": { "title": { "$regex": ".*(AB[0-9]{4,6}).*", "$options": "si" } } }
])

I am getting the error in Grafana:

status:500
statusText:"Internal Server Error"
data:Object
  message:"Unexpected end of JSON input"
message:"Unexpected end of JSON input"

Is there any way to make it work?

Thank you in advance.

@condorpiedra
Copy link

Hi, I have the same problem.
Could you solve it?

@nescohen
Copy link

nescohen commented Oct 8, 2020

Hey Guys. I know this is a bit late, but I was having this same issue and created a pull request to fix it: #106

It looks like this maintainer may not be accepting pull requests, I am not sure. Either way you would be welcome to use my fork in the meantime. Available: https://github.com/nescohen/mongodb-grafana

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

3 participants