dap-ps / infra-dapps

0 stars 0 forks source link

[dev] Broken with "Error fetching dapps" #16

Open jakubgs opened 4 years ago

jakubgs commented 4 years ago

Currently after clearing the IndexedDB from my browser I'm getting this error on https://dev.dap.ps/:

error Error: Error fetching dapps. Details: Returned values aren't valid, did it run Out of Gas?
    at f.<anonymous> (discover-service.js:102)
    at h (runtime.js:45)
    at Generator._invoke (runtime.js:264)
    at Generator.t.<computed> [as throw] (runtime.js:98)
    at n (asyncToGenerator.js:3)
    at u (asyncToGenerator.js:29)

The did it run Out of Gas? part makes me wonder.

Not sure what's that about, but I can see the API returning just fine from /metadata/all:

 $ curl -s https://dev.dap.ps/metadata/all | jq
{
  "Qmf7qAjiruKxnErF33tVr9CVFDLGoPLR92bevpjos5RFdt": {
    "details": {
      "name": "Mobile Moving",
      "url": "https://hard.life",
      "description": "Weekend tests on the go",
      "category": "SOCIAL_NETWORKS",
      "image": "https://dev.dap.ps/metadata/image/QmRRPqUyA8nAwx6PVf3c8MemQS2JNpgxBknaG11h7EXdNU",
      "dateAdded": 1565431027125,
      "uploader": "0x5f3371793285920351344a1eaaaa48d45e600652"
    },
    "status": "APPROVED",
    "_id": "5d4e94f6947c14649ed9d70a",
    "compressedMetadata": "0xd8d13539c2c77d5f7eafa37394dcf6474be2ad953a2db754a02ebcfcc6efbba9",
    "email": "andy@status.im",
    "hash": "Qmf7qAjiruKxnErF33tVr9CVFDLGoPLR92bevpjos5RFdt",
    "__v": 0
  },
...(omitted)...

Any ideas @andytudhope ?

andytudhope commented 4 years ago

As in my email - this is most likely because your MetaMask/Status was not connected to Ropsten.

jakubgs commented 4 years ago

@andytudhope I actually have MetaMask disabled right now in my browser. The weird thing is that https://prod.dap.ps/ loads fine for me, but https://dev.dap.ps/ does not. I'll look into it later today.

jakubgs commented 4 years ago

This might be related to https://github.com/dap-ps/discover/issues/16.

jakubgs commented 4 years ago

If I re-enable MetaMask extension in my browser instead I get this error:

inpage.js:1 Uncaught Error: MetaMask detected another web3.
     MetaMask will not work reliably with another web3 extension.
     This usually happens if you have two MetaMasks installed,
     or MetaMask and another web3 extension. Please remove one
     and try again.
    at Object.<anonymous> (inpage.js:1)
    at Object.2../createStandardProvider (inpage.js:1)
    at i (inpage.js:1)
    at t (inpage.js:1)
    at inpage.js:1
andytudhope commented 4 years ago

The issue is definitely related to #16, although your latest comment is some issue in your own browser, not with the site.