Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dfs prompt returns an error #1

Closed
crtahlin opened this issue Sep 24, 2020 · 1 comment
Closed

dfs prompt returns an error #1

crtahlin opened this issue Sep 24, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@crtahlin
Copy link

$ ./dist/dfs prompt

  /$$$$$$          /$$            /$$$$$$   /$$$$$$                /$$  /$$$$$$         
 /$$__  $$        |__/           /$$__  $$ /$$__  $$              | $$ /$$__  $$        
| $$  \__//$$$$$$  /$$  /$$$$$$ | $$  \ $$| $$  \__/          /$$$$$$$| $$  \__//$$$$$$$
| $$$$   |____  $$| $$ /$$__  $$| $$  | $$|  $$$$$$  /$$$$$$ /$$__  $$| $$$$   /$$_____/
| $$_/    /$$$$$$$| $$| $$  \__/| $$  | $$ \____  $$|______/| $$  | $$| $$_/  |  $$$$$$ 
| $$     /$$__  $$| $$| $$      | $$  | $$ /$$  \ $$        | $$  | $$| $$     \____  $$
| $$    |  $$$$$$$| $$| $$      |  $$$$$$/|  $$$$$$/        |  $$$$$$$| $$     /$$$$$$$/
|__/     \_______/|__/|__/       \______/  \______/          \_______/|__/    |_______/


panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0x9df12e]

goroutine 1 [running]:
github.com/fairdatasociety/fairOS-dfs/cmd/dfs/cmd.glob..func1(0x1044680, 0x10c0dd8, 0x0, 0x0)
	/home/crtah/Documents/FairDataSociety/fairOS-dfs/cmd/dfs/cmd/prompt.go:61 +0xae
github.com/spf13/cobra.(*Command).execute(0x1044680, 0x10c0dd8, 0x0, 0x0, 0x1044680, 0x10c0dd8)
	/home/crtah/Documents/FairDataSociety/fairOS-dfs/vendor/github.com/spf13/cobra/command.go:846 +0x2c2
github.com/spf13/cobra.(*Command).ExecuteC(0x1044920, 0xc0000b4008, 0xc000267f58, 0x1)
	/home/crtah/Documents/FairDataSociety/fairOS-dfs/vendor/github.com/spf13/cobra/command.go:950 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
	/home/crtah/Documents/FairDataSociety/fairOS-dfs/vendor/github.com/spf13/cobra/command.go:887
github.com/fairdatasociety/fairOS-dfs/cmd/dfs/cmd.Execute()
	/home/crtah/Documents/FairDataSociety/fairOS-dfs/cmd/dfs/cmd/root.go:65 +0xa5
main.main()
	/home/crtah/Documents/FairDataSociety/fairOS-dfs/cmd/dfs/main.go:24 +0x25


jmozah pushed a commit that referenced this issue Sep 25, 2020
@jmozah
Copy link
Collaborator

jmozah commented Sep 25, 2020

Fixed in PR #2

@jmozah jmozah closed this as completed Sep 25, 2020
@jmozah jmozah added the bug Something isn't working label Sep 25, 2020
@jmozah jmozah self-assigned this Sep 25, 2020
asabya added a commit that referenced this issue Nov 8, 2021
* addressing #117 and #118, issues related to pod deletion
asabya added a commit that referenced this issue Dec 13, 2021
* addressing #119, uploading same file multiple times

* addressing #122, file delete Matadata unmarshal

* addressing #123, fix response for non-existing pod

* addressing #127, server requires postageBlockId to run

* addressing #116, non-existing dir response

* addressing #119, backup old file in case same name

* code cleanup

* code cleanup

* code cleanup

* code cleanup

* addressing #117 and #118, issues related to pod deletion (#1)

* addressing #117 and #118, issues related to pod deletion

* fix reploading deleted file

* fix #132, #133

* fixes #141, rmdir updates feed with magicword

* fixes #134

* fixes #135 & #136

* fixing #139

* fix #140, accept mutable bool in request

* minor typo

* #97 handle query param for doc-ls

* #102 handle exception for invalid json

* #106 handled panic

* related to #100, doc new podname missing

* fix #124, handle removed root directory

* handle #96

* handle #24, use shlex to parse prompt args

