Comments (17)
Try to capture the actual response code from github. It's not returning a 2xx response, it would be much useful to know what the code actually is.
from ghup.
any idea how to find out :-)
i am not familiar with ruby.
from ghup.
Just before this line:
die("GitHub doesn't want us to upload the file.") unless res.class == Net::HTTPCreated
add:
puts res.inspect
puts res.body.inspect
from ghup.
this is the output
Net::HTTPNotFound 404 Not Found readbody=true
"{"message":"Not Found"}"
GitHub doesn't want us to upload the file.
from ghup.
What is the output from this command?
git config --get remote.origin.url
from ghup.
https://github.com/DonDavici/DreamPlex.git
from ghup.
I just pushed a change (f8cf726), does it work now?
from ghup.
sorry. still the same problem :-(
from ghup.
Did you supply a valid token to the script? (see the readme)
from ghup.
sure. i tried also manually within the script. the token is available.
from ghup.
More debugging. In the get_http_request
function (line 38+) add:
puts uri.inspect
puts req.inspect
from ghup.
you mean puts request.inspect ... right?
this ist the output:
URI::HTTPS:0x8fa8c34 URL:https://api.github.com/repos/DonDavici/DreamPlex/downloads>
Net::HTTP::Post POST>
Net::HTTPNotFound 404 Not Found readbody=true>
"{"message":"Not Found"}"
GitHub doesn't want us to upload the file.
from ghup.
Yes. Add also this:
puts params.inspect
from ghup.
URI::HTTPS:0x8a17f54 URL:https://api.github.com/repos/DonDavici/DreamPlex/downloads>
Net::HTTP::Post POST>
"{"name":"DP_MainMenu.py","size":"34713","description":"","content_type":"text/x-python"}"
Net::HTTPNotFound 404 Not Found readbody=true>
"{"message":"Not Found"}"
GitHub doesn't want us to upload the file.
from ghup.
If using OAuth, you'll need a token with 'public_repo' scope for a user with push access to the repo in order to create a download via the API.
from ghup.
thank you very much. that solved the problem for me. :-)
from ghup.
I've added a note to the readme which scopes the OAuth token must include.
from ghup.
Related Issues (9)
- Typo in script
- Uploads are corrupt HOT 7
- regex error when anonymous git clone
- Get github link rather than Amazon one HOT 3
- Please give an error if Ruby < 1.9 used HOT 1
- Integrate oauth token creation into the script HOT 1
- Adding a parameter for the file "Description"
- Add optional certificate verification HOT 5
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.
from ghup.