r/NixOS • u/BridgeBeginning5817 • 22h ago
Getting error on nix flake update
nix flake update
error: \[json.exception.parse_error.101\] parse error at line 1, column 1: attempting to parse an empty input; check that your input string or stream contains the expected JSON
Cleaning cache didn't fix the issue. Have been experiencing this since yesterday.
5
Upvotes
3
u/snowman-london 22h ago
That error means Nix tried to parse a JSON file or HTTP response that came back zero bytes. Check you flake.lock Delete your cache:
~/.cache/nixor/root/.cache/nix. If this does not help try this:nix flake update --debug 2>&1 | tail -50to catch the actual error.