You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.
The new library needs a config parameter, so we need to change /home/ec2-user/IOTA/test/node_modules/iota.lib.js/lib/utils/makeRequest.js to include the config parameter and pass it to make request:
So at the beginning of the file:
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Almost all companies work behind a proxy. There are currently no way of set up proxy setting in this library.
To solve this issue :
IOTA lib is using this https://www.npmjs.com/package/xmlhttprequest to simulate the browser environment. This doesn’t have a proxy configuration, but there is fork that does https://github.com/jbeuckm/node-XMLHttpRequest
What we have to do is to copy https://github.com/jbeuckm/node-XMLHttpRequest/blob/master/lib/XMLHttpRequest.js that has the proxy patch to the local file system on /home/ec2-user/IOTA/test/node_modules/xmlhttprequest/lib/xml/XMLHttpRequest.js
The new library needs a config parameter, so we need to change /home/ec2-user/IOTA/test/node_modules/iota.lib.js/lib/utils/makeRequest.js to include the config parameter and pass it to make request:
So at the beginning of the file:
The text was updated successfully, but these errors were encountered: