ruby-grape / ruby-grape/grape

Problem with starting Rails project after fixing syntax error in Grape API files

Open
#1,671 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug?
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:

  1. SyntaxError (after 1st page reload)
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.