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

nfts721 access --json command is not a valid json #78

Open
ialberquilla opened this issue Oct 31, 2022 · 0 comments
Open

nfts721 access --json command is not a valid json #78

ialberquilla opened this issue Oct 31, 2022 · 0 comments

Comments

@ialberquilla
Copy link
Contributor

Describe the bug

In order to parse the nfts721 access command --json result as json I'm getting an error because the result is not a valid json. The result is mixing common log and json output

b'Downloading the files\nDownloaded: /tmp/nevermined/swaps/bafybeial46zhj2pf4wnmp7pnmiixxlignw4knjglcj4xbts43vyo7bhmxi\n{"startTime":"2022-10-31T10:26:40.586Z","categoryName":"default","data":[{"status":0,"results":"{\\"destination\\":\\"/tmp/nevermined/swaps/\\"}"}],"level":{"level":9007199254740992,"levelStr":"MARK","colour":"grey"},"context":{},"pid":5597}\n'

To Reproduce

Steps to reproduce the behavior:

  1. Download an asset with ncli -n {network} -v nfts721 access {did} --json

Expected behavior

The returned object should be like the following

b{"startTime":"2022-10-31T10:26:40.586Z","categoryName":"default","data":[{"status":0,"results":"{\\"destination\\":\\"/tmp/nevermined/swaps/\\"}"}],"level":{"level":9007199254740992,"levelStr":"MARK","colour":"grey"},"context":{},"pid":5597}\n'

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant