cardano-graphql icon indicating copy to clipboard operation
cardano-graphql copied to clipboard

ERROR: value too long for type character varying(65536)

Open ghost opened this issue 3 years ago • 11 comments

Summary

The logs from postgres

2022-09-21 00:46:56.905 UTC [16278] ERROR:  value too long for type character varying(65536)
2022-09-21 00:46:56.905 UTC [16278] STATEMENT:  WITH "Asset__mutation_result_alias" AS (UPDATE "public"."Asset" SET "decimals" = ($1)::integer,"description" = ($2)::text,"logo" = ($3)::text,"metadataHash" = ($4)::bpchar,"name" = ($5)::text,"ticker" = ($6)::text,"url" = ($7)::text  WHERE (('true') AND ((((("public"."Asset"."assetId") = (($8)::bytea)) AND ('true')) AND ('true')) AND ('true'))) RETURNING * , CASE WHEN 'true' THEN NULL ELSE "hdb_catalog"."check_violation"('update check constraint failed')  END ), "Asset__all_columns_alias" AS (SELECT  "assetId" , "assetName" , "decimals" , "description" , "fingerprint" , "firstAppearedInSlot" , "logo" , "metadataHash" , "name" , "policyId" , "ticker" , "url"  FROM "Asset__mutation_result_alias"      ) SELECT  json_build_object('affected_rows', (SELECT  COUNT(*)  FROM "Asset__all_columns_alias"      ), 'returning', (SELECT  coalesce(json_agg("root" ), '[]' ) AS "root" FROM  (SELECT  row_to_json((SELECT  "_1_e"  FROM  (SELECT  "_0_root.base"."assetId" AS "assetId"       ) AS "_1_e"      ) ) AS "root" FROM  (SELECT  *  FROM "Asset__all_columns_alias" WHERE ('true')     ) AS "_0_root.base"      ) AS "_2_root"      ) ) 

Steps to reproduce the bug

No response

Actual Result

I got the log from postgres

Expected Result

There should be no errors

Environment

Kubernetes 1.23.7

inputoutput/cardano-graphql 7.0.1

inputoutput/cardano-db-sync 13.0.4

Platform

  • [X] Linux (Ubuntu)
  • [ ] Linux (Other)
  • [ ] macOS
  • [ ] Windows

Platform version

No response

Runtime

  • [ ] Node.js
  • [X] Docker

Runtime version

latest docker

ghost avatar Sep 21 '22 02:09 ghost

Is this on mainnet?

rhyslbw avatar Sep 22 '22 01:09 rhyslbw

yeah, it's on mainnet

ghost avatar Sep 22 '22 02:09 ghost

Could this be blocking db-sync to continue syncing? @rhyslbw

RdeWilde avatar Sep 28 '22 09:09 RdeWilde

@lsdbitrue did you manage to solve this?

RdeWilde avatar Oct 04 '22 07:10 RdeWilde

Hi @rhyslbw ,

Even I am facing ERROR: value too long for type character varying(65536) issue in postgres , using cardano-graphql:7.0.2-mainnet. Any update on above issue?

sowna avatar Nov 30 '22 12:11 sowna

Hi @RdeWilde, are you manage to solve this issue?

sowna avatar Nov 30 '22 12:11 sowna

same errors syncing from genesis

infnada avatar Dec 06 '22 10:12 infnada

I have the same problem! inputoutput/cardano-graphql 7.0.2

zhy827827 avatar Dec 11 '22 15:12 zhy827827

Same problem with syncing from snapshot

D-Biela avatar Dec 13 '22 21:12 D-Biela

Hi @RdeWilde, are you manage to solve this issue?

No, but haven't been trying with the latest versions.

RdeWilde avatar Dec 28 '22 10:12 RdeWilde

Can graphql 8.0.0 solve this? https://github.com/input-output-hk/cardano-graphql/commit/a4092f878e8b548d34f9fc0c5bddaa559d5a16f5

sokiaoba avatar Mar 09 '23 10:03 sokiaoba