Coder Social home page Coder Social logo

UTF8 in json data about zestdb HOT 7 CLOSED

me-box avatar me-box commented on August 11, 2024
UTF8 in json data

from zestdb.

Comments (7)

jptmoore avatar jptmoore commented on August 11, 2024

Do you have an example I can pass from my test client to trigger this? It is handling things like this for example:

Johns-MacBook-Pro:test john$ _build/default/client.exe --server-key 'vl6wu0A@XP?}Or/&BR#LSxn>A+}L)p44/W[wXL3<' --path '/ts/foo/latest' --mode get
{"timestamp":1512063381380,"data":{"event":"☀ ☁ ☂ ☃ ☄ ★ ☆ ☇ ☈ ☉ ☊ ☋ ☌ ☍ ☎ ☏ ☐ ☑ ☒ ☓ ☚ ☛ ☜ ☝ ☞ ☟ ☠ ☡ ☢ ☣ ☤ ☥ ☦ ☧ ☨ ☩ ☪ ☫ ☬ ☭ ☮ ☯ ☰ ☱ ☲ ☳ ☴ ☵ ☶ ☷ ☸ ☹ ☺ ☻ ☼ ☽ ☾ ☿ ♀ ♁ ♂ ♃ ♄ ♅ ♆ ♇ ♈ ♉ ♊ ♋ ♌ ♍ ♎ ♏ ♐ ♑ ♒ ♓ ♔ ♕ ♖ ♗ ♘ ♙ ♚ ♛ ♜ ♝ ♞ ♟ ♠ ♡ ♢ ♣ ♤ ♥ ♦ ♧ ♨ ♩ ♪ ♫ ♬ ♭ ♮ ♯"}}

from zestdb.

Toshbrown avatar Toshbrown commented on August 11, 2024

there is an example in past bin but I can provide some more:

 see file below.

from zestdb.

jptmoore avatar jptmoore commented on August 11, 2024

Do you have the JSON on its own I can paste into a validator? I can save that to a file and try from the client.

from zestdb.

Toshbrown avatar Toshbrown commented on August 11, 2024

Sure, here is a file full of them, separated by a new line ;-)

badTweets.txt

from zestdb.

jptmoore avatar jptmoore commented on August 11, 2024

Are these all failing? I tried the first one and that did not give me an error.

from zestdb.

Toshbrown avatar Toshbrown commented on August 11, 2024

Yep they all failed my end.

Here is a new set of logs. The tweets in badTweets are the ones rejected by the store. storeLogs.txt contains all the output from the store with logging enabled.

badTweets.txt
storeLogs.txt

from zestdb.

Toshbrown avatar Toshbrown commented on August 11, 2024

Turned out to be an issue with https://github.com/Toshbrown/nodeZestClient calculating the length of utf8 payloads incorrectly. Fix in version 0.0.9.

from zestdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.