Skip to content

Commit b0c47e2

Browse files
committed
oh no
1 parent 3dc1906 commit b0c47e2

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

cs50.dev.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,32 @@ If on a corporate or school network that blocks any of the above, you might need
163163

164164
## Troubleshooting
165165

166+
### I'm seeing "Oh no, it looks like you are offline" error message.
167+
168+
First of all, make sure all the required [domains](/#domains) are not blocked by your device or internet environment.
169+
170+
Check that you have a stable internet connection and that your company network is not blocking the connection. If possible, check logging for rejected connections on your device.
171+
172+
If you see rejected connections, make sure the domains documented by the `/meta` REST API endpoint are not blocked by your firewall. For more information, see ["REST API endpoints for meta data."](https://docs.github.com/en/rest/meta/meta#get-github-meta-information)
173+
174+
You can run this command in your terminal to get the list of domains required by GitHub Codespaces:
175+
176+
```bash
177+
curl -L \
178+
-H "Accept: application/vnd.github+json" \
179+
-H "Authorization: Bearer <YOUR-TOKEN>" \
180+
-H "X-GitHub-Api-Version: 2022-11-28" \
181+
https://api.github.com/meta
182+
```
183+
184+
Follow [this instruction](/github/#personal-access-token) to generate a GitHub personal access token.
185+
186+
Alternatively, to get the list of domains required by GitHub Codespaces, execute the following command using GitHub CLI:
187+
188+
```bash
189+
gh api meta | jq .domains.codespaces
190+
```
191+
166192
### How to monitor global variables in debugger
167193

168194
In debug50's **RUN AND DEBUG** pane, there's a section labeled **WATCH**. You can add expressions to this section, and the debugger will show you the values of these expressions as you step through the program. The expressions can include global variables and array names.

0 commit comments

Comments
 (0)