question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Realtime client throw on text[] columns

See original GitHub issue

Realtime client throw on text[] columns

Describe the bug

I have a table called “projects” that has has a column called “admin” which is a text[] column. I can successfully insert and update rows in the table, but the realtime client throws the following error when doing either:

image

If I console.log(value) here: https://github.com/supabase/realtime-js/blob/a956084d62e4b78adee5ad9864b1489ece86382c/src/lib/transformers.ts#L208

I get {example2@email.com,example2@email.com}

If I console.log(‘[’ + value + ‘]’) here: https://github.com/supabase/realtime-js/blob/a956084d62e4b78adee5ad9864b1489ece86382c/src/lib/transformers.ts#L216

I get [example2@email.com,example2@email.com]

which doesn’t parse because there are no quotes around the email strings.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Create a table with a text[] column
  2. Subscribe to changes on that table
  3. Insert into or update a record in the table

System information

  • OS: ChromeOS
  • Browser: Chrome
  • Version of supabase-js: 1.25.0
  • Version of Node.js: 14.16.1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dbradleyflcommented, Oct 24, 2021

Fix confirmed. Thank you!!

1reaction
w3b6x9commented, Oct 23, 2021

@dbradleyfl just wanted to let you know there’s a new supabase-js release (v.1.25.1) with the fix if you want to give it a try. Sorry for the breaking change and thanks for working it out with me!

I’m going to close this issue but feel free to reopen if there are still problems with your transformations.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Work with Lists of Data on the Web - Firebase - Google
You can use the Realtime Database Query class to retrieve data sorted by key, by value, or by value of a child. You...
Read more >
Database Engine events and errors - SQL Server
Consult this MSSQL error code list to find explanations for error messages for SQL Server database engine events.
Read more >
An overview of Error Handling in SSIS packages - SQLShack
Click on a column to verify the data in the source text file and available columns. ... It does not throw any error...
Read more >
Getting Started with Sentiment Analysis using Python
You will be throwing away the pretraining head of the DistilBERT ... Then, upload the dataset and map the text column and target...
Read more >
Dynamic Excel Filter Search Box (Extract data as you Type)
Here I would use three helper columns with formulas to extract the matching data. ... Dynamic Excel Filter - Text reflected in real...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found