omooc.py's Issues
The requested URL returned error: 403
@yzha3917
@dudutang
@zxcbbn
@xiaokechenchen
@cp4
@tonyyet
The requested URL returned error: 403
问题出现过程与尝试
设置 GitHub GitBook 双推
按照群里的 gitbook 双推技巧 设置 git push -u origin master 后出现群中 git_push_confilct提到的问题
先尝试git pull
fatal: unable to access 'https://git.gitbook.com/zxcbbn/pythoncamp0.git/': The requested URL returned error: 403
后尝试 git_push_confilct 的 git push -u gitbook +master 未出现文中所说
push至gitbook时,需要输入gitbook的用户名与密码。用户名与密码在gitbook账户的Profile-Username、Password里面查看与设置。
fatal: 'gitbook' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
在 GitHub 中搜索问题
按照 GitHub 帮助
并未出现文中提到的
When prompted for a username and password, make sure you use an account that has access to the repository.
再次尝试 git push -u origin master
Username for 'https://github.com': zxcbbn
Password for 'https://[email protected]':
To https://github.com/zxcbbn/pythoncamp0.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/zxcbbn/pythoncamp0.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
尝试 git push -u gitbook +master
Username for 'https://git.gitbook.com': zxcbbn
Password for 'https://[email protected]':
remote: Forbidden
fatal: unable to access 'https://git.gitbook.com/zxcbbn/pythoncamp0.git/': The requested URL returned error: 403
无法解决问题,不知道下一步往哪方面找问题
update 3/21/2015 可以推送gitbook,但不能生成
Tweaking book.json
Installing plugins
Install plugins in /tmp/book
Install plugin autocover from npm (gitbook-plugin-autocover) with version *
Install plugin mathjax from npm (gitbook-plugin-mathjax) with version *
[email protected] node_modules/gitbook-plugin-mathjax
Successfully installed plugins!
Building Site, will upload
Starting build ...
Cannot read property 'text' of undefined
根据Cannot read property 'text' of undefined搜索
得到 TypeError: Cannot read property 'text' of undefined #135
尝试删除 summary 中的空行,git push -u gitbook成功
备注
网络环境:没有变化,使用 shadowsocks for Mac, Global Mode
操作系统:OS X Yosemite 10.10.2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.