Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File push not working #31

Open
mattgibson opened this issue May 25, 2015 · 8 comments
Open

File push not working #31

mattgibson opened this issue May 25, 2015 · 8 comments

Comments

@mattgibson
Copy link

$ gemnasium dependency_files push -f=Gemfile
Sending files to Gemnasium: 404 Not Found: invalid character 'p' after top-level value

Same thing with Gemfile.lock. Any idea how to fix?

@gravis
Copy link
Member

gravis commented May 25, 2015

Hi Matt,

Sorry for that, and the error message isn't really helping, we need to improve that.
I can see some fresh files on your projects, I assume you managed to upload them in the UI?
Could send us more details about your project and files on http://support.gemnasium.com? It will be easier to debug I think.
Thanks!

@bquorning
Copy link

Same issue here, no matter which files I push. I’m using the same command, gemnasium dependency_files push -f=Gemfile.lock

@andynu
Copy link

andynu commented Jul 30, 2015

I experienced this problem too. For me it was that I configured an existing project using the project name not the generated slug token. Check your .gemnasium.yml and make sure you used the slug not the project name.

@mbusch
Copy link

mbusch commented Aug 12, 2015

I experience the same issue on a few commands I've tried, e.g. gemnnasium e -f=Gemfile,Gemfile.lock and gemnasium p sync.

My configuration file, .gemnasium.yml looks like this:

api_endpoint: https://api.gemnasium.com
api_key: <api key from https://gemnasium.com/***/***/settings>
project_name: <a nice name chosen by myself>
project_slug: <project slug from https://gemnasium.com/***/***/settings>
project_branch: develop

As there might be misunderstandings about the project slug: This is no token-like string, but the organisation name followed by the project name, right?

@gravis
Copy link
Member

gravis commented Aug 12, 2015

The "slug" is either the project name (like "gemnasium/toolbelt"), or a 32 hex chars token if the project is private. Does it help?

@mbusch
Copy link

mbusch commented Aug 12, 2015

In my case it is the project name - as listed in the settings page. I did configure this in the YML file. Thus, the issue remains:

$ gemnasium e -f=Gemfile,Gemfile.lock            
404 Not Found: invalid character 'p' after top-level value

@gravis
Copy link
Member

gravis commented Aug 12, 2015

Ok, then the project is public :) Could you give me the project name to check the logs this afternoon? Thanks

@mbusch
Copy link

mbusch commented Aug 12, 2015

Unfortunately the project isn't public:

12-08-2015 16-14-04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants