gr2m / gr2m/github-project

Ignore "Content already exists in this project" error

Open
#89 0 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
36
Forks
10
PR merge metrics
No merged PRs in 30d

Description

### Please avoid duplicates

- [X] I checked [all open bugs](https://github.com/gr2m/github-project/issues?q=is%3Aissue+is%3Aopen+label%3Abug) and none of them matched my problem.

### Reproducible test case

_No response_

### Please select the environment(s) that are relevant to your bug report

- [ ] Browsers
- [ ] Node
- [ ] Deno

### Versions

latest

### What happened?

I haven't tried to reproduce it, but I got this error in a production app:

```
GraphqlResponseError: Request failed due to following response errors:
- Content already exists in this project
```

I assume it occurs when trying to add an issue or pull requse to a project that was already added, but I thought that theGraphQL API is already handling that gracefully. Maybe there is some racing condition?

### Would you be interested in contributing a fix?

- [ ] yes

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.