ruby-grape / ruby-grape/grape-entity
Representations cannot be serialized/cached
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 729
- Forks
- 154
- PR merge metrics
- No merged PRs in 30d
Description
Hey guys!
I'm having an issue using Grape with cache (Garner) and send the results with grape-entity.
The issue is: the second time I request an object Garner start working, but the call for Grape Entity have a problem, because it sets the options as nil, making grape-entity to throw an error, options is not define.
Versions
Grape 0.6.1
Grape-entity 0.4.0
Garner 0.3.2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the cached second request with Grape 0.6.1, grape-entity 0.4.0, and Garner 0.3.2. Trace how the cache hit reaches grape-entity and why its options become nil; done means cached representations serialize without the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100