gethomepage / homepage

A highly customizable homepage (or startpage / application dashboard) with Docker and service API integrations.
https://gethomepage.dev
GNU General Public License v3.0
19.47k stars 1.16k forks source link

[Bug] Coin Market Cap widget: TypeError: Cannot read properties of undefined (reading 'percent_change_1h') #2232

Closed hejunchen closed 1 year ago

hejunchen commented 1 year ago

Description

Coin Market Cap widget does not seem to work properly. I have this widget on my homepage for months already but I judst noticed it started failing today.

The wiki page for this widget is: https://gethomepage.dev/v0.7.4/widgets/services/coin-market-cap/

The setup in my services/yaml is like this: image

But the rendering is like this: image

Steps to reproduce

In Services.yaml file, setup the widget like this:

- Coin Market Cap:
    description: 加密货币市场价格
    widget:
        type: coinmarketcap
        currency: USD # Optional
        symbols: [BTC, ETH]
        key: ?????????????????

The api key needs to be your own API key from Coin Market Cap.

homepage version

v0.7.4 (8ec488e)

Installation method

Docker

Configuration

- Coin Market Cap:
        description: 加密货币市场价格
        widget:
            type: coinmarketcap
            currency: USD # Optional
            symbols: [BTC, ETH]
            key: ???????

Container Logs

[2023-10-22T14:10:55.157Z] error: HTTP Error 500 calling https://pro-api.coinmarketcap.com/v1/cryptocurrency/quotes/latest?convert=USD&symbol=BTC%2CETH [2023-10-22T14:10:59.237Z] error: Error calling https://pro-api.coinmarketcap.com/v1/cryptocurrency/quotes/latest... [2023-10-22T14:10:59.238Z] error: [ 500, Error: connect ETIMEDOUT 65.8.66.87:443 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16) { errno: -110, code: 'ETIMEDOUT', syscall: 'connect', address: '65.8.66.87', port: 443 } ]

Browser Logs

image

Troubleshooting

image

Other

No response

Before submitting, I have made sure to

hejunchen commented 1 year ago

just an update, after a couple of hours since I noticed that issue described at above, the widget started working again.

image

So, i am not sure if this bug still exists, or maybe it was the Coin Market Cap side API data change?

github-actions[bot] commented 9 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns.