Skip to content

HAMUR_E0049: The redirects JSON file holds no array

The redirects JSON file holds no array. Error HAMUR_E0049 belongs to hamur, config, environment and command line (0001 – 0999).

Message

text
HAMUR_E0049 <shown> must hold an array of { from, to, status? }

Cause

The redirects JSON file holds something other than an array.

Fix

Make the file one array of { from, to, status? } objects.

json
[
  { "from": "/old", "to": "/new" },
  { "from": "/docs/start", "to": "https://example.com/start", "status": 301 }
]