upstash / issues

Issue Tracker for Upstash
https://upstash.com
2 stars 0 forks source link

Application throws error on Data Browser tab #68

Open buraksaraloglu opened 10 months ago

buraksaraloglu commented 10 months ago

Hi team,

This one is a pretty straightforward client side rendering bug on page https://console.upstash.com/redis/$databaseId?tab=data-browser

Error: Minified React error #31; 
visit https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=object%20with%20keys%20%7BuserId%2C%20siteUrl%2C%20countryCode%7D

Non minified error is as following:

Objects are not valid as a React child (found: object with keys { ... }). 
If you meant to render a collection of children, use an array instead.
chronark commented 10 months ago

thanks, taking a look likely the databrowser can't handle a specific value

can you share what you inserted into your db?

jha-adrs commented 8 months ago

I am getting the same error in the data browser, my payload is:

{"authorUsername":"5jSuI0B1by","content":{"time":1699378421351,"blocks":[{"id":"G5tHjCCVKW","data":{"text":"gsdfgsdf"},"type":"paragraph"}],"version":"2.28.2"},"id":"cloom1aj2000d4xrcz7a7596s","title":"gertg","currentVote":"UP","createdAt":"2023-11-07T17:33:42.158Z"}

Thorough this:

const cacheResponse = await redis.hset(post:${postId}, cachePayload)

Response is an integer number

jha-adrs commented 7 months ago

I am getting the same error in the data browser, my payload is:

{"authorUsername":"5jSuI0B1by","content":{"time":1699378421351,"blocks":[{"id":"G5tHjCCVKW","data":{"text":"gsdfgsdf"},"type":"paragraph"}],"version":"2.28.2"},"id":"cloom1aj2000d4xrcz7a7596s","title":"gertg","currentVote":"UP","createdAt":"2023-11-07T17:33:42.158Z"}

Thorough this:

const cacheResponse = await redis.hset(post:${postId}, cachePayload)

Response is an integer number

I think I found the error, just stringifying the data did the job for me, but then too the website shouldn't be showing that error, right?