ruby-grape / ruby-grape/grape

Grape route error

Open
#1,387 8 comments 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

After upgrading to 0.16.2 from 0.15.0 I get this error:

Mustermann::CompileError - can't use the same capture name twice: "/(*:path)*path(.json)":

I have looked at the UPGRADING document and it doesn't look like I am using any of the deprecated methods.

In my routes.rb file I am using: mount Base => '/'

Is there any more information I can provide to help debug this issue?

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

Start with the route declaration in routes.rb and compare behavior between Grape 0.15.0 and 0.16.2. Read the UPGRADING document alongside the reported Mustermann::CompileError, then reproduce the mount Base => '/' case; done means identifying the route incompatibility and confirming the error no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.