DeFiCh / DeFiCh/metascan

The website can not load details of addresses

Open
#331 3 comments 0 reactions 0 assignees View on GitHub
kind/bug needs/area needs/priority needs/triage
Dominant language
TypeScript
Stars
3
Forks
2
PR merge metrics
No merged PRs in 30d

Description

#### What happened:

The website https://meta.defiscan.live/ no longer displays details of contracts

#### What you expected to happen:

See from the address Transactions / Contracts / Tokens

#### How to reproduce it (as minimally and precisely as possible):

open https://meta.defiscan.live/address/0xa64BbC80313315B4345f90d3213E72935Ff9434e
No Transactions, Contracts and Tokens are shown.

See browser console:

```
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). content.js:64:35
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). content.js:64:260
Content-Security-Policy: The page’s settings blocked the loading of a resource at data: (“media-src”). 0xa64BbC80313315B4345f90d3213E72935Ff9434e
Content-Security-Policy: The page’s settings blocked the loading of a resource at https://blockscout.changi.ocean.jellyfishsdk.com/api/v1/health (“connect-src”). _app-b50d24ac34c54cac.js:13:55955
Content-Security-Policy: The page’s settings blocked the loading of a resource at https://blockscout.changi.ocean.jellyfishsdk.com/api/v2/addresses/0xa64BbC80313315B4345f90d3213E72935Ff9434e/transactions (“connect-src”). _app-b50d24ac34c54cac.js:1:58024
Uncaught (in promise)
Object { status: "FETCH_ERROR", error: "TypeError: NetworkError when attempting to fetch resource." }

Content-Security-Policy: The page’s settings blocked the loading of a resource at https://meta.defiscan.live/_next/static/chunks/pages/index-26ec9bcf52baa5d9.js (“default-src”). 0xa64BbC80313315B4345f90d3213E72935Ff9434e
Content-Security-Policy: The page’s settings blocked the loading of a resource at https://meta.defiscan.live/_next/static/chunks/4873-e7cfd642bf4d88ed.js (“default-src”). 0xa64BbC80313315B4345f90d3213E72935Ff9434e
Content-Security-Policy: The page’s settings blocked the loading of a resource at https://meta.defiscan.live/_next/static/chunks/pages/blocks-8f8931bbcaa34fa9.js (“default-src”). 0xa64BbC80313315B4345f90d3213E72935Ff9434e
Content-Security-Policy: The page’s settings blocked the loading of a resource at https://meta.defiscan.live/_next/static/chunks/pages/txs-ed0773e0f814f6a7.js (“default-src”). 0xa64BbC80313315B4345f90d3213E72935Ff9434e
Content-Security-Policy: The page’s settings blocked the loading of a resource at https://meta.defiscan.live/_next/static/chunks/2325-993306ca3376ac26.js (“default-src”). 0xa64BbC80313315B4345f90d3213E72935Ff9434e
Content-Security-Policy: The page’s settings blocked the loading of a resource at https://meta.defiscan.live/_next/static/chunks/pages/contracts-f97690ae59d52b7d.js (“default-src”). 0xa64BbC80313315B4345f90d3213E72935Ff9434e
Content-Security-Policy: The page’s settings blocked the loading of a resource at https://meta.defiscan.live/_next/static/chunks/pages/tokens-4de2b502758d8984.js (“default-src”).
```

Contributor guide

Open the contributing guide

Research direction

Open the reproduced address URL and inspect the browser console and blocked network requests, especially the Blockscout address-transactions endpoint and the _next static chunks named in the report. Determine why the website’s requests are blocked by Content Security Policy; done means the address page displays Transactions, Contracts, and Tokens without these errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
next.js, typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.