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

file-cache: use the right exception type for parse error #23

Merged
merged 1 commit into from
Jan 31, 2019

Conversation

samueldr
Copy link
Member

@samueldr samueldr commented Jan 31, 2019

error: [json.exception.parse_error.101] parse error at 195: syntax error - invalid string: ill-formed UTF-8 byte; last read: '"bokml'; expected string literal

This is most probably caused by the upgrade in nixos-org-configurations/1b74e019b166d37a1510a99aeea86a0fa656854a
that, in turn, caused nlohmann_json to go from 2.1.0 -> 3.2.0

I haven't found concrete evidence in the changelog as to a change
changing the exception type. Though, the timing for failures matches
with this update.

Furthermore, once this fix is applied, launching the update locally
works fine.


This was tested by neutering the S3 stuff and running

$ nix-build && nix-shell -p ./result
$ mirror-nixos-branch nixos-18.09 https://hydra.nixos.org/job/nixos/release-18.09/tested/latest-finished

Do note that this doesn't seem affect the -small channels, while affecting the "big" channels.

```
error: [json.exception.parse_error.101] parse error at 195: syntax error - invalid string: ill-formed UTF-8 byte; last read: '"bokml'; expected string literal
```

This is most probably caused by the upgrade in nixos-org-configurations/1b74e019b166d37a1510a99aeea86a0fa656854a
that, in turn, caused nlohmann_json to go from 2.1.0 -> 3.2.0

I haven't found concrete evidence in the changelog as to a change
changing the exception type. Though, the timing for failures matches
with this update.

Furthermore, once this fix is applied, launching the update locally
works fine.
@matthewbauer
Copy link
Member

/cc @edolstra

@grahamc
Copy link
Member

grahamc commented Jan 31, 2019

https://github.com/nlohmann/json/releases/tag/v3.0.0 has a section called "Moving from 2.x.x to 3.0.0"

@grahamc grahamc merged commit d7a903d into NixOS:master Jan 31, 2019
@samueldr samueldr deleted the fix/json-error-handling branch August 15, 2019 04:32
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

Successfully merging this pull request may close these issues.

3 participants