I am trying to preview the app in MFP 8 CLI. But it throws the below error :
Any help would be appreciated.
{ Error: ERRGETSERVER
at generateError (C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\mfpdev
-cli\node_modules\mdo-errors\lib\index.js:31:23)
at Object.module.exports.getError (C:\Users\IBM_ADMIN\AppData\Roaming\npm\no
de_modules\mfpdev-cli\node_modules\mdo-errors\lib\index.js:25:10)
at readServerProfiles (C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\m
fpdev-cli\node_modules\mdo-server-support\lib\profileIO.js:157:28)
at C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\mfpdev-cli\node_modul
es\mdo-server-support\lib\profileIO.js:81:7
at _fulfilled (C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\mfpdev-cl
i\node_modules\q\q.js:834:54)
at self.promiseDispatch.done (C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_mo
dules\mfpdev-cli\node_modules\q\q.js:863:30)
at Promise.promise.promiseDispatch (C:\Users\IBM_ADMIN\AppData\Roaming\npm\n
ode_modules\mfpdev-cli\node_modules\q\q.js:796:13)
at C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\mfpdev-cli\node_modul
es\q\q.js:556:49
at runSingle (C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\mfpdev-cli
\node_modules\q\q.js:137:13)
at flush (C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\mfpdev-cli\nod
e_modules\q\q.js:125:13)
errno: 131,
code: 'ERRGETSERVER',
description: 'An error occurred during an attempt to read the server profiles.
' }
Related
I got below error while trying to run my react-native app
Image of console (same content pasted below)
C:\My Projects\SmartBill\SmartBillApp>npx react-native run-windows --logging
i Verbose: ON
- Locating NuGet executableINFO: Could not find files for the given pattern(s).
Invoke-WebRequest : The underlying connection was closed: An unexpected error occurred on a send.
At line:1 char:90
+ ... lyContinue; Invoke-WebRequest https://dist.nuget.org/win-x86-commandl ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
eption
+ FullyQualifiedErrorId :
WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
× Locating NuGet executable
error Cannot read property 'toString' of undefined. Run CLI with --verbose flag for more details.
TypeError: Cannot read property 'toString' of undefined
at Object.runWindows [as func] (C:\My Projects\SmartBill\SmartBillApp\node_modules\react-native-windows\local-cli\runWindows\runWindows.js:67:61)
at process._tickCallback (internal/process/next_tick.js:68:7)
So, i tried to deploy my Express.Js app to my vps, but I get some error that refined to Error: getaddrinfo EAI_AGAIN undefined. The weird part is, it is doing just fine if I run this app on my localhost. Any body knows how to resolve this issue?
Here are the error log that I get.
events.js:187
throw er; // Unhandled 'error' event
^
Error: getaddrinfo EAI_AGAIN undefined
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:60:26)
Emitted 'error' event on Client instance at:
at Backoff.<anonymous> (/home/user/deploy-folder/app-api/node_modules/ldapjs/lib/client/client.js:1228:12)
at Backoff.emit (events.js:210:5)
at Backoff.backoff (/home/user/deploy-folder/app-api/node_modules/ldapjs/node_modules/backoff/lib/backoff.js:41:14)
at /home/user/deploy-folder/app-api/node_modules/ldapjs/lib/client/client.js:1214:15
at f (/home/user/deploy-folder/app-api/node_modules/ldapjs/node_modules/once/once.js:25:25)
at Socket.onResult (/home/user/deploy-folder/app-api/node_modules/ldapjs/lib/client/client.js:1016:7)
at Object.onceWrapper (events.js:300:26)
at Socket.emit (events.js:210:5)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3) {
errno: 'EAI_AGAIN',
code: 'EAI_AGAIN',
syscall: 'getaddrinfo',
hostname: 'undefined'
I assume that by now you discovered the error, but in this particular case it seems that the variable you are using to setup ldap is not stated or resolves to undefined.
The proper way to do it according to the documentation is this:
var ldap = require('ldapjs');
var client = ldap.createClient({
url: 'ldap://127.0.0.1:1389'
});
When I login Heroku in windows powershell,I am getting the following error:
C:\Program Files\heroku\client\node_modules\#oclif\errors\lib\index.js:29
throw err;
^t
CLIError: timed out
at Object.error (C:\Program Files\heroku\client\node_modules\#oclif\errors\lib\index.js:22:17)
at Timeout._onTimeout (C:\Program Files\heroku\client\node_modules\#heroku-cli\command\lib\login.js:27:38)
at listOnTimeout (internal/timers.js:531:17)
at processTimers (internal/timers.js:475:7) {
oclif: { exit: 2 },
code: undefined
}
What does it mean and how can I get rid of it?
I'm trying to run a react native app in expo, and after creating a blank app with expo init, when I cd into my project and do expo start, I get the following error:
events.js:282
throw er; // Unhandled 'error' event
^
Error: unable to resolve root /Users/myusername/Documents/native-app-name: failed to opendir(/Users/myusername/Documents/native-app-name): Operation not permitted
at BunserBuf.<anonymous> (/Users/myusername/Documents/native-app-name/node_modules/fb-watchman/index.js:95:23)
at BunserBuf.emit (events.js:305:20)
at BunserBuf.process (/Users/myusername/Documents/native-app-name/node_modules/bser/index.js:292:10)
at /Users/myusername/Documents/native-app-name/node_modules/bser/index.js:247:12
at processTicksAndRejections (internal/process/task_queues.js:79:11)
Emitted 'error' event on WatchmanWatcher instance at:
at Client.<anonymous> (/Users/myusername/Documents/native-app-name/node_modules/jest-haste-map/build/lib/WatchmanWatcher.js:130:10)
at Client.emit (events.js:305:20)
at BunserBuf.<anonymous> (/Users/myusername/Documents/native-app-name/node_modules/fb-watchman/index.js:107:12)
at BunserBuf.emit (events.js:305:20)
at /Users/myusername/Documents/native-app-name/node_modules/bser/index.js:249:12
at processTicksAndRejections (internal/process/task_queues.js:79:11) {
watchmanResponse: {
version: '4.7.0',
error: 'unable to resolve root /Users/myusername/Documents/native-app-name: failed to opendir(/Users/myusername/Documents/native-app-name): Operation not permitted'
}
}
Why might this be?
Try to move your project folder to a different place on your local. I just tried and worked for me.
Good day. Help me please.
There are some versions.
npm v3.10.6
node v4.5.
"gulp-file-include": "^0.14.0",
"gulp-remove-html": "^1.1.2"
There is part of gulpfile.js
fileinclude = require('gulp-file-include'),
gulpRemoveHtml = require('gulp-remove-html')
gulp.task('buildhtml', function() {
gulp.src(['app/*.html'])
.pipe(fileinclude({
prefix: '##'
}))
.pipe(gulpRemoveHtml())
.pipe(gulp.dest('dist/'));
});
There is result after running "gulp buildhtml". The problem appears today.
[11:31:46] Starting 'buildhtml'... [11:31:46] Finished 'buildhtml' after 8.83 ms events.js:141
throw er; // Unhandled 'error' event
^
Error: no writecb in Transform class
at afterTransform (C:\Projects\Projects\project1\node_modules\gulp-file-include\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:74:40)
at TransformState.afterTransform (C:\Projects\Projects\project1\node_modules\gulp-file-include\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:58:12)
at DestroyableTransform.fileInclude [as _transform] (C:\Projects\Projects\project1\node_modules\gulp-file-include\lib\index.js:49:9)
at DestroyableTransform.Transform._read (C:\Projects\Projects\project1\node_modules\gulp-file-include\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:159:10)
at DestroyableTransform.Transform._write (C:\Projects\Projects\project1\node_modules\gulp-file-include\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:147:83)
at doWrite (C:\Projects\Projects\project1\node_modules\gulp-file-include\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:313:64)
at writeOrBuffer (C:\Projects\Projects\project1\node_modules\gulp-file-include\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:302:5)
at DestroyableTransform.Writable.write (C:\Projects\Projects\project1\node_modules\gulp-file-include\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:241:11)
at write (C:\Projects\Projects\project1\node_modules\gulp\node_modules\vinyl-fs\node_modules\through2\node_modules\readable-stream\lib\_stream_readable.js:623:24)
at flow (C:\Projects\Projects\project1\node_modules\gulp\node_modules\vinyl-fs\node_modules\through2\node_modules\readable-stream\lib\_stream_readable.js:632:7)
at DestroyableTransform.pipeOnReadable (C:\Projects\Projects\project1\node_modules\gulp\node_modules\vinyl-fs\node_modules\through2\node_modules\readable-stream\lib\_stream_readable.js:664:5)
at emitNone (events.js:67:13)
at DestroyableTransform.emit (events.js:166:7)
at emitReadable_ (C:\Projects\Projects\project1\node_modules\gulp\node_modules\vinyl-fs\node_modules\through2\node_modules\readable-stream\lib\_stream_readable.js:448:10)
at emitReadable (C:\Projects\Projects\project1\node_modules\gulp\node_modules\vinyl-fs\node_modules\through2\node_modules\readable-stream\lib\_stream_readable.js:444:5)
at readableAddChunk (C:\Projects\Projects\project1\node_modules\gulp\node_modules\vinyl-fs\node_modules\through2\node_modules\readable-stream\lib\_stream_readable.js:187:9)
If you use Gulp 4.0 alpha 3, Downgrade to Gulp 4.0 alpha 2 with
npm install -S gulpjs/gulp#6d71a65