Coder Social home page Coder Social logo

levelui's Introduction

img

SYNOPSIS

A LevelDB GUI based on electron. See also the command line version.

SCREENSHOT

QUERY

img

CONNECT

img

INSERT

img

STATUS

Work in progress. Contributions welcome.

DEVELOPMENT

You need to rebuild leveldown so that it uses the correct C++ headers for electron.

$ npm install
$ cd node_modules/level/node_modules/leveldown
$ env HOME=~/.electron-gyp && node-gyp rebuild --target=0.28.1 --arch=x64 --dist-url=https://atom.io/download/atom-shell

Then go ahead and start the program.

$ npm start

levelui's People

Contributors

brianleroux avatar heapwolf avatar hyojin avatar jerrysievert avatar juliangruber avatar kmyl avatar luk- avatar soldair avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

levelui's Issues

unable to npm install

CXX(target) Release/obj.target/leveldown/src/batch.o
In file included from ../src/batch.cc:3:
In file included from ../../nan/nan.h:192:
../../nan/nan_maybe_43_inl.h:112:15: error: no member named 'ForceSet' in 'v8::Object'
return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
~~~ ^

I don't want the /auth folder in my project

Hello there

When I start levelweb in my project folder with sudo levelweb ./app/assets/db/level/development then it generates a folder called /auth in my project folder when missing.

But I have installed levelweb globally so I want that auth folder there where levelweb resides globally for any projects on my machine. In my case that's near /opt/node/bin/levelweb. How can I configure that?

atom-shell compatible leveldb?

just curious about "You need to rebuild leveldown so that it uses the correct C++ headers for atom-shell.", why is this?

error when using level-sublevel

trying to run levelweb when using level-sublevel throws the following error:

events.js:72
throw er; // Unhandled 'error' event EncodingError: Unexpected token ÿ
at ReadStream._onData (/usr/local/lib/node_modules/levelweb/node_modules/levelup/lib/read-stream.js:136:31)

it might be related to JSON.parse a utf8 string with \xff at the front.

unable to setup levelui

after npm install command output was successfull

Release/leveldown.node
make: Leaving directory '/home/ravi/Desktop/levelui-master/node_modules/leveldown/build'
[email protected] postinstall /home/ravi/Desktop/levelui-master/node_modules/electron-prebuilt
node install.js

npm notice created a lockfile as package-lock.json. You should commit this file.
added 320 packages from 681 contributors in

following highlighted directory is not getting created.node_modules/level/node_modules/leveldown.

Already tried reinstalling npm still getting same
os : ubuntu 17.04 VM

Problem when rebuilding atom-shell

