Typesafe stack not get project template - Exception fetching from github Unexpected response code: 403 - github

I'm trying typesafe stack.
Yesterday, I can get project template of typesafe stack.
$sudo g8 typesafehub/akka-java-maven
Today: I can't get project template.
$sudo g8 typesafehub/play-java
Error:
Exception fetching from github Unexpected response code: 403
{"message":"Missing or invalid User Agent string. See http://developer.github.com/v3/#user-agent-required"}

I think that github have changed their API rules.
I have seen a similar problem cited by someone using telegr.am .
I will try to have a look at how to control the user agent sent, if I get a chance today.
Only sorry to not have a complete solution for you straight away.

As a workaround:
1. Clone the github repo into your computer
2. Upgrade to the latest giter8 ( see https://github.com/n8han/giter8/blob/master/notes/0.5.0.markdown)
3. Check where the new giter8 has been installed, for me it was /home//bin/g8
4. Execute the local template with the new giter8
/home/<username>/bin/g8 file://home/<username>/path/to/the/template.g8

Related

Cannot start the application. TypeError: Cannot read property 'definition' of undefined at getFieldsJsonSchemaFor

I'm getting an extremely weird error when trying to npm start my loopback application. I literally did nothing to the code and then this all of a sudden started to happen
Cannot start the application. TypeError: Cannot read property
'definition' of undefined
at getFieldsJsonSchemaFor (/Users/vikramkhemlani/Desktop/loopback/node_modules/#loopback/repository-json-schema/dist/filter-json-schema.js:101:64)
I have the same exact code in another file (which i actually created a git repo from using this repo) but this one is throwing this error for some reason
I went through the same issue.
Apparently there are caches which need to clean up before starting the application. (Expired caches also appear in openapi before I get into this issue)
The project needs to be clean and re-install packages by following:
npm run clean
npm install
I have the same problem.
However, I solved it when I tried the following.
delete node_modules directory.
npm install.
Hello from the LoopBack team 👋
This may be a bug in LoopBack introduced by recent changes. Please create a small application reproducing the problem (see our Bug reporting instructions) and open a new GitHub issue in https://github.com/strongloop/loopback-next/issues/new

Error occurred while starting the build in Openshift 3

I have been trying to deploy a war file as an OpenShift project. The server used is jboss-webserver30-tomcat8. I have followed the below steps -
Put ROOT.war file under 'deployments' directory in local system.
Upload the changes in github.
Create a new JAVA project in OpenShift 3 and provide the github repository details.
No automatic build or deployment starts. On manually clicking on Start Build button, the below error is displayed:
An error occurred while starting the build. Reason: Error resolving
ImageStreamTag jboss-webserver30-tomcat8-openshift:1.2 in namespace
openshift: unable to find latest tagged image
Please suggest how can I resolve the error.
This is an issue with how the jboss-webserver30-tomcat8-openshift imagestream is defined in the cluster. We are working to correct this, it is not currently importing the correct set of tags and as a result the 1.2 tag was stopped being a valid tag, when it should be.
However the short term solution is change your buildconfig to reference one of the tags that has a valid image reference associated (e.g. 1.3) instead of the 1.2 tag it is currently referencing. Your build should then be able to run.
A (temporarily) unavailable builder image may be related to this platform upgrade that correlates with the time of posting your question.
Generally, the best place to check for any incident reports or scheduled maintenance is the Status Page (Starter | Pro clusters; it's linked in the web console too, in the upper right corner of the interface).
If this does not seem to be related (e.g. you're not on the starter-us-west-2 cluster where the platform upgrade is taking place) or persists after the maintenance is over, I would encourage you to check the open issues, and log a new bug report, if it's not in the list.
Thank you.

Ionic Cloud: Getting Error Registry returned 404 for Get

I keep getting this error in my output when trying to package iOS through Ionic cloud "Error: Registry returned 404 for GET on https://registry.npmjs.org/[MyAppName]". I've followed a few other forum posts that I could find to no avail. Any help would be much appreciated!
in package.json you have [MyAppName] as package or something like that, which when trying to fetch from npmjs.com its not there since you havent publish it, post package.json to check it.
I was using [MyAppName] as a placeholder for my physical app name; for the post. The issue turned out to be the Cordova plugins directory.
To resolve I ran:
ionic state clear --plugins
This, however, resulted in only partial removal of the plugins. I further had to manually delete the rest. Finally I ran:
ionic state restore --plugins
I can build successfully now.

Error creating template PredictionIO

I've created a lot of templates before as by now I was creating the Recommendation following the suggested steps.
$ pio template get PredictionIO/template-scala-parallel-recommendation Foo
Getting this error:
[ERROR] [Template$] Either PredictionIO/template-scala-parallel-universal-recommendation is not a valid GitHub repository, or it does not have any tag. Aborting.
How I fix this and why is this happening?
EDIT:
My Prediction version 0.9.5. Using Ubuntu
It seems that happens when you have made a pio deploy of another template before pio template get, so you have to shutdown the eventserver default port 7070 as:
$ lsof -wni tcp:7070
$ kill -9 PID
This solved the problem.
I had this issue but this google group post had my solution. Basically pio template get is cloning a repository under the covers, so it can have git-related issues.
Check to see if you can access https://api.github.com/ from your web browser. If not, check the google group post.
Also there is no need to do pio template get, just clone it from github. The Universal Recommender is kept up-to-date in its home repo here: https://github.com/actionml/template-scala-parallel-universal-recommendation/tree/v0.3.0
Notice v0.3.0 is nearing release but is not in the template gallery yet.

How to update eclipse, though some repositories cannot be found

For some time now, I want to use the update functionality of eclipse. But every time, some (maybe obsolete) repositories cannot be found.
Still I want the other parts to update, but this error just blocks everything.
How can I work around that problem, i.e. modify the list of checked repositories?
Proxy settings are definitely correct, because 'Install new software' works fine.
Error Message:
Some sites could not be found. See the error log for more detail.
HTTP Server 'Service Unavailable': org.apache.maven/content.xml
HttpClient connection error response code 503.
No repository found at maven.apache.org.
No repository found at subclipse.tigris.org/.
No repository found at github.com/cbeust/testng-eclipse.git.
No repository found at download.eclipse.org/mat/1.0/update-site/.
No repository found at download.eclipse.org/tools/orbit/downloads/drops/R20100519200754/updateSite/.
HTTP Server 'Service Unavailable': org.apache.maven.plugins/content.xml
HttpClient connection error response code 503.
No repository found at github.com/cbeust/testng-eclipse.
No repository found at beust.com/eclipse.
Unable to read repository at dev2devclub.bea.com/updates/eclipse-3.3/wls-plugins/content.xml.
The server dev2devclub.bea.com failed to respond
(http:// and https:// removed due to hyperlink restriction)
From the About-dialog:
Version: Helios Service Release 2 /
Build id: 20110301-1815
In the Preferences, type update into the search box at the top. Select Available Update Sites and there you can uncheck or remove the sites you don't want any more.