firebase cli tools firebase init not working - firebase-hosting

I´m trying to run the firebase cli to create a host project but is returning the following ->
Platform Information
On Windows
Steps to reproduce
firebase init
Expected behavior
create config file firebase.json at project root
Actual behavior
You're about to initialize a Firebase project in this directory:
D:\projetos\portfolio_project\jobs\templates
[info]
=== Project Setup
[info]
[info] First, let's associate this project directory with a Firebase project.
[info] You can create multiple project aliases by running firebase use --add,
[info] but for now we'll just set up a default project.
[info]
[debug] [2018-10-18T15:03:51.589Z] >>> HTTP REQUEST GET https://firebase.googleapis.com/v1beta1/projects?page_size=100
[debug] [2018-10-18T15:03:53.158Z] <<< HTTP RESPONSE 200
[debug] [2018-10-18T15:03:53.795Z] TypeError: Cannot read property 'projectId' of undefined
at C:\Users\adrie\AppData\Roaming\npm\node_modules\firebase-tools\lib\init\features\project.js:48:23
at arrayMap (C:\Users\adrie\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\lodash\lodash.js:639:23)
at Function.map (C:\Users\adrie\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\lodash\lodash.js:9556:14)
at C:\Users\adrie\AppData\Roaming\npm\node_modules\firebase-tools\lib\init\features\project.js:46:21
at process._tickCallback (internal/process/next_tick.js:68:7)
[error]
[error] Error: An unexpected error has occurred.
Anyone?

Try going to https://console.firebase.google.com/ and setting up a project. After I built a project in the firebase console it linked up just fine when doing a firebase init.

I realized that I have 2 google accounts and I was trying to access through firebase cli the one that had no firebase project.
I created a new project with the user account I´m using in the firebase-cli and access was granted as expected.

Related

Action Not Found For request 'GET /' These routes have been tried, in this order: Play Framework

Migrating from sbt 0.13.0 to 1.3.0,scala 2.10.3 to 2.12.3 and play Version from 2.2.6 to 2.6.6
Below is the description of my problem
Caused by: java.lang.RuntimeException: java.io.IOException: resource not found on classpath: conf/application.conf #6507
I got the above error so I understood that application.conf file is missing so added application.conf an empty file in conf directory in project root directory . Actually my project has application.conf file under : project/modules/core/conf folder.
After adding a conf file under root directory I am getting the below error:
http://localhost:9000 - Action Not Found
For request 'GET /'
These routes have been tried, in this order:
In sbt console :
[warn] p.db.DBModule - Configuration not found for database: No configuration setting found for key 'db'
[info] p.a.h.EnabledFilters - Enabled Filters (see https://www.playframework.com/documentation/latest/Filters):
play.filters.csrf.CSRFFilter
play.filters.headers.SecurityHeadersFilter
play.filters.hosts.AllowedHostsFilter
[info] play.api.Play - Application started (Dev) (no global state)
Try starting sbt with the flags which point it to the correct application.conf.
Include the flag -Dconfig.resource="path/application.conf" when starting the project.
That should sort the DB errors if your config is correct...
https://www.playframework.com/documentation/2.8.x/ConfigFile?
This works for me
play.filters.hosts.allowed += "."

SAP WEB IDE Error when building application

In SAP WEB IDE I'm building my project (Right-Clck + Build).
This was working correctly but now it's erroring with:
4​:43:07 PM (Build) Build started. 4:43:10 PM (DIBuild) Build of /rsa-complete-survey in progress 4:43:11 PM (DIBuild) [INFO] Retrieving source code
[INFO] Preparing node environment
[INFO] package.json not modified, skipping npm installation
[INFO] Using recently cached node_modules
[INFO] Node environment ready
4:43:15 PM (DIBuild) grunt-cli: The grunt command line interface (v1.2.0)
Fatal error: Unable to find local grunt.
If you're seeing this message, grunt hasn't been installed locally to
your project. For more information about installing and configuring grunt,
please see the Getting Started guide:
http://gruntjs.com/getting-started
[INFO] Build finished in 4 seconds
Any ideas?
Should to be a temporary problem. Others are reporting similar issues as well. To join the discussion, click here to get invited and visit the channel #sapwebide.

Cannot Build and Install Html App using Web Works 2.1 on Device

I'm new in BB Development and I want to test my application on Z3 Device ...
I installed WebWorks 2.1
Then request the bbidtoken.csk file, and I created author.p12 using WebWorks UI.
I enabled Developer Mode on Device.
Also I generated debug token debugtoken.bar using Command line tool.
I deployed debugtoken.bar on my Z3 device.
All files author.p12, barsigner.db, bbidtoken.csk, debugtoken.bar in this path:
"C:\Users\user1\AppData\Local\Research In Motion"
I created Project using WebWorks UI and by default its located in "C:\Users\user1\WebWorks Projects\Project1"
I tried to Build my "Project1" app from WebWorks UI, but this error comes to me:
[INFO] Populating application source
[INFO] Parsing config.xml
[INFO] Generating output files
[INFO] Error: Debug token does not exist or not a file
[INFO] Error: Debug token does not exist or not a file
[ERROR] Native Packager exception occurred
[ERROR] Native Packager exception occurred
An error has occurred
What did I forget to do????!?!
Rename your debugtoken.bar to blackberry10debugtoken.bar and place it inside .cordova folder under %user% and build again. This is one time activity after this you can use BB10 Webworks web interface for direct building and installation of application.Please do not forget to mark it as answer if you got this as your solution :)
I hope it helps!!!

