DevLeonardoCommunity / DevLeonardoCommunity/github-stats

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

Đang mở
#64 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
TypeScript
Star
82
Fork
41
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## 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.
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.