API: Failed to get all challenges
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2k
- Forks
- 983
- Avg merge
- 2h 54m
- Merged PRs (30d)
- 14
Description
API parameters:
Method: GET
URL: /challenges/challenge
Header: Authorization = "Token {{my_token}}"
Software: Insomnia
Expected behavior:
List of all challenges
Observed behavior:
"error": "Invalid url pattern!"
Software image:

Server logs:
[pid: 80|app: 0|req: 2/2] 192.168.x.x () {32 vars in 732 bytes} [Mon May 3 18:14:46 2021] GET /api/challenges/challenge => generated 32 bytes in 63 msecs (HTTP/1.1 406) 6 headers in 232 bytes (1 switches on core 0)
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 GET request to /api/challenges/challenge with the Authorization token and compare it with the documented /challenges/challenge URL. Trace the route handling that produces the “Invalid url pattern!” response; done means the endpoint returns the expected list of all challenges and the request is covered by an appropriate test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- django, python
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100