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

ls workaround: (was Creating new project: 500 exception) #170

Closed
JoyMonteiro opened this issue Oct 12, 2015 · 10 comments
Closed

ls workaround: (was Creating new project: 500 exception) #170

JoyMonteiro opened this issue Oct 12, 2015 · 10 comments
Milestone

Comments

@JoyMonteiro
Copy link

Hello,

I tried creating a new unfiltered project using the instructions in
http://unfiltered.databinder.net/Try+Unfiltered.html

It always seems to die with a 500 exception.

I then tried
g8 http://github.com/unfiltered/unfiltered-netty.g8

and it gave me a 301 "Moved Permanently" exception. I verified that that URL exists.

If I try
g8 git://github.com/unfiltered/unfiltered-netty.g8

I again get a 500 Unexpected response error.

However,
g8 n8han/giter8

works perfectly.

Any pointers as to what I'm doing wrong?

I also tried the variants
g8 softprops/unfiltered
g8 unfiltered/unfiltered-netty

as well, and again it fails with the 500 exception.

TIA,
Joy

@maxmithun
Copy link

I got a similar error while creating a project from template i have locally
g8 file:///Users/Mithun/template.g8

Unexpected response status: 500

When i disable my internet and try to create the project i came across that it is trying to connect to the URL http://ls.implicit.ly/api/1/latest/giter8-plugin?user=n8han

Accessing the URL through browser will return Internal Server Error which HTTP response code 500

@JoyMonteiro
Copy link
Author

I'm getting a similar problem with local repos too, though the url is:
http://ls.implicit.ly/api/1/latest/unfiltered?user=unfiltered

Any workaround that you know of?

TIA,
Joy

@maxmithun
Copy link

I am not able to sort from where this URL is called 😞 or is there a way to disable checking for latest API.

Can you please assign a bug label to this issue

@maxmithun
Copy link

@JoyMonteiro The parameter giter8_version = ls(giter8-plugin, n8han) in the default.properties file which was causing problem ( accessing http://ls.implicit.ly/api/1/latest/giter8-plugin?user=n8han ) for me. i commented out the param in my template and it worked fine

can you check for the parameter giter8_version = ls(unfiltered, unfiltered) in template properties file.

All the best 👍

@andersthorbeck
Copy link

I had the same issue, when trying to run

$ g8 unfiltered/unfiltered

The workaround @maxmithun described worked for me as well. I cloned https://github.com/unfiltered/unfiltered.g8 into a local repo, changed the value of the property unfiltered_version in file src/main/g8/default.properties from
unfiltered_version = ls(unfiltered, unfiltered) to unfiltered_version = 0.8.4.

Then I could run g8 like so

$ g8 file:///path/to/local/unfiltered.g8

without problem.

@xuwei-k
Copy link
Member

xuwei-k commented Apr 13, 2016

@eed3si9n
Copy link
Member

We should catch ls(...), warn the user, and let them enter the version number manually.

@eed3si9n eed3si9n added this to the 0.7.2 milestone Nov 15, 2016
@eed3si9n eed3si9n changed the title Creating new project: 500 exception ls workaround: (was Creating new project: 500 exception) Nov 15, 2016
@foxmk
Copy link
Contributor

foxmk commented Mar 25, 2017

Should we close the issue, since we are not using implicit.ly anymore?

@softprops
Copy link
Contributor

+1

@eed3si9n
Copy link
Member

We might need to still warn the user if it's used in a template.

eed3si9n added a commit that referenced this issue Mar 29, 2017
eed3si9n added a commit that referenced this issue Jun 30, 2017
Workaround for issue #170
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

7 participants