Nothing shows up. It just stopped responding. When I push Enter I just go to the next line and nothing happens at all. Even for python -m http.server 8000
.
I have even reinstalled my windows.
It was not working for me either. Then after some test it seems itâs working on Brave 1.13.82 Chromium: 85.0.4183.83 (Official Build) unknown (64-bit) . Iâm talking about this lesson: https://academy.ivanontech.com/products/ethereum-smart-contract-programming-201/categories/1993956/posts/6700032
Iâm not able to reproduce the ânot workingâ condition.
One thing I did was:
- Doing inspect (going in develop mode on brave)
- right click on the reload button and select âEmpty cache and hard reloadâ
Hope it helps.
I have found a fix. I had Reset the account in Metamask. Go to Metamask -> Settings -> Advanced -> Reset Account
@Taha
I have my truffle running, python is running. My metamask connected to localhost:8000.
But it doesnât show the javascript alert when I click on the button. What am I doing wrong?
var web3 = new Web3(Web3.givenProvider);
var contractInstance;
$(document).ready(function() {
window.ethereum.enable().then(function(accounts){
contractInstance = new web3.eth.Contract(abi, â0xF87bddC1A92EC5b61C1b24BA0869F78059BC1B9Aâ, {from: accounts[0]});
});
$("#add_data_button").click(inputData);
});
function inputData(){
alert(âinputdataâ);
}
Could it have something to do with these errors? If so how do I get rid of them?
Hey @elterremoto
These are warnings from Metamask and we canât get rid of them.
Please create a repo on github and upload your code (both from and back end). Once done post the link here so that I can check.
Dani
Does anyone know the final People.sol repository? I think I broke it and I am not sure whatâs wrong.
I had the same issue and I just saw this. I will try the firefox download.
You are awesome!! I was also redoing everything⌠But FireFox worked it took me a bit set up metamask again but all is working. Let me know if anyone figures out why it doesnât work for Chrome.
Hi community,
@filip mentioned that we need to download python in order to host a website. I am not quite sure which one to install. Is it this web https://www.python.org/downloads/ ?
Why is it giving me this feedback?
Anyone can please help me?? I canât figure out how. I canât proceed cause this problem is stopping me.
Anyone can help me? I been stuck at this problem for some time already. Appreciate someone to help me solve this. Thanks
Hey @Marcus_Tang
Try the following and tell me the results:
- Open the Powershell application
- Execute command :
type python --version
and press enter. - The Python version appears in the next line below your command.
Also do the same but with
python3 --version
@Marcus_Tang
What happens if you try python3 --version
?
If the command above does not return any result, you need to install python.
There is a guide on Microsoft.com, below I did it for you and added screenshots.
-
Open Microsoft Store and look for python.
-
Select Python 3.7 and click Get
-
Once the installation is completed, open PowerShell and type python3 --version, the version should pop up now.
-
Now you are ready to use your http server by typing : python3 -m http.server
Happy coding,
Dani
Hey @thecil!
I have a problem with getting my localhost:8000 to save the changes that I make in the code. I put in the changes, than save. Then I reload the webpage. However the changes do not show up. Then I wait for awile (perhaps an hour or so) then the changes show up. Taha tryed to help but he couldnât figure it out. He allso checked my code and every thing checked out. I was wondering if you could help me with this issue.
Thanks!
Hi @dan-i,
I encounter another problem. Idk why when inspect my dapp code through the browser, the console.
whats the problem?
Here is all my codes.