purescript / purescript/trypurescript
Unable to create a gist
Open
Nobody has claimed this yet.
- Dominant language
- PureScript
- Stars
- 121
- Forks
- 51
- PR merge metrics
- No merged PRs in 30d
Description
When attempting to share, I receive an alert with the message:
From try.purescript.org
Failed to create gist
This is caused by a failed POST:
Request URL: https://api.github.com/gists
Request Method: POST
Status Code: 422 Unprocessable Entity
The response payload:
{
"message": "Validation Failed",
"errors": [
{
"resource": "Gist",
"code": "missing_field",
"field": "user"
},
{
"resource": "Gist",
"code": "missing_field",
"field": "files"
}
],
"documentation_url": "https://developer.github.com/v3/gists/#create-a-gist"
}
Contributor guide
No contributing guide indexed for this repository
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 tracing the share flow that sends the POST request to https://api.github.com/gists and compare its request with GitHub's create-a-gist documentation linked in the report. Confirm the request supplies the required user and files fields, then verify sharing no longer produces the 422 alert.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github
- Domain
- api, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100