Comments (2)
I think I have a read on why this happens.
In execute_request
in the client, we enter into a transaction block, perform the request, clear the headers and if there are any errors (& errors are turned on), we raise them.
However, this causes issues when the RateLimitError is raised. When that's raised, the request is retried; But because clear_headers
has already run by this point, the request is run without those headers. I believe this is causing both of the above issues. At least, I'm able to replicate the 409
by triggering a rate limit error. The 400
error is also header related, so I'm assuming it's the same issue.
from contentful-management.rb.
PR merged: #245
from contentful-management.rb.
Related Issues (20)
- Error reading from socket HOT 7
- Rich text field validations prevent operations on content type HOT 5
- Retrieving content types throws an HTTP connection error HOT 1
- JSON field getting cleared on save HOT 4
- Gem blows up when querying entries that have tags associated with them HOT 4
- Entry destroy not working as expected HOT 1
- Creating entry with field 'id' doesn't work HOT 4
- Get all users implementation missing HOT 6
- editor_interface missing sidebar implementation HOT 1
- Tasks implementation missing in contentful-management.rb
- Unprocessable Entity: raised error message provides insufficient information
- Creating an asset from upload fails
- Why is there nothing working in this gem? HOT 2
- Can't access Users API HOT 2
- Editor interface `sidebar` property unexpectedly `nil` HOT 4
- No default reviewers/maintainers added to pull requests HOT 1
- URI.escape is obsolete and does not work with URI 0.10.1 HOT 3
- Question: Query using date comparison HOT 3
- Trying to send a Rich Text field to create an Entry (Contentful::Management::UnprocessableEntity:"HTTP status code: 422 Unprocessable Entity) HOT 3
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-management.rb.