some bugs with sanity

hey @tomasz, I'm noticing a few bugs with sanity. I noticed the upvotes and downvotes are not updating properly. Another issue I noticed is that when I am on my profile it is refreshing over and over again for about 10-15 seconds, I'm not sure if there is a failure to fetch problem....or something like that? might be worth looking into

<3 Radishes

1 comment

Other posts you might like

Hello World

Hello@ it's me, radishes from the egg and radish team

thank you for recommending us to this new website! it seems so empty right now but we can't wait to find more users to interact with!

and we will come here to post our videos and talk about them here as well

the website looks great so far @tomasz-stefaniak + intern

keep up the great work guys! :D

tomaszstefaniaknew user
reply

What should we build next?

We've just finished comments and added some UI/UX improvements to the site, making posts easier to read and the website, I hope, prettier and more aesthetically pleasing. What should we focus on next?

I think notifications would be useful, so that you can see when someone comments or upvotes your posts. This would be limited to a single notification sent once a day that contains a summary of everything relevant that happened.

Anything else that you think Sanity is missing or could do better? Let me know in the comments 💬

sanityfeedbackbuilding in publicuser experiencenotifications
reply

Why I started Sanity Media

If you have watched The Social Dilemma, read Stolen Focus or Hooked you probably already know that present-day social media is designed to be addictive. The more time you spend online, the more money social media companies make.

You may also be aware of how social media algorithms can inadvertently create echo chambers, where people are only exposed to views they already agree with. This leads to increased polarization and political extremism.

I’m trying to build a service that's more down to earth. A place where you can log in, read some news or stories that interest you, and then forget about it until the next day. No infinite scrolls, no constant streams of notifications, and no incentive to keep checking the site throughout the day. While it might be a hard task to remove echo chambers altogether, I hope can at least limit them.

How Sanity works

Here are the main features in a nutshell:

  • All posts created on a given day are published simultaneously at midnight UTC time.
  • You can only make a single post a day - make it count.
  • No infinite scrolling - the number of posts you’ll see is limited.
  • You can upvote and downvote posts - but there’s a combined limit of ten a day.
  • The algorithms are simple. For example, everyone s...
reply

Quick feature announcement

I updated the layout a bit to make it easier to find replies to your posts and comments. This is not backward-compatible yet, so you are only going to see the posts and replies created from now on. I'll run a database migration some time in the next few days so that older replies also appear there.

sanityfeature announcementbuilding in publicux
reply

How I struggled to fix votes on Sanity

Ever since I implemented upvotes a few months ago, I had been struggling with user upvotes/downvotes request occasionly timing out. The bug persisted for a few months and the few times I tried to debug it, I had no success. Is it the database schema? Nope, I use similar schemas for other collections and they work fine. An inefficient MongoDB query? Same thing. No indexing? I indexed the DB even though there are barely any votes in the collection. An issue with Vercel cold start? Also not it, everything within the norm.

Last Friday the rest of the app was finally ready and I wanted to start inviting some users, so I gave up and decided to pay $20/month for Vercel Pro to increase the timeout from 10 to 60 seconds and worry about the bug another day. And then I checked the logs on Vercel Pro...

Unhandled error: MongooseError: Operation `userVotes.findOne()` buffering timed out after 10000ms
    at Timeout.<anonymous> (/var/task/sanity_client/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js:175:23)
    at listOnTimeout (node:internal/timers:569:17)
    at process.processTimers (node:internal/timers:512:7)

Because Mongoose timeout is 10000ms and Vercel's timeout is also 10000ms but this includes the cold start time, this error never popped up on my free plan....

sanityprogrammingvercelmongodbbuilding in public
reply

Strange spike in Sanity traffic

A weird thing happened yesterday, Sanity got this surge of traffic from the US:

Google is the only referrer listed but that only explains 20 visitors and is consistent with the traffic Sanity usually gets:

It's almost entirely from users on Mac and Windows devices, all desktop.

I wonder what it could be, any ideas?

My money is on bot traffic, because it looks like multiple pages were each visited once, as opposite to a single page going viral.

I've also sent out a few CVs the other day so maybe it's a company checking out my work?

building in publicsanityseoindie hackerstraffic surge
reply

Feature announcement 🥳 -> Comments

You can now comment on other posts on Sanity. And you can comment on other people's comments. It's not perfect yet and I'll be making UX improvements here and there over the coming weeks but the essentials are there.

You can leave up to 5 comments a day, so make them count!

sanityfeature announcementcommentsbuilding in publicindie makers
1 comment

Sanity Media is a place to post your increasingly unhinged thoughts

has anyone noticed that a lot of these posts are trending toward the unhinge? Has anyone noticed that many of the media we consume now seems to trend towards the unhinged?

Sanity Media began this trend early on! We are the pioneers of unhinged. If you are interested in posting unhinged media, Sanity Media is the place to do it

reply
feedback