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

failing test for json encoding #20

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

nrw
Copy link
Contributor

@nrw nrw commented Jul 1, 2014

i think this should work (it's a copy of the replicate.js test but with db valueEncoding set to json). the error is [EncodingError: Unexpected token o]. not sure what's mangling the encoding internally. didn't we address this issue once before?

@nrw
Copy link
Contributor Author

nrw commented Jul 1, 2014

i believe the last commit fixed this. each call to pull-level.read needs to read the master and clock database with encoding utf8

@nrw
Copy link
Contributor Author

nrw commented Jul 1, 2014

ack. i found another way to make this fail. more investigation is necessary.

@dominictarr
Copy link
Owner

ah one place might be level-trigger I was debugging that recently and found that I had forgotten to support more than one encoding (it's hard coded to utf8) I wouldn't be surprised to see more things like this in old code... we'll fix all this in the new level-sublevel (which is coming along!)

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.

None yet

2 participants