# github 通知有蓝点，但是打开什么都没有怎么办？

**URL:** <https://forum.beginner.center/t/topic/2218>\
**Category:** 🛠工具与编程\
**Tags:** github\
**Created:** [2025 年10 月 6 日 02:59 UTC](https://forum.beginner.center/t/topic/2218 "2025-10-06T02:59:25Z")\
**Posts on this page:** 1\
**Page:** 1

## AI 生成的摘要

The user is encountering an issue where their GitHub notification icon has a blue dot indicating new notifications, but when they click it, there are no notifications displayed. They provided a solution involving creating a token with notification permissions, pasting it into the browser console on the GitHub notifications page, and running a specific JavaScript code snippet to mark all notifications as read. The code uses the GitHub API to send a PUT request to the notifications endpoint, which clears the blue dot. The user also mentioned potential errors and their meanings, such as 'missing atad' and 'missing sutats', indicating the code might not be functioning as intended.

<div class="post-metadata">

作者： ![doggie](https://forum.beginner.center/user_avatar/forum.beginner.center/doggie/32/550_2.png) [@doggie](https://forum.beginner.center/u/doggie)\
发布日期： [2025 年10 月 6 日 02:59 UTC](https://forum.beginner.center/t/topic/2218/1 "2025-10-06T02:59:25Z")

</div>

# 前言

如图所示，我的github通知logo一直有个蓝点提示，但是点进去一看什么都没有

 ![image](https://discoursecdn.beginner.center/original/2X/c/cfb23e1f4dfca71078824f0d4d529cd2fdf8a571.png)

# 解决方案

[在github提交issue后](https://github.com/orgs/community/discussions/175514)，很快就有人帮助了，先把解决办法写下来，原因放在后面

- [先去创建一个token](https://github.com/settings/tokens/new) ，权限勾上notification，
- 然后打开[github通知页](https://github.com/notifications) ，打开浏览器开发者模式 (`F12` or `Ctrl+Shift+I` )，打开终端console
- 

 ![image](https://discoursecdn.beginner.center/original/2X/7/78b473fb0228d62ff4c64ee41f568bd241b52045.png)

在console里黏贴这些代码，然后回车

```auto
    const token = "你刚刚创建的token黏贴在这里";
    
    fetch('https://api.github.com/notifications', {
      method: 'PUT',
      headers: {
        'Accept': 'application/vnd.github+json',
        'Authorization': `Bearer ${token}`
      },
      body: JSON.stringify({}) // An empty body marks all notifications as read.
    }).then(response => {
      if (response.status === 205) {
        console.log('✅ 成功了！通知logo上的小蓝点应该已经消失了，可以把token删掉了');
      } else {
        console.error('❌ Request failed. Status:', response.status);
        response.json().then(data => console.error('Error details:', data));
      }
    }).catch(error => console.error(' Bummer, there was a network error:', error));

```

# 原因分析

That blue dot in the inbox means GitHub thinks you still have an unread notification. If the notification itself has been cleared or the related issue was deleted, the counter can sometimes get stuck.

The simplest way to reset it is to open your notifications page and click **Mark all as read** in the top right. That clears the unread state across all repos. If the dot goes away after refreshing, the issue was just a stale entry.

# 参考

[there is a blue dot in my inbox, but i can’t find nothing in notification page · community · Discussion #175514](https://github.com/orgs/community/discussions/175514)
