Comments (6)
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.
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.
looks like this fix is not released yet.
ba96ff6#diff-76b6db7d0d6479dcbbd32a9cce661f55
from contentful.py.
Hey @tohenryliu,
I'll look into making a release within this week.
Cheers
from contentful.py.
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.
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)
- Option to disable automatic snake_case transformation
- maximum recursion depth exceeded issue when trying to retrieve entries HOT 14
- How can I include the version header? HOT 1
- python 3.8 support? HOT 3
- Cannot retrieve all localized fields HOT 2
- Sometimes Asset.url() return empty string
- Incorrect documentation for sync HOT 1
- Embedded Asset in rich text field is not localized when using locale's wildcard HOT 2
- Incorrect documentation for Search parameters
- Content type caching breaks for multiple spaces with same content type names HOT 5
- Contentful Python "Create Issue" button links to Contentful Ruby issues page. HOT 1
- Fields with same names overwrite Entry attribute values and types (e.g. content_types) HOT 2
- Converting Entry to JSON does not include field values for multi-nested resources HOT 5
- Fetching an entity recursive builds forever - hanging forever
- Cannot delete an Entry HOT 1
- Is this project still active? HOT 1
- Python EOL Version Support HOT 4
- Unicode payloads are not being encoded correctly HOT 1
- Embedded videos within rich text fields do not get properly serialized when calling `.raw` on the entry HOT 1
- Using the Contentful Python client adds significant latency HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from contentful.py.