Problem with starting Rails project after fixing syntax error in Grape API files
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 10k
- Forks
- 1.2k
- Avg merge
- 14h 38m
- Merged PRs (30d)
- 92
Description
Simple project example:
https://github.com/veejar/grape-syntax-problem
When Grape API file has Syntax Error I see such errors in browser:
- SyntaxError (after 1st page reload)
- Routing Error, No route matches [GET] "/api/v1/test" (after 2nd and next page reload)
Errors are clear.
After fixing Syntax Error in Grape API file I'm reloading page and Rails Project never starts, server load average goes up. Need to restart Passenger.
Ruby Version: 2.2.0
Passenger Version: 5.0.11 (used with Nginx web server)
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
Reproduce the behavior using the linked simple project and the Grape API file at app/api/test/api.rb, with Ruby 2.2.0, Passenger 5.0.11, and Nginx. Compare the first request after the syntax error with requests after the file is fixed. Done means the Rails project starts normally after the correction without requiring a Passenger restart or causing the server load to rise.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100