ActiveCampaign / mailmason

A complete toolset to streamline building and updating a set of consistent transactional emails.

Home Page:https://postmarkapp.com/mailmason

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Required config property "watch" missing

sherifsaleh opened this issue · comments

Running "watch" task
Waiting...
Verifying property watch exists in config...ERROR

Unable to process task.
Warning: Required config property "watch" missing.

Running "watch" task
Waiting...
Verifying property watch exists in config...ERROR

Unable to process task.
Warning: Required config property "watch" missing.

Delete the comments in the config.json file

Doesn't help here. And there is no watch in https://github.com/wildbit/mailmason/blob/master/example_config.json ?

It breaks because the config file is invalid when you just copy and paste. Delete all the lines starting with '//'. There is no such syntax for comments in JSON. That's why you get the error

Verifying property watch exists in config...ERROR

Unable to process task.
Warning: Required config property "watch" missing.

because it doesn't understand the config file

commented

Mine broke because the secrets.json file that the docs say to copy is missing a comma between "s3" and "postmark".

@sherifsaleh Are you still experiencing this issue? Removing the comments in config.json and secrets.json should fix the issue.

We just released some updates today that removes these comments from example_config.json and example_secrets.json so this is less likely to happen.

@JHerz Thanks for bringing this up. I fixed the example in the wiki.

FYI, I had a similar problem.
The cause was an error in my syntax. With JSON, trailing commas are not acceptable - while they are in similar constructs in other languages, such as dictionaries in Python.
So I had:
{ "strings": { "sender_name": "Acme", "product_name": "RocketPack", "formal_company_name": "Acme Ltd", "product_url": "https://acme.com", "address_line_1": "Desert Highway, New Mexico, USA", } }

This would have been fine as a dictionary (of dictionaries) in Python, but that last comma caused endless errors and a crash with JSON in Javascript.