Closed Keith-CY closed 6 months ago
https://v1.gwscan.com/tokens/native
Visit YOK detail and get an error by request
curl 'https://api.v1.gwscan.com/graphql' \ -H 'authority: api.v1.gwscan.com' \ -H 'accept: application/json' \ -H 'accept-language: en,de;q=0.9,zh-CN;q=0.8,zh;q=0.7,am;q=0.6' \ -H 'content-type: application/json' \ -H 'dnt: 1' \ -H 'origin: https://v1.gwscan.com' \ -H 'referer: https://v1.gwscan.com/' \ -H 'sec-ch-ua: "Not_A Brand";v="8", "Chromium";v="120", "Google Chrome";v="120"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-fetch-dest: empty' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-site: same-site' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36' \ --data-raw '{"query":"\n query ($id: Int) {\n token: udt(input: { id: $id }) {\n id\n name\n symbol\n icon\n type\n bridge_account_id\n eth_type\n decimal\n official_site\n description\n supply\n holders_count\n contract_address_hash\n token_exchange_rate {\n exchange_rate\n symbol\n timestamp\n }\n }\n }\n","variables":{"id":133}}' \ --compressed
The response is 500 Internal Server Error
The reason was exchange_rate returns 1 but in graphql the exchange_rate type was decimal.So it caused error. PR: https://github.com/Magickbase/godwoken_explorer/pull/1577
Verified
https://v1.gwscan.com/tokens/native
Visit YOK detail and get an error by request
The response is 500 Internal Server Error