Skip to content

Conversation

@parajbs
Copy link

@parajbs parajbs commented Apr 26, 2022

changelog:

  • corrections in "store.put" on "setJSON" ! important !
  • better readable logs
  • update packet.json skynet-js 4.1.0 and gun 0.2020.1236
  • readme.md update link "skynet-js 4.1"

PULL REQUEST

Overview

Example for Visual Changes

Checklist

Review and complete the checklist to ensure that the PR is complete before assigned to an approver.

  • All new methods or updated methods have clear docstrings
  • Testing added or updated for new methods
  • Verify if any changes impact the WebPortal Health Checks
  • Approriate documentation updated
  • Changelog file created

Issues Closed

changelog:
- corrections in "store.put" on "setJSON" ! important !
- better readable logs
- update packet.json skynet-js 4.1.0 and gun 0.2020.1236
- readme.md update link "skynet-js 4.1"
@parajbs
Copy link
Author

parajbs commented May 3, 2022

Hello Fluffy9,

It's me again!
I'm still trying to make it clear to you that the data in the current "Version 2.1.7" is not uploaded to "siasky.net" because in "client.db.setJSON(privateKey, key, data)" the " data" not passed as a json object!!!!
This causes an error in the Bowser console!

Here is the proof in the sdk-docs of "skynet-js":
https://sdk.skynetlabs.com/#setting-data-on-skydb

Under area "Setting Data On SkyDB" then under "Parameters" there is then:

json object The JSON object to set for the given private key and data key.

So that your project runs properly, please remove the issues!
In order to eliminate the issues, "data" must be changed to "JSON.parse(data)"! Here the solution:

client.db.setJSON(privateKey, key, JSON.parse(data))

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

Successfully merging this pull request may close these issues.

1 participant