When I tried to deploy firebase functions, the process of loading credential file occurs an error:
Detailed stack trace: Error: Failed to read credentials from file C:\Users\kracc\Desktop\code\glint-server\firebase-account.json: Error: ENOENT: no such file or directory, open 'C:\Users\kracc\Desktop\code\glint-server\firebase-account.json'
Initialization code:
private connectFireStore(): void {
initializeApp({
credential: applicationDefault(),
databaseURL: process.env.FIRESTORE_URL,
})
}
folder structure:
and value of GOOGLE_APPLICATION_CREDENTIALS in .env.prod is ../../firebase-account.json
I can open C:\Users\kracc\Desktop\code\glint-server\firebase-account.json and it works well when I use emulator and local server
reason why I think the backslash matters is I saw it couldn't understand backslash included path in require function (require('./lib\\foo') got an error).
how can I deal with this situation?
Related
I am trying to create Jmeter HTML report through CSV with the help of command but getting below error in my CMD. Please help me what i need to change or enhance for getting the reults
2020-07-23 16:47:20,385 main ERROR Null object returned for File in Appenders.
2020-07-23 16:47:20,409 main ERROR Unable to locate appender "jmeter-log" for logger config "root"
An error occurred: Cannot read test results file : XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
errorlevel=1
Press any key to continue . . .
The main problem is Cannot read test results file and it occurs when you point JMeter to not-existing file or the file cannot be read (you don't have permissions to open the file in that location)
The other problem is with JMeter logging configuration, either your log4j2.xml file is broken or again you don't have proper read/write permissions to the folder where JMeter is installed. Try running the terminal with elevated rights and both should go away
I solved this problem by installing the latest version of Jmeter, 5.3. After that, no more logging/summarizer errors.
I am fetching data from local JSON file placed in assets folder.
export class DataService {
constructor(private http: HttpClient) { }
getLanguages(){
return this.http.get("./assets/data.json").toPromise();
}
}
I am getting data perfectly in development enviroment. But, when I build project using ng build --prod and publish to GoDaddy. I am getting following error
ERROR Error: Uncaught (in promise): e:
{"headers":{"normalizedNames":{},"lazyUpdate":null},"status":404,"statusText":"Not
Found","url":"http://example.com/assets/data.json","ok":false,"name":"HttpErrorResponse","message":"Http
failure response for
http://example.com/assets/data.json: 404 Not
Found","error":"\r\nhttp://www.w3.org/1999/xhtml\">\r\n\r\n\r\n404 - File or directory not
found.\r\n\r\n\r\n\r\n\r\n\r\nServer Error\r\n\r\n
\r\n 404 - File or
directory not found.\r\n The resource you are looking for
might have been removed, had its name changed, or is temporarily
unavailable.\r\n
\r\n\r\n\r\n\r\n"}
I've placed the JSON file correctly into assets folder in GoDaddy as well. but issue is with published version only.
I am trying to build open source tcl code.
I am hitting error below:
configure: error: Cannot find private header tclInt.h in /home/dave/src/tcl-builds/raw/tcl8.4.1
from the configure script I am not seeing the path mentioned above in error message..i am not sure from where this path is coming.
Any help?
FYI, I Tried this WAR : https://sourceforge.net/p/expect/bugs/30/ which did not help.
I have updated the neo4j.conf file but can't seem to get rid of this error after changing the file and restarting. I am just trying to load a json file through neo4j and have included the line apoc.import.file.enabled=true on the neo4j.conf but doesn't seem to be working for me, I'm still getting the error message:
Failed to invoke procedure 'apoc.load.json' Caused by
java.lang.RuntimeException : Import from files not enabled, please set
apoc.import.file.enabled=true in your neo4j.conf
I am using neo4jCE 3.2.3 and have used the right file path for the json file as it previously worked on my desktop computer (I'm just trying to replicate it on my laptop) and I am using apoc 3.2.0.4 version plugin. The procedure apoc.load.json is also there when I call all procedures directory.
I would like to ask, how can I load new module in Kamailio 4.1.2?
Actually, I have an issue, when I tried to compile my kamaiio.cfg
I've got error:
root#kamailio:/usr/local/# kamailio -c kamailio.cfg
loading modules under /usr/local/lib64/kamailio/modules/
0(25392) ERROR: <core> [sr_module.c:587]: load_module(): ERROR: load_module: could not find module <websocket> in </usr/local/lib64/kamailio/modules/>
0(25392) : <core> [cfg.y:3408]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 323, column 12-25: failed to load module
0(25392) ERROR: <core> [cfg.y:3272]: yyparse(): cfg. parser: failed to find command ws_handle_handshake
0(25392) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 1083, column 27: unknown command, missing loadmodule?
ERROR: bad config file (2 errors)
when I look physically to the /usr/local/lib64/kamailio/modules/ there is some modules, but websocket.so is missing.
So, how can I get and load module in Kamailio?
Thank you for help!
You haven't installed the module websocket. Edit modules.lst file in the source code directory and add websocket to include_modules variable. If you don't have modules.lst, just do:
make cfg
Alternative is to do:
make cfg include_modules="websocket"
By default, the build system for kamailio compiles and install only the modules that have the same dependencies as the core of the application. For websocket you need to install libunistring and openssl (libssl) devel packages.
Steps to load new module to Kamailio server. (Try if above answer is not working for you)
Check the modules is exist in the default module directly /usr/local/lib64/kamailio/modules.
If found, add loadmodule "module_name.so" in load module section in kamailio.cfg file.
If the module is not found in default module directory, you can check for the source code of that module in the default module source code directory /usr/local/src/kamailio-4.4/kamailio/modules.
If source code found, enter to the module directory. Then create modules' shared object file(.so) by following commands.
./configure
make
make test
make install
Then you will get a shared object file(.so). Copy that file into the default module directory. and load this module from the kamailio.cfg file as mentioned in step 1.
If module source code does not exist in the default source code directory, You need to download the source code from the web. And follow step 3 and 4.