Giter Club home page Giter Club logo

Comments (4)

Daw588 avatar Daw588 commented on June 15, 2024 1

I get what you meant now, it's an infinite value that Roblox formats as inf. I will attempt to fix it when I can by replacing the inf with the JavaScript's Infinity.

from roblox.js.

Daw588 avatar Daw588 commented on June 15, 2024 1

I have fixed this in 0.0.6, as I implemented pre-processing, which will replace all instances of inf with Infinity.

from roblox.js.

Daw588 avatar Daw588 commented on June 15, 2024

So from what I am understanding, is that an ugly JSON error pops up when you call the GetAsync() function on a key that contains a large number value? If so, what exactly is the issue? Do you want more meaningful error message or a fix (if possible) to correct the large number issue? Nonetheless, thank you for reporting this issue.

from roblox.js.

guidojw avatar guidojw commented on June 15, 2024

The issue is that Roblox returns inf in the body which is not valid JSON, it would be great if this somehow can be replaced with another value before calling response.json().

I used RbxDataStoreService by nikitapetko before the move to this package and that package somehow turns inf into undefined. I don't know if this is done manually or just a result of it not being valid JSON. But at least it doesn't throw :)

from roblox.js.

Related Issues (6)

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.