Coder Social home page Coder Social logo

Comments (6)

dlitvakb avatar dlitvakb commented on July 26, 2024

Hi @tohenryliu,

Which version of the library are you using? Could you provide me the bit of the JSON response that may be causing this?

Cheers

from contentful.py.

tohenryliu avatar tohenryliu commented on July 26, 2024

Hi @dlitvakb,

contentful==1.3.0

I have been using raw_mode for past few days, that worked fine.
Now I'm trying to switch back to try to reproduce the problem. I'm not able to do so.
I get an Array back instead of SyncPage when I call it.
I guess this code failed to detect it's a sync repsonse
https://github.com/contentful/contentful.py/blob/master/contentful/resource_builder.py#L45

any idea?
what info can I provide to help you investigate, or spaceId?

thanks

from contentful.py.

tohenryliu avatar tohenryliu commented on July 26, 2024

looks like this fix is not released yet.
ba96ff6#diff-76b6db7d0d6479dcbbd32a9cce661f55

from contentful.py.

dlitvakb avatar dlitvakb commented on July 26, 2024

Hey @tohenryliu,

I'll look into making a release within this week.

Cheers

from contentful.py.

dlitvakb avatar dlitvakb commented on July 26, 2024

This has been now released in v1.4.1

Please let me know if you continue with issues after the upgrade.

Cheers

from contentful.py.

paribaker avatar paribaker commented on July 26, 2024

This bug still seems to be affecting some code, when I retrieve a field with a decimal value it is coerced to an integer.
when switching over to a text field and taking a decimal input a value error occurs

special variables function variables 'fundTitle':'New Second Fund' 'rightUsageValue':200 'leftUsageValue':20.54 len():3 len():3 res.fields() {'fund_title': 'New Second Fund', 'right_usage_value': 200, 'left_usage_value': 20} special variables function variables 'fund_title':'New Second Fund' 'right_usage_value':200 'left_usage_value':20
The top leftUsageFund from the raw response is a decimal whereas in the formatted version it is coerced into an integer

ValueError at /api/contentful/funds/ invalid literal for int() with base 10: '2.10'

from contentful.py.

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.