* fixed #19, pod deletion requires password

* check for root dir presence in mkdir

* mod tidy (#146)

* mod tidy

* manually restore vendor

* manually restore vendor

* upload err fix

* fix #86, shared pod removed from list

* minor changes

* fix #147, check read only feed before access time update in download

* fix #148, close response body in bee client

* minor file deletion test added

* #92, table name added in count response

* fix w/ deepsource recommendation

* fix w/ deepsource recommendation

* #102, add test for invalid json

* 404 on file not present

* add get endpoint for download

* fix #158

* resolve anti-pattern

* bump version
asabya added a commit that referenced this issue Dec 13, 2021
* addressing #117 and #118, issues related to pod deletion
asabya added a commit that referenced this issue Dec 13, 2021
* addressing #119, uploading same file multiple times

* addressing #127, server requires postageBlockId to run

* addressing #119, backup old file in case same name

* code cleanup

* addressing #117 and #118, issues related to pod deletion (#1)

* addressing #117 and #118, issues related to pod deletion

* fix reploading deleted file

* fix #124, handle removed root directory

* fixed #19, pod deletion requires password

* mod tidy (#146)

* mod tidy

* manually restore vendor

* manually restore vendor

* fix #86, shared pod removed from list

* websocket initialised, user and pod commands added

* fixing lint

* fixing lint

* file related events added

* download working

* most of the kv and doc commands added

* loadcsv, loadjson, indexjson

* minor type changes

* whitelist origins

* add stream functionality

* add streaming for loadcsv and loadjson

* require centent_length for upload stream

* lint fixes
asabya added a commit that referenced this issue Dec 13, 2021
* addressing #117 and #118, issues related to pod deletion
asabya added a commit that referenced this issue Dec 20, 2021
* websocket initialised, user and pod commands added (#152)

* addressing #119, uploading same file multiple times

* addressing #127, server requires postageBlockId to run

* addressing #119, backup old file in case same name

* code cleanup

* addressing #117 and #118, issues related to pod deletion (#1)

* addressing #117 and #118, issues related to pod deletion

* fix reploading deleted file

* fix #124, handle removed root directory

* fixed #19, pod deletion requires password

* mod tidy (#146)

* mod tidy

* manually restore vendor

* manually restore vendor

* fix #86, shared pod removed from list

* websocket initialised, user and pod commands added

* fixing lint

* fixing lint

* file related events added

* download working

* most of the kv and doc commands added

* loadcsv, loadjson, indexjson

* minor type changes

* whitelist origins

* add stream functionality

* add streaming for loadcsv and loadjson

* require centent_length for upload stream

* lint fixes

* fix #165 (#166)

* cli can connect to remote dfs server (#164)

* cli can connect to remote dfs server

* lint fixes

* bump version
asabya added a commit that referenced this issue Jan 25, 2022
* addressing #119, uploading same file multiple times

* addressing #122, file delete Matadata unmarshal

* addressing #123, fix response for non-existing pod

* addressing #127, server requires postageBlockId to run

* addressing #119, backup old file in case same name

* code cleanup

* code cleanup

* code cleanup

* code cleanup

* addressing #117 and #118, issues related to pod deletion (#1)

* addressing #117 and #118, issues related to pod deletion

* fix reploading deleted file

* fixes #141, rmdir updates feed with magicword

* fixing #139

* fix #140, accept mutable bool in request

* #102 handle exception for invalid json

* related to #100, doc new podname missing

* fix #124, handle removed root directory

* handle #96

* handle #24, use shlex to parse prompt args

* fixed #19, pod deletion requires password

* check for root dir presence in mkdir

* mod tidy (#146)

* mod tidy

* manually restore vendor

* manually restore vendor

* fix #86, shared pod removed from list

* minor changes

* #92, table name added in count response

* fix w/ deepsource recommendation

* fix w/ deepsource recommendation

* #102, add test for invalid json

* server running from config vales

* fix lint errors

* fix flag usage

* add default variables

* rebase

* resolve 163

* handle #172

* handle #138, new method for kv/entry/get

* #130 handled, /pod/present api added

* podPresent only for loggedin user

* #82, add /kv/present

* #157, add basic string validation

* update readme

* update openapi (#180)

* update openapi

* update version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants