DevLeonardoCommunity / DevLeonardoCommunity/github-stats

GraphQL Query Fails with Status Code 200 on the Stats Page While Running Locally.

Open
#64 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
82
Forks
41
PR merge metrics
No merged PRs in 30d

Description

## Issue Description

### Description:
I'm encountering an issue when making a GraphQL query to the following endpoint:

**Request URL:** https://api.github.com/graphql
**Request Method:** POST
**Status Code:** 200 OK

However, the response I receive is:

```json
{
"data": {
"user": null
},
"errors": [
{
"type": "INTERNAL",
"message": "Something went wrong while executing your query. Please include `C50A:6791:B4B973:BCA94B:650F16BA` when reporting this issue."
}
]
}

```
## Steps to Reproduce

- Run the github-stats project locally.
- Navigate to the page `stats/(username)`.
- Open the browser's developer tools and check the network tab for requests.

## Expected Result

The expected result is that the query should fetch responses, similar to the hosted site: [https://public-github-stats.vercel.app/stats/(username)](https://public-github-stats.vercel.app/stats/(username)).

## Screenshots or Videos (Optional)

You can view the screenshots of the issue:

![Screenshot 1](https://github.com/Balastrong/github-stats/assets/35479077/35693684-ce63-4552-89ea-00765ab62a7b)
![Screenshot 2](https://github.com/Balastrong/github-stats/assets/35479077/b8de6082-3bc5-4c11-9d11-bde229923915)

## Additional Information

Please indicate if you've used the search function to check if a similar issue already exists. Additionally, let us know if you'd like to work on resolving this issue.
```

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.