../node_modules/nan/nan.h:200:13: error: no type named 'SetCounterFunction' in 'v8::V8'
v8::V8::SetCounterFunction(cb);
~~~~~~~~^
../node_modules/nan/nan.h:205:13: error: no type named 'SetCreateHistogramFunction' in 'v8::V8'
v8::V8::SetCreateHistogramFunction(cb);
~~~~~~~~^
../node_modules/nan/nan.h:210:13: error: no type named 'SetAddHistogramSampleFunction' in 'v8::V8'
v8::V8::SetAddHistogramSampleFunction(cb);
~~~~~~~~^
../node_modules/nan/nan.h:214:12: error: no member named 'IdleNotification' in 'v8::V8'; did you mean 'NanIdleNotification'?
return v8::V8::IdleNotification(idle_time_in_ms);
^~~~~~~~~~~~~~~~~~~~~~~~
NanIdleNotification
../node_modules/nan/nan.h:213:19: note: 'NanIdleNotification' declared here
NAN_INLINE bool NanIdleNotification(int idle_time_in_ms) {
^
../node_modules/nan/nan.h:218:5: error: no member named 'LowMemoryNotification' in 'v8::V8'; did you mean 'NanLowMemoryNotification'?
v8::V8::LowMemoryNotification();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NanLowMemoryNotification
../node_modules/nan/nan.h:217:19: note: 'NanLowMemoryNotification' declared here
NAN_INLINE void NanLowMemoryNotification() {
^
../node_modules/nan/nan.h:222:5: error: no member named 'ContextDisposedNotification' in 'v8::V8'; did you mean 'NanContextDisposedNotification'?
v8::V8::ContextDisposedNotification();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NanContextDisposedNotification
../node_modules/nan/nan.h:221:19: note: 'NanContextDisposedNotification' declared here
NAN_INLINE void NanContextDisposedNotification() {
^
6 errors generated.
make: *** [Release/obj.target/leveldown/src/batch.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1067:12)
gyp ERR! System Darwin 14.1.0
gyp ERR! command "node" "/usr/local/bin/node-gyp" "rebuild" "--target=0.19.5" "--arch=ia64" "--dist-url=https://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist"
gyp ERR! cwd /opt/levelui/node_modules/level/node_modules/leveldown
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok

It seems you use an older version of node? Anyway it's not a good idea to rebuild some older version.

Partial keys in search field

Is special formatting necessary or should I be able to include a substring of any part of a key to locate that key?

defaults don't seem to work

Wanted to demo this for some one,
but got this error:

~/c/level-master>levelweb -u admin -p foo
Added admin to the database
~/c/level-master>levelweb /tmp/example-slave/ --protocol tcp
No keys specified, using defaults instead.
packaging `libs` assets.............

crypto.js:100
      c.context.setKey(options.key);
                ^
Error: error:0906D06C:PEM routines:PEM_read_bio:no start line
    at Object.exports.createCredentials (crypto.js:100:17)
    at Server (tls.js:1044:28)
    at new Server (https.js:35:14)
    at Object.exports.createServer (https.js:54:10)
    at /Users/dominictarr/.nave/installed/0.10.5/lib/node_modules/levelweb/lib/index.js:257:29
    at /Users/dominictarr/.nave/installed/0.10.5/lib/node_modules/levelweb/lib/certs.js:96:11
    at /Users/dominictarr/.nave/installed/0.10.5/lib/node_modules/levelweb/lib/certs.js:71:9
    at ChildProcess.<anonymous> (/Users/dominictarr/.nave/installed/0.10.5/lib/node_modules/levelweb/lib/certs.js:36:7)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at Process.ChildProcess._handle.onexit (child_process.js:784:12)

failed when `npm install`

C:\my\dev\levelui-master>npm install
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: Deprecated, use jstransformer
npm WARN deprecated [email protected]: Please update to at least constantinople 3.1.1
npm WARN deprecated [email protected]: Please use @electron/get moving forward.
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup   [
npm WARN cleanup     'C:\\my\\dev\\levelui-master\\node_modules\\tar-fs',
npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\my\dev\levelui-master\node_modules\tar-fs'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: 'C:\\my\\dev\\levelui-master\\node_modules\\tar-fs'
npm WARN cleanup     }
npm WARN cleanup   ],
npm WARN cleanup   [
npm WARN cleanup     'C:\\my\\dev\\levelui-master\\node_modules',
npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\my\dev\levelui-master\node_modules\leveldown'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: 'C:\\my\\dev\\levelui-master\\node_modules\\leveldown'
npm WARN cleanup     }
npm WARN cleanup   ]
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path C:\my\dev\levelui-master\node_modules\leveldown
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c prebuild-install || node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64
npm ERR! gyp info find Python using Python version 3.10.11 found at "C:\env\Python\Python310\python.exe"
npm ERR! gyp http GET https://nodejs.org/download/release/v18.16.0/node-v18.16.0-headers.tar.gz
npm ERR! gyp http 200 https://nodejs.org/download/release/v18.16.0/node-v18.16.0-headers.tar.gz
npm ERR! gyp http GET https://nodejs.org/download/release/v18.16.0/SHASUMS256.txt
npm ERR! gyp http GET https://nodejs.org/download/release/v18.16.0/win-x64/node.lib
npm ERR! gyp http GET https://nodejs.org/download/release/v18.16.0/win-x86/node.lib
npm ERR! gyp http GET https://nodejs.org/download/release/v18.16.0/win-arm64/node.lib
npm ERR! gyp http 200 https://nodejs.org/download/release/v18.16.0/SHASUMS256.txt
npm ERR! gyp http 404 https://nodejs.org/download/release/v18.16.0/win-arm64/node.lib
npm ERR! gyp http 200 https://nodejs.org/download/release/v18.16.0/win-x86/node.lib
npm ERR! gyp http 200 https://nodejs.org/download/release/v18.16.0/win-x64/node.lib
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config
npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
npm ERR! gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details
npm ERR! gyp ERR! find VS looking for Visual Studio 2015
npm ERR! gyp ERR! find VS - not found
npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio
npm ERR! gyp ERR! find VS including the "Desktop development with C++" workload.
npm ERR! gyp ERR! find VS For more information consult the documentation at:
npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to use
npm ERR! gyp ERR! stack     at VisualStudioFinder.fail (C:\env\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:122:47)
npm ERR! gyp ERR! stack     at C:\env\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:75:16
npm ERR! gyp ERR! stack     at VisualStudioFinder.findVisualStudio2013 (C:\env\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:369:14)
npm ERR! gyp ERR! stack     at C:\env\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:71:14
npm ERR! gyp ERR! stack     at C:\env\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:390:16
npm ERR! gyp ERR! stack     at C:\env\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
npm ERR! gyp ERR! stack     at C:\env\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
npm ERR! gyp ERR! stack     at ChildProcess.exithandler (node:child_process:427:5)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack     at maybeClose (node:internal/child_process:1091:16)
npm ERR! gyp ERR! System Windows_NT 10.0.22621
npm ERR! gyp ERR! command "C:\\env\\nodejs\\node.exe" "C:\\env\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd C:\my\dev\levelui-master\node_modules\leveldown
npm ERR! gyp ERR! node -v v18.16.0
npm ERR! gyp ERR! node-gyp -v v9.3.1
npm ERR! gyp ERR! not ok

auth

for exposing interface outside of local network

Support Binary data

Currently, levelweb assumes utf8, json. For binary data, keys and values could be represented as hex. it would be nice to read the values and determine the data types so that if, for example the value was an image or a pdf, etc. it could be rendered and viewed by the user. /cc @chapel

getting errors browsing interface

i'm trying to view my levelup LevelDB instance, i'm getting this error when browsing https://localhost:8080/:

events.js:72
        throw er; // Unhandled 'error' event
              ^
EncodingError: Unexpected token a
    at ReadStream._onData (.../node_modules/levelup/lib/read-stream.js:136:31)

this came up after populating the database with a key:

var db = levelup( '...' );
db.put( 'a', 'some text', function ( error ) { ... }

prior to the above error, i had received the following:

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: IO error: /tmp/timetable-index.leveldb/000227.sst: No such file or directory

did i used the wrong encoding when puting the value? what causes the missing file error?

Levelui interface error ?

Hi,
I have a problem with leveui interface, i have attached image.
I try to run on Windows 10, Mac OS El Capitain (Hackintosh) and Ubuntu (v14) that all installed on my laptop but the result is the same. Anyone help me ?
Plz help me, i have no time !!!!!!!!!
(My laptop has dual-card: intel Hd 4600 and Nvdia GTX 950m)
screenshot from 2016-08-30 12 09 26

Module version mismatch

I just cloned this project and run the following commands:

:; npm install
:; npm start

And I'm seeing this error:

[47307:0925/150026:INFO:CONSOLE(83)] "Uncaught Error: Module version mismatch. Expected 44, got 48.", source: /Users/tnguyen/dev/levelui/node_modules/bindings/bindings.js (83)

I'm guessing some version is outdated? is it V8?

fails to build on windows

i have all the build essentials and can build other nodejs proect with nodegyp bindings.

npm http 304 https://registry.npmjs.org/source-map
..\src\bufferutil.cc(55): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data [C:_data\levelw\node_modules\level
web\node_modules\ws\build\bufferutil.vcxproj]
npm http 304 https://registry.npmjs.org/astw
..\src\bufferutil.cc(66): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data [C:_data\levelw\node_modules\level
web\node_modules\ws\build\bufferutil.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\xlocale(336): warning C4530: C++ exception handler used, but unwind semantics are not enabled. S
pecify /EHsc (..\src\bcrypt_node.cc) [C:_data\levelw\node_modules\levelweb\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
C:\Users\gerard.node-gyp\0.10.8\deps\v8\include\v8.h(184): warning C4506: no definition for inline function 'v8::Persistent v8::Persistent::New(v8::Hand
le)' [C:_data\levelw\node_modules\levelweb\node_modules\ws\build\bufferutil.vcxproj]
with
[
T=v8::Object
]
Creating library C:_data\levelw\node_modules\levelweb\node_modules\ws\build\Release\bufferutil.lib and object C:data\levelw\node_modules\levelweb\node
modules\ws\build\Release\bufferutil.exp
Generating code
Finished generating code
..\src\bcrypt_node.cc(38): fatal error C1083: Cannot open include file: 'openssl/rand.h': No such file or directory [C:_data\levelw\node_modules\levelweb\node
_modules\bcrypt\build\bcrypt_lib.vcxproj]
npm http GET https://registry.npmjs.org/amdefine
gyp ERR! build error
gyp ERR! stack Error: c:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:_data\levelw\node_modules\levelweb\node_modules\bcrypt
gyp ERR! node -v v0.10.8
gyp ERR! node-gyp -v v0.9.5
gyp ERR! not ok

how to run when not installing globaly ?

hey,

Am on windows 7. Latest nodejs

I have installed with npm install levelweb

Got a few yellow lines on the c++ compilation, but still seems ok.

SO how to invoke the client or server now ? I do not want to install globally due to dependency issues.

G

error: no member named 'ForceSet' in 'v8::Object'

macOS, node v10.9.0, npm install then throws

In file included from ../../nan/nan.h:192:
../../nan/nan_maybe_43_inl.h:112:15: error: no member named 'ForceSet' in 'v8::Object'
  return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
         ~~~  ^
In file included from ../src/batch.cc:3:
../../nan/nan.h:834:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context)
      [-Wdeprecated-declarations]
    return node::MakeCallback(
                 ^
/Users/andy/Library/Caches/node-gyp/10.9.0/include/node/node.h:171:1: note: 'MakeCallback' has been explicitly
      marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/andy/Library/Caches/node-gyp/10.9.0/include/node/node.h:88:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../src/batch.cc:3:
../../nan/nan.h:849:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context)
      [-Wdeprecated-declarations]
    return node::MakeCallback(
                 ^
/Users/andy/Library/Caches/node-gyp/10.9.0/include/node/node.h:164:1: note: 'MakeCallback' has been explicitly
      marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/andy/Library/Caches/node-gyp/10.9.0/include/node/node.h:88:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../src/batch.cc:3:
../../nan/nan.h:864:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context)
      [-Wdeprecated-declarations]
    return node::MakeCallback(
                 ^
/Users/andy/Library/Caches/node-gyp/10.9.0/include/node/node.h:157:1: note: 'MakeCallback' has been explicitly
      marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/andy/Library/Caches/node-gyp/10.9.0/include/node/node.h:88:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../src/batch.cc:3:
../../nan/nan.h:1473:31: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context)
      [-Wdeprecated-declarations]
    return scope.Escape(node::MakeCallback(
                              ^
/Users/andy/Library/Caches/node-gyp/10.9.0/include/node/node.h:171:1: note: 'MakeCallback' has been explicitly
      marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/andy/Library/Caches/node-gyp/10.9.0/include/node/node.h:88:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
4 warnings and 1 error generated.
make: *** [Release/obj.target/leveldown/src/batch.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/andy/.nvm/versions/node/v10.9.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:196:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:239:12)
gyp ERR! System Darwin 18.7.0
gyp ERR! command "/Users/andy/.nvm/versions/node/v10.9.0/bin/node" "/Users/andy/.nvm/versions/node/v10.9.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/andy/Downloads/levelui-master/node_modules/leveldown
gyp ERR! node -v v10.9.0
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `prebuild-install || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/andy/.npm/_logs/2019-08-16T19_47_28_500Z-debug.log

Any idea?

expects keys to be json

should be configurable. or fall back to utf8

tcp server listening on 9099
http server listening on 8089

undefined:1
group_data_1000000_1891430
^
SyntaxError: Unexpected token g
at Object.parse (native)

New user with password created but cannot login

I just did

levelweb -u admin -p password

and attempted to login but nothing happened, no login. I typed username/password correctly but received no feedback at all. Page is not reloading, and no validation message appears. Only the input values disappear. No feedback.

Any clues?

[bug] EncodingError: Unexpected token ÿ

Hi there

... again me. Not sure if this is a bug or my mistake. But I think levelweb should be robust and be able to deal with those cases. So here is the error when I load levelweb:

sudo levelweb ./app/assets/db/level/development
No keys specified, using defaults instead.
tcp server listening on localhost port 9099
https server listening on localhost port 8080

events.js:72
        throw er; // Unhandled 'error' event
              ^
EncodingError: Unexpected token ÿ
    at ReadStream._onData (/opt/node-0.10.11/lib/node_modules/levelweb/node_modules/levelup/lib/read-stream.js:136:31)

Any clues?

Unhandled EncodingError on HTTPS refresh

I just installed levelweb 0.3.13, and am getting the following error when attempting to view my local database using levelweb:

thauburger: ~/Desktop/levels 
⚡ levelweb ./test --protocol tcp 
No keys specified, using defaults instead.
packaging `libs` assets.............
tcp server listening on localhost port 9099
https server listening on localhost port 8080

events.js:71
        throw arguments[1]; // Unhandled 'error' event
                       ^
EncodingError: Unexpected token e
    at ReadStream._onData (/usr/local/lib/node_modules/levelweb/node_modules/levelup/lib/read-stream.js:136:31)

The levelweb dashboard never shows any keys - so I assume this error is being hit while attempting to read the database's values for the first time.

I've written a demo script to populate and read the values in my local database, and that seems to be working as expected.

Any ideas?

Thanks!

Encoding error

After I login I get this:

$ levelweb --https 2013 --host myhost db/dev.db/                                
No keys specified, using defaults instead.                                                                        
tcp server listening on myhost port 9099                                                                       
https server listening on myhost port 2013                                                                     

events.js:72                                                                                                      
        throw er; // Unhandled 'error' event                                                                      
              ^                                                                                                   
EncodingError: Unexpected token r                                                                                 
    at ReadStream._onData (/home/alessio/nvm/v0.10.12/lib/node_modules/levelweb/node_modules/levelup/lib/read-stre
am.js:136:31)

All my data is json. Any ideas?

levelweb throws errors if key is int

I put the key use i

var options = {keyEncoding:'json', valueEncoding:'json'};

var db = levelup('./mydb', options)

db.put(1, 'LevelUP', function (err) {
if (err) return console.log('Ooops!', err) // some kind of I/O error

// 3) fetch by key
db.get(1, function (err, value) {
if (err) return console.log('Ooops!', err) // likely the key was not found

// ta da!
console.log('1=' + value)

})
})

now i run levelweb it throws err:

C:\Users\Administrator\AppData\Roaming\npm\node_modules\levelweb\lib\addons\mana
ge.js:41
var internal = key.match(/^((.*?))(.*?)$/);
^
TypeError: Object 1 has no method 'match'
at ReadStream.db.(anonymous function).createReadStream.on.on.write.response
(C:\Users\Administrator\AppData\Roaming\npm\node_modules\levelweb\lib\addons\man
age.js:41:26)
at ReadStream.EventEmitter.emit (events.js:95:17)
at ReadStream._onData (C:\Users\Administrator\AppData\Roaming\npm\node_modul
es\levelweb\node_modules\levelup\lib\read-stream.js:138:8)

How do I start this?

I did a npm i -g levelui but there is no levelui in my path. Other tools installed with -g are in my path.

Nicer error handling for levelup errors.

For example, when a database is locked and you attempt to use it with levelweb. It would be nice to have output for some common occurrences.

luke levelweb $ ./bin/levelweb ~/Repos/wayla/db/ --protocol tcp
No keys specified, using defaults instead.

events.js:72
        throw er; // Unhandled 'error' event
              ^
OpenError: IO error: lock /Users/luke/Repos/wayla/db//LOCK: Resource temporarily unavailable

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.