Why is UnknownHostException: downloads.typesafe.com when running activator ui?

I am getting the following exception after starting activator ui from command line.
Checking for a newer version of Activator (current version 1.2.2)...
... our current version 1.2.2 looks like the latest.
Found previous process id: 2988
FOUND REPO = activator-local # file:////C:/shakti/scala/typesafe-activator-1.2.2
/activator-1.2.2/repository
Play server process ID is 5712
[info] play - Application started (Prod)
[info] play - Listening for HTTP on /127.0.0.1:8888
[ERROR] [06/15/2014 05:46:13.851] [default-akka.actor.default-dispatcher-3] [ActorSystem(default)] Failed to download http://downloads.typesafe.com/typesafe-activator/index/v2/index-07064250cfd1cc2444f19c731541332ccf93bc13.zip: sbt.TranslatedIOException: Error opening http://downloads.typesafe.com/typesafe-activator/index/v2/index-07064250cfd1cc2444f19c731541332ccf93bc13.zip: java.net.UnknownHostException: downloads.typesafe.com
[INFO] [06/15/2014 05:46:13.860] [default-akka.actor.default-dispatcher-3] [akka://default/user/template-cache] Unable to check remote server for template updates.
[INFO] [06/15/2014 05:46:19.155] [default-akka.actor.default-dispatcher-2] [akka://default/user/home-socket-1] Firing up web socket
What could be the reason and how to fix it?
Seems it was an intermittent issue due to some network problem. It is working fine now.
I resolve this prolem using ./activator ui instead using activator ui on linux

Pushing play 2.0.x app to Heroku issue

I'm trying to push a locally working app to Heroku but i'm getting this error
[info] Compiling 20 Scala sources and 12 Java sources to /tmp/build_mhfyee4j841a/target/scala-2.9.1/classes...
[error] /tmp/build_mhfyee4j841a/target/scala-2.9.1/src_managed/main/views/html/showitem.template.scala:74: value showItem is not a member of controllers.ReverseApplication
[error]
[error] ^
[error] one error found
[error] {file:/tmp/build_mhfyee4j841a/}quoiacheter/compile:compile: Compilation failed
[error] Total time: 25 s, completed Dec 8, 2012 8:07:38 PM
! Failed to build app with sbt
! Heroku push rejected, failed to compile Play 2.0 - java app
as i said before the app is running fine locally and you can see here the part that's supposed to have an error in showitem template
<p>
#for(p <- Items.getRelated(item.categories.get(0).id) ) {
}
</p>
Heroku think that i'm calling #routes.Application.showItem instead of #routes.Items.showItem ! you can see here the concerned part of my routes file:
...
# ITEMS
GET /items/:id/:title controllers.Items.showItem(id: Long,title: String)
...
The only reason this should happen is if your git repository is not up to date and somehow in the git repo is calling Application, not Items. Please check you really committed your changes to git locally.