You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "DriverK (via GitHub)" <gi...@apache.org> on 2025/09/10 11:15:29 UTC

[I] Unexpected error: TypeError: Do not know how to serialize a BigInt [superset]

DriverK opened a new issue, #35087:
URL: https://github.com/apache/superset/issues/35087

   ### Bug description
   
   
   1 Go to Dashboard
   2 Click on 'Add or edit filets'
   3 see error 'Unexpected error: TypeError: Do not know how to serialize a BigInt'
   4 In the end,I find out the reason,because I query a BigInt filed。
   
   ![Image](https://github.com/user-attachments/assets/6399b056-1d1c-4f7d-8f65-c603e934529e)
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [ ] I have searched Superset docs and Slack and didn't find a solution to my problem.
   - [ ] I have searched the GitHub issue tracker and didn't find a similar bug report.
   - [ ] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Unexpected error: TypeError: Do not know how to serialize a BigInt [superset]

Posted by "duarte-pompeu-feedzai (via GitHub)" <gi...@apache.org>.
duarte-pompeu-feedzai commented on issue #35087:
URL: https://github.com/apache/superset/issues/35087#issuecomment-3737911992

   Does this fix it? https://github.com/apache/superset/pull/34539


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Unexpected error: TypeError: Do not know how to serialize a BigInt [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas closed issue #35087: Unexpected error: TypeError: Do not know how to serialize a BigInt
URL: https://github.com/apache/superset/issues/35087


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Unexpected error: TypeError: Do not know how to serialize a BigInt [superset]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #35087:
URL: https://github.com/apache/superset/issues/35087#issuecomment-3274514183

   <!-- Greeting -->
   Hi @DriverK! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team.
   
   <!-- Answer -->
   This error happens because JavaScript's BigInt type can't be serialized with JSON.stringify, and Superset's frontend and backend previously didn't consistently convert BigInt values to strings before serialization. Recent fixes in Superset master/latest-dev (July–August 2025) address this: the SelectFilterPlugin now stringifies BigInt values before comparison and serialization, which resolves the error in dashboard filters, and table chart rendering also handles BigInt values safely ([#34137](https://github.com/apache/superset/pull/34137), [#34556](https://github.com/apache/superset/pull/34556)). The backend JSON utility also supports converting BigInt to strings during serialization ([#29861](https://github.com/apache/superset/pull/29861)).
   
   If you're on an older version, you can work around this by casting BigInt fields to string in your SQL queries, or patching your frontend code to stringify BigInt values before sending them to the backend. If possible, upgrade to a commit after August 2025 to get these fixes directly. For more details, see the linked PRs.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/f2b8ea37-7c77-4ffd-8555-6278211606dc?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/f2b8ea37-7c77-4ffd-8555-6278211606dc?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/f2b8ea37-7c77-4ffd-8555-6278211606dc?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/f2b8ea37-7c77-4ffd-8555-6278211606dc?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/f2b8ea37-7c77-4ffd-8555-6278211606dc?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/f2b8ea37-7c77-4ffd-8555-6278211606dc?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/f2b8ea37-7c77-4ffd-8555-6278211606dc?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu
 b)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/35087)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Unexpected error: TypeError: Do not know how to serialize a BigInt [superset]

Posted by "msyavuz (via GitHub)" <gi...@apache.org>.
msyavuz commented on issue #35087:
URL: https://github.com/apache/superset/issues/35087#issuecomment-3275802986

   If this is on master maybe @justinpark might have some insight. I see his pr fixing an adjacent issue.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org