Giter Site home page Giter Site logo

Comments (12)

ashleshsortee avatar ashleshsortee commented on May 18, 2024

Can you post some more details on what steps you did and on which step you are facing an issue?

from festival-marketplace.

alone-as-a-god avatar alone-as-a-god commented on May 18, 2024

So I installed all the modules etc without any issues and followed the "Running the application" guide 1:1, again, without any issues at all. But when I reached the page where I can create a new festival, enter all the data and click on the "Create Festival" button, a notification pops up that says 'Invalid Json Response ""'. The Error that is in the body of my issue is the one that shows up in the developer console.

I do have my Wallets in metamask and they show the correct amount of both ETH and FEST. And it says it connected successfully to the site.

I hope this is specific enough, if you need any further details please feel free to ask.

from festival-marketplace.

ashleshsortee avatar ashleshsortee commented on May 18, 2024

Can you check if the ganache container is running using this docker ps | grep ganache command?

I was able to replicate your issue when the ganache container is not running. Do not terminate the logs after step 3. Open the new terminal tab and continue with the next steps.

from festival-marketplace.

alone-as-a-god avatar alone-as-a-god commented on May 18, 2024

Apache should be running according to the output I got from that command:

a431c896bd1c   client_react                          "docker-entrypoint.sā€¦"   7 hours ago    Up 37 seconds   0.0.0.0:3000->3000/tcp   client_react_1
2894c402a86b   festival-marketplace-master_ganache   "docker-entrypoint.sā€¦"   23 hours ago   Up 52 seconds   0.0.0.0:8545->8545/tcp   festival-marketplace-master_ganache_1

I also always used new terminal tabs for everything, so that shouldn't be the issue either

from festival-marketplace.

ashleshsortee avatar ashleshsortee commented on May 18, 2024

Seems weird as Metamask using the same RPC URL http://0.0.0.0:8545 is able to fetch information. Can you log the following parameters before line 30 and get the console output?
https://github.com/ashleshsortee/festival-marketplace/blob/master/client/src/components/Festival.jsx#L31-L35

from festival-marketplace.

alone-as-a-god avatar alone-as-a-god commented on May 18, 2024

Sorry for my ignorance but how would I log that data?

from festival-marketplace.

ashleshsortee avatar ashleshsortee commented on May 18, 2024

Add this before line 30 -

console.log(
    festToken._address,
    name,
    symbol,
    web3.utils.toWei(price, 'ether'),
    supply
)

from festival-marketplace.

alone-as-a-god avatar alone-as-a-god commented on May 18, 2024

The logged data is as follows:
0x504e13b4e10487C9FfA4F4a0CA7823A7aDbEcb4F TestFest TFT 100000000000000 10
Where as the entered Data is:
FestName: TestFest
Fest Symbol: TFT
Price:0.0001
Amount: 10

from festival-marketplace.

ashleshsortee avatar ashleshsortee commented on May 18, 2024

Looks good till here. Any way you can share the ganache container logs. Something is really off while spinning up the ganache container.
Also, can you try searching in the ganache logs if you have this log Listening on 0.0.0.0:8545

from festival-marketplace.

alone-as-a-god avatar alone-as-a-god commented on May 18, 2024

So the basic logs showed that it is indeed Listening on that Adress/port. So I added the --verbose argument to get a more precise log, since I wasn't exactly sure what you needed. Anyways heres the pastebin (Since it's a lot of lines oof)
https://pastebin.com/R8GWUkBX

I hope this is in any way helpful

from festival-marketplace.

ashleshsortee avatar ashleshsortee commented on May 18, 2024

Can you please re-share it? Looks like it got expired. Sorry was busy with some other work, so didn't have a chance to look into it.

from festival-marketplace.

alone-as-a-god avatar alone-as-a-god commented on May 18, 2024

This time I used mystb.in since pastebin seemingly deletes code sometimes for no proper reason. Still, ganache is listening.
https://mystb.in/PerformedCastWaters.apache

from festival-marketplace.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.