Sync Gateway public channel FATAL: Error


I want to add some documents to the public chanel and as the docs specify, for doing this I am using


Surprisingly this does not work for me, I am getting an:

FATAL: Error reading config file /etc/sync_gateway/config.json: invalid character ‘!’ after object key:value pair – rest.ParseCommandLine() at config.go:582

And it makes sense because in the sync_gateway functionality the ‘!’ can’t pass a regex validation: ^([-+=/_.@\p{L}\p{Nd}]+|[\*\!])$

Am I doing something wrong?

Thank you.

Hi again,

Please ignore this, it turned out it was just a quote issue, "-quotes broke the function and I was getting the specified error.