Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

value "10000000000000000000000" is out of range for type bigint #5292

Closed
yangwao opened this issue Mar 17, 2023 · 8 comments
Closed

value "10000000000000000000000" is out of range for type bigint #5292

yangwao opened this issue Mar 17, 2023 · 8 comments
Labels
$ ~<50usd 🧊- rubick bug Something isn't working p1 preventing everyone from using app

Comments

@yangwao
Copy link
Member

yangwao commented Mar 17, 2023

@ beta

image

image

coming from rubick

https://squid.subsquid.io/rubick/v/009-rc0/graphql

{
    "errors": [
        {
            "message": "value \"10000000000000000000000\" is out of range for type bigint",
            "locations": [
                {
                    "line": 2,
                    "column": 3
                }
            ],
            "path": [
                "events"
            ],
            "extensions": {
                "code": "INTERNAL_SERVER_ERROR",
                "exception": {
                    "query": "SELECT\n    DISTINCT ne.id as id,\n    ne.name as name,\n    ne.issuer as issuer,\n    ne.metadata as metadata,\n    e.current_owner,\n    me.image as image,\n    me.animation_url,\n    MAX(e.timestamp) as timestamp,\n    MAX(e.meta::bigint) as value,\n    ne.collection_id as collection_id,\n    ce.name as collection_name\n\nFROM event e\n    JOIN nft_entity ne on e.nft_id = ne.id\n    LEFT join metadata_entity me on me.id = ne.metadata\n    LEFT JOIN collection_entity ce on ne.collection_id = ce.id\nWHERE\n    e.interaction = $1\n    AND ne.burned = false\n    \nGROUP BY ne.id, me.id, e.current_owner, me.image, ce.name\nORDER BY MAX(e.timestamp) DESC\nLIMIT $2 OFFSET $3",
                    "parameters": [
                        "LIST",
                        30,
                        0
                    ],
                    "driverError": {
                        "length": 131,
                        "name": "error",
                        "severity": "ERROR",
                        "code": "22003",
                        "where": "parallel worker",
                        "file": "int8.c",
                        "line": "116",
                        "routine": "scanint8"
                    },
                    "length": 131,
                    "severity": "ERROR",
                    "code": "22003",
                    "where": "parallel worker",
                    "file": "int8.c",
                    "line": "116",
                    "routine": "scanint8",
                    "stacktrace": [
                        "QueryFailedError: value \"10000000000000000000000\" is out of range for type bigint",
                        "    at PostgresQueryRunner.query (/squid/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:211:19)",
                        "    at runMicrotasks (<anonymous>)",
                        "    at processTicksAndRejections (node:internal/process/task_queues:96:5)",
                        "    at async DataSource.query (/squid/node_modules/typeorm/data-source/DataSource.js:341:20)",
                        "    at async EventResolver.lastEvent (/squid/lib/server-extension/resolvers/event.js:33:24)"
                    ]
                }
            }
        }
    ],
    "data": null
}

Close issue if it's reported or being solved

@yangwao yangwao added bug Something isn't working $ ~<50usd p2 core functionality, or is affecting 60% of app 🧊- rubick labels Mar 17, 2023
@roiLeo
Copy link
Contributor

roiLeo commented Mar 17, 2023

might be same fix as #4894

@yangwao
Copy link
Member Author

yangwao commented Mar 17, 2023

related? haven't manage to see which query is it

image

@yangwao yangwao added p1 preventing everyone from using app and removed p2 core functionality, or is affecting 60% of app labels Mar 17, 2023
@daiagi
Copy link
Contributor

daiagi commented Mar 18, 2023

it comes from line 58 in useCarousel.ts

  const { data: dataRmrk2, loading: loadingRmrk2 } = useChainEvents(
    'rmrk2',
    type
  )

@daiagi
Copy link
Contributor

daiagi commented Mar 20, 2023

@vikiival this has been fixed by commit kodadot/rubick@4d91deb
in rubick hasn't it?

need to change url in constants.ts or something?

@vikiival
Copy link
Member

the problem is that subquery has sort of caching I already redeployed that without any success

@vikiival
Copy link
Member

everything was fixed here related to issue:

@vikiival
Copy link
Member

Made hard reset

🦑 Releasing the squid at git@github.com:kodadot/rubick.git#293e682b1be6645abf671e6f307ee741b5668ec5
◷ You may now detach from the build process by pressing Ctrl + C. The Squid deployment will continue uninterrupted.
◷ The new squid will be available as soon as the deployment is complete.
◷ Preparing your squid... ⡿

@daiagi
Copy link
Contributor

daiagi commented Mar 20, 2023

✅ wfm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
$ ~<50usd 🧊- rubick bug Something isn't working p1 preventing everyone from using app
Projects
None yet
Development

No branches or pull requests

4 participants