___|  _ \   |  |    |   |_ _|\ \     / ____|
 |     |   |  |  |    |   |  |  \ \   /  __|
 |   | |   | ___ __|  ___ |  |   \ \ /   |
\____|\___/     _|   _|  _|___|   \_/   _____| 

 --- A GOPHER-LIKE INTERFACE FOR HIVE BLOCKCHAIN ---

Solve GitHub can't Show images

BY: @zcwade | CREATED: Feb. 26, 2020, 1:13 p.m. | VOTES: 0 | PAYOUT: $0.00 | [ VOTE ]

Recently, the image can't be loaded when I log in to GitHub. The GitHub page without the image looks very uncomfortable. ( Only give 9 points )

[IMAGE: https://upload-images.jianshu.io/upload_images/7622302-2a40c0ff70d772a9.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240]

First of all, I do the same as most people do. Swipe the page several times with a shake of my small hand, but it doesn't change; Oh My God ~~~~!

Don't waste precious time, the solution:

  1. Open command window terminal (MacOS as example), input as follow:

shell sudo vim /etc/hosts
[IMAGE: https://upload-images.jianshu.io/upload_images/7622302-63246ed9f065a975.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240]

2.Through the vim command (press 'ESC' and then 'i' to enter the editing mode), fill in the relevant contents to the open file as follow:

[IMAGE: https://upload-images.jianshu.io/upload_images/7622302-cfd04d057a5d76cc.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240]

Key input segment (for copy)

# GitHub Start
192.30.253.112    github.com
192.30.253.119    gist.github.com
199.232.28.133    assets-cdn.github.com
199.232.28.133    raw.githubusercontent.com
199.232.28.133    gist.githubusercontent.com
199.232.28.133    cloud.githubusercontent.com
199.232.28.133    camo.githubusercontent.com
199.232.28.133    avatars0.githubusercontent.com
199.232.28.133    avatars1.githubusercontent.com
199.232.28.133    avatars2.githubusercontent.com
199.232.28.133    avatars3.githubusercontent.com
199.232.28.133    avatars4.githubusercontent.com
199.232.28.133    avatars5.githubusercontent.com
199.232.28.133    avatars6.githubusercontent.com
199.232.28.133    avatars7.githubusercontent.com
199.232.28.133    avatars8.githubusercontent.com
 # GitHub End

3.Via the vim command (press 'ESC', then input': WQ'), and then press 'enter', it is finished. Reopen the page, the images can be loaded, the problem has been solved and it's over.

[IMAGE: https://upload-images.jianshu.io/upload_images/7622302-221fe3f38ec5c7bb.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240]

Root Cause:

Use Google browser to access the GitHub webpage without pictures. Click ‘F12’, which has been silent for a long time, to see the following scene:

[IMAGE: https://upload-images.jianshu.io/upload_images/7622302-fa7cb08b8dd1d0d6.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240]

All kinds of connection errors are rejected. That must be a * * URL parsing error**,need to redirect it to the corresponding IP address.Open the URL ipaddress.com/and put each wrong URL into it to get the corresponding IP address, and collect it (solve one by one, and finally solve all the errors).

[IMAGE: https://upload-images.jianshu.io/upload_images/7622302-1a271b0efefd41d1.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240]

Valuable need to be shared ~~~~!


Replies

@zcwade | March 6, 2020, 2:29 p.m. | Votes: 0 | [ VOTE ]

The First

[ BACK TO TRENDING ] [ BACK TO MENU ]
CMD>