This is awesome teaches. But now is running at Web3 1.0 (npm install web3) ... im looking forward for you to do another updated video if can =) cause really need to know the latest how does it works.
Thank you. It would be also good if you were to precise which exact version of everything you are working on so people can follow up, if not willing to read new docs.
How to resolve these error ? Failed to load resource:web3.min.js 1 the server responded with a status of 404 (Not Found) Uncaught ReferenceError: Web3 is not defined at index.html:40
Hi, im trying to retive the amount of staked tokens from a smarcontract using web3, the contract function balanceOf (wallet) gets me 0, can someone help me ?
Great video please go ahead making stuff so helpfull like this, I got a Question everything is working working but when I open the console to see and deploy "all events does not show me one" if I want to set a value with setInstructor('Brutis', 44) does not work because does not find the method thanks a lot .
Question: if the If (typeof web3 !== ‘undefined’) results false and goes to the else block of code, should I put maybe an alert to the user that he is not using metamask? I mean, from my understanding so far in the course, if he is using metamask then the web3.eth.defaulAccount will be his account, else it will be my account, is it right?
I get this syntax error when I run the testrpc command. Any idea why? node_modules/ethereumjs-testrpc/build/cli.node.js:71649 function VM (opts = {}) { ^ SyntaxError: Unexpected token = at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:387:25) at Object.Module._extensions..js (module.js:422:10) at Module.load (module.js:357:32) at Function.Module._load (module.js:314:12) at Function.Module.runMain (module.js:447:10) at startup (node.js:140:18) at node.js:1001:3 ~>
This might be because testrpc is creating accounts with 0 ether, I am not able to figure out how to generate balance with 100 ether as shown in the video. Edit: I changed my version to 4.1.3 and it worked! do : npm install -g ethereumjs-testrpc@4.1.3
i am getting this error please help web3.min.js:1 Failed to load localhost:8545/: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. Origin 'null' is therefore not allowed access. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.
Certainly learning a lot very quickly here. I encountered an error today though doing the direct global install of the Ethereum Test RPC on mac: >> npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules >> npm ERR! path /usr/local/lib/node_modules >> npm ERR! code EACCES After reading up, I've been able to find Ganache online (who have taken over the TestRPC: available as of Dec-2017 as npm install ganache-cli). The desktop app installs no worries, but I still have permission issues with the Command Line Version (CLI). Just wondering if anyone knows of a "sudo" install command, or whether we can use the application to follow the course material from L3 onwards? Just didn't want to proceed before understanding the problem. Gracias
when i try to setInstructor i get this. Uncaught Error: The MetaMask Web3 object does not support synchronous methods like eth_sendTransaction without a callback parameter.
hahahah he's opening the index.html file in the browser not from localhost thats why it's working in this tutorial. but it can't work on localhost using metamask unless you replace the button click setInstructor function with $("#button").click(function() { Coursetro.setInstructor($("#name").val(), $("#age").val(),(error, result) => (console.log(result))); }); after you click button metamask window with pop up and you must pay gas with your testRPC main account. then it works... maybe in later tutorials he goes back and fixes this function to make it asynchronous when testing on the ropstenn network... hope this helps.
testrpc is running on my terminal . but i got this error "Not possible to connect to the Web3 provider. Make sure the provider is running and a connection is open (via IPC or RPC)." anything iam misssing.
how could we contract cmder with vscode ???? this file of code in vscode from where ? .... i was install vscode after doing this steps ,,, and i return it again after insall it in cmder !
I got error=> "Failed to load localhost:8545/: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. Origin 'null' is therefore not allowed access. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute. " when open index.html in web browser!
testrpc is running on my terminal . but i got this error "Not possible to connect to the Web3 provider. Make sure the provider is running and a connection is open (via IPC or RPC)." anything iam misssing. REPLY
When you run "testrpc", it works and shows the 10 accounts with the localhost:8545? And that address is being used in the Remix IDE when you use the web3 provider option? If so, I'm not sure what the issue could be. I'm not sure if it could be some sort of firewall issue either. You could try using the chrome plugin metamask instead. I will be doing a lesson on that shortly.
If you are using Chrome, then the browser blocks the page from running additional scripts(In this case connection to local client). In your address bar, just find the red exclamation icon and click on "Load unsafe scripts". The page will reload and then it will connect automatically.
Getting error : Uncaught Error: invalid address at c (inpage.js:1) at inputTransactionFormatter (inpage.js:1) at inpage.js:1 at Array.map () at i.formatInput (inpage.js:1) at i.toPayload (inpage.js:1) at n.e [as sendTransaction] (inpage.js:1) at u.sendTransaction (inpage.js:1) at u.execute (inpage.js:1) at HTMLButtonElement. ((index). How reslove this.
Failed to load localhost:8545/: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. Origin 'null' is therefore not allowed access. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute. Any ideas how to fix this issue?
Gary, Thanks for the videos. While executing this step npm install ethereum/web.js --save I am getting GitHub console. I do have an account in GitHub, but getting an error Host key verification failed. Why it even has to interact with GitHub? npm ERR! fatal: Could not read from remote repository. npm ERR! npm ERR! Please make sure you have the correct access rights npm ERR! and the repository exists. npm ERR! npm ERR! exited with error code: 128
Getting Error Uncaught TypeError: this.provider.sendAsync is not a function at n.sendAsync (web3.min.js:1) at l.t [as getAccounts] (web3.min.js:1) at index.html:56 Please if any one has solutions please navigate me.
Just a humble request. Instead of showing you full screen intermittently, you could minimize your video to bottom right or left? that way it would be less distracting. Your audio and screen recording are already guiding well, so no need to be looking at you in cut shots often.
Depending on the application I'm working in, sometimes that can overlap important parts of the project or UI. And it's not something I can change (position-wise) while I'm recording. So, when I do show myself on screen, I make sure I'm not doing anything other than talking directly to the viewer.
When you are only on voice over with screen in front of us, we are building our visual understanding in parallel. Now suddenly when image changes to you now and then, that is disturbing. Why to show you when there is nothing to be added visually, instead you could retain the current screen itself which would be less distracting. I went to other tutorials mainly caz of this distraction (and back anyway caz such contents are rare), otherwise your contents and explanations are top notch. Anyway up to you.
I have done all the steps, but when opening the terminal in the browser I see a series of errors that say you can not connect to the web, the truth is not the solution meeting, I have node.js installed the solution
Heyy can someone help i did everything as shown in video but when i select Web3 provider in environment and select localhost:8545 it gives me error like unable to connect to rpc even it is open and running in cmd under testrpc command
hii buddy can you plz help me... getting this error in console after clicking on submit btn inpage.js:1 Uncaught Error: invalid address at c (inpage.js:1) at inputTransactionFormatter (inpage.js:1) at inpage.js:1 at Array.map () at i.formatInput (inpage.js:1) at i.toPayload (inpage.js:1) at n.e [as sendTransaction] (inpage.js:1) at u.sendTransaction (inpage.js:1) at u.execute (inpage.js:1) at HTMLInputElement. (index.html:107)
Hey.. I'm unable to successfully install ethereumjs-testrpc as when I type testrpc it says that it doesn't recognize the command internally or externally! what do i do?
I've a simple question cause i'm not that deep in web programming. The get function of my smart contract has input parameters. Let's say: function getInstructor(string name) public view returns(string){ return value} now i'm not sure how i should call it Coursetro.getInstructor("myName")(function(error, result){..... consol.log(result)} I only found a solution that called (but never tested): Coursetro.methods.getInstructor("myName").call().then(result)=> storevariable=result Maybe you can explain when i need "Coursetro.methods" or what's the difference between this calls and how i should call it in my example.
var myContract = new web3.eth.Contract([...], '0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe', { from: '0x1234567890123456789012345678901234567891', // default from address gasPrice: '20000000000' // default gas price in wei, 20 gwei in this case }); web3js.readthedocs.io/en/v1.3.0/web3-eth-contract.html
I'm having this error "Uncaught ReferenceError: Web3 is not defined" on web3 = new Web3(new Web3.providers.HTTPProvider("http:localhost:8545"")); pls help
I executed the command *npm install ethereum/web3.js --save* and then this showed up C:\mypro>npm install ethereum/web3.js --save [..................] / rollbackFailedOptional: verb npm-session 3b831718dd2605a0 and it just hangs right there never progresses the download. What should I do?? Please Help!!!
Hi, First thank you for your great effort. I got two errors: The following error when i refreshed the page: BigNumber Error: new BigNumber() not a base 16 number And the following error when i clicked on "setInstructor" button: Error: The MetaMask Web3 object does not support synchronous methods like eth_sendTransaction without a callback parameter. Why did the errors occur??
With running the install ethereum/web3.js --save npm, I'm getting an ERR! code ENOGIT, no git binary found in $PATH. Any idea what that means and how to solve it?
I installed git at git-scm.com/ for Windows and just checked if the path was updated correctly (it should do this automatically). You can Google how to check if the git extension is in the path if the problem persists. That sorted everything out for me!
Wow, that's weird. hmm. It looks like it's looking for a package in the program files folder that's not there? It might have gotten corrupted. Another reason might be that you do not have Python installed on your pc. Give that a go and see if it fixes it.
Not possible to connect to the Web3 provider. Make sure the provider is running and a connection is open (via IPC or RPC). how can i get past this error?
If you are using Chrome, then the browser blocks the page from running additional scripts(In this case connection to local client). In your address bar, just find the red exclamation icon and click on "Load unsafe scripts". The page will reload and then it will connect automatically.
First open your Command prompt -- enter: testrpc -- eth-getBalance--will be returned repeatedly along with other file names... Then, I return to Remix page in browser. Click menu: Environment -- Web3 Provider OK...click Opens Dialog Box -- Are you sure you want to connect to an ethereum node? OK...click Opens Dialog Box Web3 Provider Endpoint -- localhost:8545...click OK Web3 Provider Custom ... is now open. Works everytime...keep your Command Prompt open.
Ops, ERROR at npm install ethereum/web3.js --save npm ERR! code ENOGIT npm ERR! No git binary found in $PATH npm ERR! npm ERR! Failed using git. npm ERR! Please check if you have git installed and in your PATH.
Just Write your code inside the you will not need to refresh the page for result..
This is awesome teaches. But now is running at Web3 1.0 (npm install web3) ... im looking forward for you to do another updated video if can =) cause really need to know the latest how does it works.
thx. helped a lot, your example work perfectly with correct version, now only updates changed a lot
Спасибо за отличное видео, коротко и понятно!
What do you do pre 1.0 Beta? web3.eth.contract() is not in pre 1.0 beta version
Excellent vidéo !
wullah this sh%* is black magic praise coursetro our lord and saviour
You forgot to mention that git needs to be installed, otherwise can't install ethereum/web3.js
Please can you tell us what are the things to be installed before we go through this video
Hi bro.
It's showing me this error " web3.contract is not a function".
Any advice to solve it
If you get an error connecting to testrpc server, you just need to change remix to use http protocol instead of https.
what do you mean?
Thank you. It would be also good if you were to precise which exact version of everything you are working on so people can follow up, if not willing to read new docs.
How can we access the address(@5:15) of the deployed contract from the frontend using web3 or any other method
How to resolve these error ?
Failed to load resource:web3.min.js 1 the server responded with a status of 404 (Not Found)
Uncaught ReferenceError: Web3 is not defined
at index.html:40
did you figure this out?
i love you bro awesome video tutorial
Sir this is not working with new versions of web3 can you please help
Hi, im trying to retive the amount of staked tokens from a smarcontract using web3, the contract function balanceOf (wallet) gets me 0, can someone help me ?
Thanks for share this great course
Are stable coins constructed using Ethereum smart contracts?
Great video please go ahead making stuff so helpfull like this,
I got a Question everything is working working but when I open the console to see and deploy "all events does not show me one"
if I want to set a value with setInstructor('Brutis', 44) does not work because does not find the method
thanks a lot .
npm install ethereum/web3.js --save this should be done for every project??
Awesome Series!
Sir, is this available on udemy?
Question: if the
If (typeof web3 !== ‘undefined’) results false and goes to the else block of code, should I put maybe an alert to the user that he is not using metamask? I mean, from my understanding so far in the course, if he is using metamask then the web3.eth.defaulAccount will be his account, else it will be my account, is it right?
I get this syntax error when I run the testrpc command. Any idea why?
node_modules/ethereumjs-testrpc/build/cli.node.js:71649
function VM (opts = {}) {
^
SyntaxError: Unexpected token =
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:387:25)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Function.Module.runMain (module.js:447:10)
at startup (node.js:140:18)
at node.js:1001:3
~>
verygood tutorial this node js
Not a technical question but what's the song at the beginning of the video? Sounds so relaxing!
Getting this error: "creation of browser/Test.sol:Test errored: Error: base fee exceeds gas limit"
I'm getting the same error... does anyone have a solution to this?
This might be because testrpc is creating accounts with 0 ether, I am not able to figure out how to generate balance with 100 ether as shown in the video.
Edit: I changed my version to 4.1.3 and it worked! do : npm install -g ethereumjs-testrpc@4.1.3
how to uninstall testrpc ?
i am getting this error please help
web3.min.js:1 Failed to load localhost:8545/: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. Origin 'null' is therefore not allowed access. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.
Certainly learning a lot very quickly here. I encountered an error today though doing the direct global install of the Ethereum Test RPC on mac:
>> npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
>> npm ERR! path /usr/local/lib/node_modules
>> npm ERR! code EACCES
After reading up, I've been able to find Ganache online (who have taken over the TestRPC: available as of Dec-2017 as npm install ganache-cli). The desktop app installs no worries, but I still have permission issues with the Command Line Version (CLI). Just wondering if anyone knows of a "sudo" install command, or whether we can use the application to follow the course material from L3 onwards? Just didn't want to proceed before understanding the problem. Gracias
thank you for this courses
but i m getting thus error
Uncaught TypeError: CoursetroContract.at is not a function
Change this:
var CoursetroContract = web3.eth.contract(PASTE ABI HERE!);
To:
CoursetroContract = new web3.eth.Contract([ ....
Hi ,I want to drawn dapp diagram but i dont know what tool to drawn .Can you recomment me a tool ? Thank you !
when i try to setInstructor i get this. Uncaught Error: The MetaMask Web3 object does not support synchronous methods like eth_sendTransaction without a callback parameter.
try'd putting a call back param no luck
hahahah he's opening the index.html file in the browser not from localhost thats why it's working in this tutorial. but it can't work on localhost using metamask unless you replace the button click setInstructor function with $("#button").click(function() {
Coursetro.setInstructor($("#name").val(), $("#age").val(),(error, result) => (console.log(result)));
}); after you click button metamask window with pop up and you must pay gas with your testRPC main account. then it works... maybe in later tutorials he goes back and fixes this function to make it asynchronous when testing on the ropstenn network... hope this helps.
testrpc is running on my terminal . but i got this error
"Not possible to connect to the Web3 provider. Make sure the provider is running and a connection is open (via IPC or RPC)."
anything iam misssing.
how could we contract cmder with vscode ???? this file of code in vscode from where ? .... i was install vscode after doing this steps ,,, and i return it again after insall it in cmder !
this is a great tutorial!
I got error=> "Failed to load localhost:8545/: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. Origin 'null' is therefore not allowed access. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute. " when open index.html in web browser!
Awesome
testrpc is running on my terminal . but i got this error
"Not possible to connect to the Web3 provider. Make sure the provider is running and a connection is open (via IPC or RPC)."
anything iam misssing.
REPLY
When you run "testrpc", it works and shows the 10 accounts with the localhost:8545? And that address is being used in the Remix IDE when you use the web3 provider option?
If so, I'm not sure what the issue could be. I'm not sure if it could be some sort of firewall issue either.
You could try using the chrome plugin metamask instead. I will be doing a lesson on that shortly.
Thanks Gaurav Chauhan
If you are using Chrome, then the browser blocks the page from running additional scripts(In this case connection to local client). In your address bar, just find the red exclamation icon and click on "Load unsafe scripts". The page will reload and then it will connect automatically.
Thanks Gaurav!!! So helpful!
you have to install metamask for chrome.enter the mnemonic after runnig testrpc in your terminal and switch to localhost:8545 in metamask.
got it ,thank God
Getting error :
Uncaught Error: invalid address at c (inpage.js:1) at inputTransactionFormatter (inpage.js:1) at inpage.js:1 at Array.map () at i.formatInput (inpage.js:1) at i.toPayload (inpage.js:1) at n.e [as sendTransaction] (inpage.js:1) at u.sendTransaction (inpage.js:1) at u.execute (inpage.js:1) at HTMLButtonElement. ((index). How reslove this.
Hi ii dont get an error but when i click on the button the getInstructor is returning (2) ["", e]
Same here, could you ever solve this problem? I get nothing when pressing the button
I have this prbl :" Uncaught TypeError: web3.eth.contract is not a function
at index.html:53 " !!
why we need a default account in index html as that contract was already created by another account in Remix?
Hello ! can you show me how to call the constructor with arguments from web3
i need some help, i have error in exectution.
console: constructor.getConstructor() is not function
constructor.setConstructor() is not a function
Failed to load localhost:8545/: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. Origin 'null' is therefore not allowed access. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.
Any ideas how to fix this issue?
Gary, Thanks for the videos. While executing this step npm install ethereum/web.js --save I am getting GitHub console. I do have an account in GitHub, but getting an error Host key verification failed. Why it even has to interact with GitHub?
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128
Hi,
Did you find a way to solve this problem?
Not possible to connect to the Web3 provider. Make sure the provider is running and a connection is open (via IPC or RPC).
Can we connect a native android app built on android studio to ethereum?
whic theme are you using ?also come characters like j and t are rendered blue in cmder, don't know why
It's a custom theme. Maybe I'll make a video one day where I offer it.
great ! thanks for share this !
Welcome! Glad you're enjoying it.
If you can make a HD video will be great, the 360p is little bit fuzzy. Thanks,
It is 1080p. I uploaded a higher quality video this time, so youtube took longer to transcode it. Refresh and you should see the 1080p version. ;)
Yep ! 1080p . great !!!
Getting Error
Uncaught TypeError: this.provider.sendAsync is not a function
at n.sendAsync (web3.min.js:1)
at l.t [as getAccounts] (web3.min.js:1)
at index.html:56
Please if any one has solutions please navigate me.
how to deploy in web server cpanel or digitalocean or aws
Just a humble request. Instead of showing you full screen intermittently, you could minimize your video to bottom right or left? that way it would be less distracting. Your audio and screen recording are already guiding well, so no need to be looking at you in cut shots often.
Depending on the application I'm working in, sometimes that can overlap important parts of the project or UI. And it's not something I can change (position-wise) while I'm recording. So, when I do show myself on screen, I make sure I'm not doing anything other than talking directly to the viewer.
When you are only on voice over with screen in front of us, we are building our visual understanding in parallel. Now suddenly when image changes to you now and then, that is disturbing. Why to show you when there is nothing to be added visually, instead you could retain the current screen itself which would be less distracting. I went to other tutorials mainly caz of this distraction (and back anyway caz such contents are rare), otherwise your contents and explanations are top notch. Anyway up to you.
For the record, this is my experience too.
where is the resource file for the html and css codes?
coursetro.com/posts/code/99/Interacting-with-a-Smart-Contract-through-Web3.js-(Tutorial)
These tutorials are DEPRECATED!
awesome!
Error1-web3.min.js is not present
Error2- web3 is not defined.
please help.
did you figure this out?
i've same problem
I have done all the steps, but when opening the terminal in the browser I see a series of errors that say you can not connect to the web, the truth is not the solution meeting, I have node.js installed the solution
hello can you help me i follow all the steps but the result not show on Remix
what install of visual studio? can i code on phpstorm?
Heyy can someone help i did everything as shown in video but when i select Web3 provider in environment and select localhost:8545 it gives me error like unable to connect to rpc even it is open and running in cmd under testrpc command
Did you change the environment to web3 provider instead of JVM?
hii buddy can you plz help me...
getting this error in console after clicking on submit btn
inpage.js:1 Uncaught Error: invalid address
at c (inpage.js:1)
at inputTransactionFormatter (inpage.js:1)
at inpage.js:1
at Array.map ()
at i.formatInput (inpage.js:1)
at i.toPayload (inpage.js:1)
at n.e [as sendTransaction] (inpage.js:1)
at u.sendTransaction (inpage.js:1)
at u.execute (inpage.js:1)
at HTMLInputElement. (index.html:107)
Write the address as a string with " "
Hey.. I'm unable to successfully install ethereumjs-testrpc as when I type testrpc it says that it doesn't recognize the command internally or externally! what do i do?
install the package globally using using npm install -g ethereumjs-testrpc
Thanks a lot
Does *Infura.io* is a web3 provider?
testrpc has been renamed to genache-cli but gebache-cli is nolobger supported
ganache-cli is still supported, see truffleframework.com/ganache
Uncaught TypeError: t.abi.filter is not a function
at u (web3.min.js:1)
at p.at (web3.min.js:1)
at index.html:47
Where is the link to the css/html resource files?
Nice music.
I've a simple question cause i'm not that deep in web programming.
The get function of my smart contract has input parameters. Let's say:
function getInstructor(string name) public view returns(string){ return value}
now i'm not sure how i should call it
Coursetro.getInstructor("myName")(function(error, result){..... consol.log(result)}
I only found a solution that called (but never tested):
Coursetro.methods.getInstructor("myName").call().then(result)=> storevariable=result
Maybe you can explain when i need "Coursetro.methods" or what's the difference between this calls and how i should call it in my example.
Can anyone please help me?
npm install ethereum/web3.js --save
Above command is not working on my terminal. Please help.
npm install web3 --save
I am getting this error:
Uncaught TypeError: web3.eth.contract is not a function
at index.html:46
var myContract = new web3.eth.Contract([...], '0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe', {
from: '0x1234567890123456789012345678901234567891', // default from address
gasPrice: '20000000000' // default gas price in wei, 20 gwei in this case
});
web3js.readthedocs.io/en/v1.3.0/web3-eth-contract.html
I'm having this error
"Uncaught ReferenceError: Web3 is not defined" on web3 = new Web3(new Web3.providers.HTTPProvider("http:localhost:8545"")); pls help
I have same pblm
I executed the command
*npm install ethereum/web3.js --save* and then this showed up
C:\mypro>npm install ethereum/web3.js --save
[..................] / rollbackFailedOptional: verb npm-session 3b831718dd2605a0
and it just hangs right there never progresses the download. What should I do?? Please Help!!!
Use web3 instead of web3.js
Hi, First thank you for your great effort.
I got two errors:
The following error when i refreshed the page:
BigNumber Error: new BigNumber() not a base 16 number
And the following error when i clicked on "setInstructor" button:
Error: The MetaMask Web3 object does not support synchronous methods like eth_sendTransaction without a callback parameter.
Why did the errors occur??
anybody figure out 2nd error?
log out of metamask browser extension
Cmder does not work, but regular windows CMD does. Too bad, I like the Cmder UI better.
while installing web3.js i am getting rollbackFailedOptional: verb npm-session f80a1fa0cd539721
can anyone please help
Uncaught Error: VM Exception while processing transaction: out of gas
try to use another rpc account. type "testrpc" in cmd line and you will see the list of account test rpc creates for you
Uncaught TypeError: TheContract.at is not a function?
FYI, my version did not work until I changed this line in index.html from:
```
```
to this:
``'
```
Uncaught TypeError: Coursetro.setInstructor is not a function
I wrote similar code, but when try to call setInstructor, getting error Uncaught Error: invalid address
getInstructor, is perfectly work fine but only getting issue with setInstructor
make a new one using ganache
where is the code for main.css and index.html thx
net:: ERR_FILE_NOT_FOUND i have no idea why it cant find web.3.min.js when it is clearly inside my folder
it should be web3.min.js I see a web.3.min.js you wrote, which is incorrect
With running the install ethereum/web3.js --save npm, I'm getting an ERR! code ENOGIT, no git binary found in $PATH. Any idea what that means and how to solve it?
Solved!
How? I get the same thing
I installed git at git-scm.com/ for Windows and just checked if the path was updated correctly (it should do this automatically). You can Google how to check if the git extension is in the path if the problem persists. That sorted everything out for me!
Thanks. I installed and updated the path but I now get this:
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:\Program Files
odejs
ode_modules
pm
ode_modules
ode-gyp\lib\configure.js:483:19)
gyp ERR! stack at PythonFinder. (C:\Program Files
odejs
ode_modules
pm
ode_modules
ode-gyp\lib\configure.js:508:16)
gyp ERR! stack at C:\Program Files
odejs
ode_modules
pm
ode_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:166:21)
gyp ERR! System Windows_NT 10.0.15063
gyp ERR! command "C:\\Program Files\
odejs\
ode.exe" "C:\\Program Files\
odejs\
ode_modules\
pm\
ode_modules\
ode-gyp\\bin\
ode-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\michaelfeldman
ode_modules\scrypt
gyp ERR! node -v v9.2.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Wow, that's weird. hmm. It looks like it's looking for a package in the program files folder that's not there? It might have gotten corrupted.
Another reason might be that you do not have Python installed on your pc. Give that a go and see if it fixes it.
Will you be covering Truffle in the future?
Yes. I decided that would make most sense to cover after this beginner series.
DesignCourse Looking forward to it :)
why do we need to pass address at CoursetroContract.at(address);
uncaught type error: web3.providers.httpProviders is not a constructor
Pls help me to fix this error
I have same pblm
i am getting the error at npm install ethereum/web3.js --save. Please help me
Did you solve it? Because i got the same error..please help me if you know how to solve it
A lot of web3 injections are outdated now. 😭
Not possible to connect to the Web3 provider. Make sure the provider is running and a connection is open (via IPC or RPC). how can i get past this error?
127.0.0.1:8545
If you are using Chrome, then the browser blocks the page from running additional scripts(In this case connection to local client). In your address bar, just find the red exclamation icon and click on "Load unsafe scripts". The page will reload and then it will connect automatically.
thanks.. your suggestion worked
First open your Command prompt -- enter:
testrpc --
eth-getBalance--will be returned repeatedly along with other file names...
Then, I return to Remix page in browser.
Click menu: Environment -- Web3 Provider OK...click
Opens Dialog Box
-- Are you sure you want to connect to an ethereum node? OK...click
Opens Dialog Box
Web3 Provider Endpoint
-- localhost:8545...click OK
Web3 Provider Custom ... is now open.
Works everytime...keep your Command Prompt open.
Uncaught TypeError: ExampleContract.at is not a function - how to fix this error
Syntaxe: var exemplecontract= new web3.eth.Contract(abi, _contractAddress);
@@zineelabidine6689 Thanks you saved me
error - BigNumber Error: new BigNumber() not a base 16 number
web3.min.js not found error
My android problems APK trust APK unable fine web3
error - base fee exceeds gas limit
Lucian Adrian Rosu no I didn't
thanks, it works
Use Rinkbey network
Web3 Account not working properly.
Ops, ERROR at npm install ethereum/web3.js --save
npm ERR! code ENOGIT
npm ERR! No git binary found in $PATH
npm ERR!
npm ERR! Failed using git.
npm ERR! Please check if you have git installed and in your PATH.
Solved! I instaled GIT from git-scm.com/ and tried again. Thanks to Robbie Boltman