IOTA JS Library Temporary Fix


Author
Message
Rajiv Shah
R
Attached to Tangle (327 reputation)
Group: Moderators
Posts: 14, Visits: 0
Because of a bug in the IOTA JavaScript library, most applications that make requests to a node will not work properly. To use a temporary fix until the core devs fix the bug (possibly by merging this merge request), follow the instructions below:

Beginner: 
1. Go to the file called "
package.json" in the main folder of your project

2. Change the line that starts with "
iota.lib.js
" so that it shows this:
"iota.lib.js": "git+https://github.com/rajivshah3/iota.lib.js.git",

3. Save the file, then run the following commands:
cd path/to/your/project/folder
rm -rf node_modules
npm install

This will delete the old iota.lib.js and replace it with the fixed one.

Advanced:
Fix this by changing line 34 of node_modules/iota.lib.js/lib/utils/makeRequest.js so that it matches this.

Library fork: https://github.com/rajivshah3/iota.lib.js
Pull request: https://github.com/iotaledger/iota.lib.js/pull/106
Pre-fixed apps:
IOTA-ValueSpammer: https://github.com/rajivshah3/IOTA-ValueSpammer
IPM (IOTA Peer Manager): https://github.com/rajivshah3/ipm

Edited 2 Years Ago by Rajiv Shah
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Login

Explore
Messages
Mentions
Search