Hacker Newsnew | past | comments | ask | show | jobs | submit | elbajo's commentslogin

Hosting a Next.js app and ever wondered why you see POST requests returning 200 on an endpoint that only support GET? Probably not but it got me curious today. Turns out it might be increasing your hosting cost.

You can reproduce this against Vercel's own homepage:

curl -iX POST https://vercel.com -F 'payload={"message":"Testing multipart form data POST"}' | less

=>

HTTP/2 200 [...] x-powered-by: Next.js, Payload x-vercel-cache: BYPASS

<!DOCTYPE html><html class=...

=> Returns 200, cache is bypassed. Should be 405.

The behavior is also weird where the hosting type (dev, prod local, prod) matters as well as the type of POST request.

Link to my findings: https://github.com/vercel/next.js/issues/78070#issuecomment-...


First thank you for the hard work, many of my local hacks will go away with the new features!

As a convenience and mostly avoid typos in form names I use my own version of https://github.com/raflymln/zod-key-parser. I've been surprised something like this hasn't been implemented directly in the library.

Curious if you think this is out of scope for Zod or just something you haven't gotten around to implement?

(Here are discussions around it: https://github.com/colinhacks/zod/discussions/2134)


Some kind of affordance for FormData/URLSearchParams-style structures is definitely in scope. It was a late cut. Ultimately HTML inputs/forms are an implicit type system unto itself—certainly HTML has a very different notion of "optional" than TypeScript. So my approach to this would likely involve another sub-library ("zod/v4-form").

I like your library! Put in a PR to add it to the ecosystem page :)


Great to hear this is something you are considering!

To be clear: this isn't my library. This is just something I found while trying to solve the FormData issue. Props go to https://github.com/raflymln who created it.


I'm also on Lake Sammamish and have a couple bald eagles living on a tree next to the house! A bit random but if you ever want to meet up, I will be there May-June this year :)


Hi Matt! I did something similar for https://sweetspots.fr/ it would get updated every week and was very helpful for discovering cities.

I stopped maintaining the project 1 year ago so the list are getting stale now but it was fun while it lasted. Glad to see someone else look into this!


I like how you made it into a proper shared map on Google. Happy to see someone make this into more of a product! Why did you stop maintaining it?


Well not exactly a "product" ahah more of a proof of concept. It doesn't make any money (never intended to) and I moved on to other side projects so I do not have time to maintain anymore.


Big fan of the idea!

I've been using Google Apps Script[1] for similar use cases but the limited feature set has been frustrating. Glad to see something more modern come up!

I wonder if HTML parsing is possible since there isn't npm support to import a parser yet. Maybe by dropping the parser as a separate val?

[1] - https://www.google.com/script/start/


Thanks! We manually added `parseXML` to our runtime, which uses fast-xml-parser from npm. Would that work for your usecase? I'm happy to manually add other npm modules by request until we figure out a longer-term solution. Your other idea of adding them as a val also works.


Ideally this is something that could run locally but it looks great thank you!

I wish these kind of projects would show up when searching "Online JSON visualization". Current SEO logic means that website like this have pretty much no chance of making it. Would love to be proven wrong though!


Love this approach, thanks for sharing!

I am trying this on a website for which Puppeteer has trouble loading so I got a heap snapshot directly in Chrome. I was trying to search for relevant objects directly in the Chrome heap viewer but I don't think the search looks inside objects.

I think your tool would work: "puppeteer-heap-snapshot query -f /tmp/file.heapsnapshot -p property1" or really any JSON parser but it requires extra steps. Would you say this is the easiest way to view/debug a heap snapshot?


Still broken when trying to send to the same contact. Also tried with a German VPN and same result.

What's super interesting though is that from what I can see it sends fine to my EU contacts but not to US contacts. I don't want to spam all my friends so I can't collect too many data points.


Would be curious to hear how something like this happens.

My first guess was that the domain was part of a FB deny list but I don't see why it would. It's still up for grabs https://www.whois.com/whois/di.wang and I can't find any history on https://web.archive.org/web/*/http://di.wang/\\*.

Context is that this is part of an email address and my friend can't send their email anymore.


My guess is that facebook engineer named 'di wang' of which at least one exists[1] was attempting to ensure the blocklist functionality worked in production.

Then again, the employee I found is an engineer in the ads department, so blocklist functionality seems unlikely for him to be working on.

[1] see linkedin. I have removed the link to an employees profile who may or may not be relevant and is not a public figure.


> Then again, the employee I found is an engineer in the ads department, so blocklist functionality seems unlikely for him to be working on

... Unless there's also a blocklist for ads, and someone misconfigured the messenger list to pull that one in also. I've seen similar errors in other companies.


Or maybe somebody in FB blocklist dev carried out a vendetta against such engineer…


Could it be some sort of doxxing filter gone wrong, like when Twitter banned the word "Memphis"? https://www.telegraph.co.uk/technology/2021/03/14/twitter-su...


Love the idea! I've been using Couchsurfing for many years and tried their "hangout" feature a few times. It's 95% males harassing traveling women that happen to log in but the 5% left can be great to meet and I've had great experiences. Hopefully you find a way to navigate away from that even as you get more users.


"95% males harassing traveling women that happen to log in but the 5% left can be great to meet"

That sounds like a general description of way too many internet communities, too.


Basically, this. For some reason any kind of "meetup" site always seems to end up having this undercurrent of being a crypto dating site. I wish there were sites where people could sign up for hanging out that were 100% guaranteed platonic. It's so exhausting to have to try filter out that weird dating/sex dynamic apparently shoehorned into everything outside of work.


I think that's impossible. The crypto dating undercurrent is basically life. Even at work, depending on the age of those around you, it's still there. Of course, the older people are, they have better odds of having families so the feeling fades, but I think it never truly goes away.

Anyways, I love the initiative and would love to see it catch on, I love communities like this, but, to be honest, as much as I like looking at them from a distance and admire them, I'd probably be too busy to properly participate in them.


That people are also having sexual desires is normal and allright with me.

But when it becomes the dominant topic everywhere, it is a problem.

Solution is hard of course, with so many singles out there. But I was also single for a long time and as far as I know, I did not harass any women in that time. So it might partly also still be macho thinking, that women are there mainly for sex. It might be even only a small minority doing it, but some aggressive machos can be enough, to destroy a whole community, or make it mostly male. So moderation will be key. "Report user" Etc.


Lately there was some confusion in a (telegram) group about Saunas I am in. Because some newcomers assumed it was actually about swinger sex and not wellness. (despite nothing indicating such)

I mean, we are not living under Taliban rule. You can go to a million sex finder sites if that is what you want. No need to encrypt your desires and bother other people who are in some group for the plainly stated topic.


I played recreational level volleyball and softball for around two decades. More than half the people I dated, I met through those channels (including my wife). I continued to play whether or not I was single and after we married.

Was I encrypting my desires and bothering other people? I don’t think so. It turns out humans will, from time to time, hook up with other humans who they meet doing random things, even if those things aren’t swiping right on an app.


Sure, people are having sexual desires and dating is allright with me, but you were still mainly playing ball there, right?

Like I just wanted mostly to relax in a new awesome wellness place, I have not been before.

But sure, saunas are intense and you see other people without masks, which increase the chance of direct contact.

So if I meet someone nice there and this person is also interested, then sure, things can go another way for us, but not in this particiular place as other people are there for sauna and not an orgy.

Most, especially young women, cannot relax very well, with sexual tensions in the room directed at them, so the sauna culture is very sensitive to keep all that out as much as possible. You are just naked among other people. And relax. You may admire the looks of other bodies, but you are really not supoosed to stare at them, or bother them in any way. But in most public saunas it is sadly mainly horny old people keeping the women out. (which is why I am a bit mad at horny people creeping into private wellness groups looking for swinger sex)


> Was I encrypting my desires and bothering other people? I don’t think so.

I can't recommend affinity groups (especially co-ed sports) enough for ways to be social, exercise, and explore romantic matches (for cheap!) It bakes in compatibility/values traits.

But saunas...?

For saunas, one of many obvious differences (with volleyball/softball) is that I can't expect someone to engage in conversation. For sports, I need to communicate and coordinate. Parent is referring to people lustfully conflating brothel/bathhouse facilities with a family YMCA.

In Germany, sauna clubs are unapologetically marketed as brothels.


"In Germany, sauna clubs are unapologetically marketed as brothels."

I am not sure, if I understand that right, but here in east germany a sauna is about sauna. And fkk is fkk(nudism). And sex is about sex. And surely people are combining it, but I have not heard of a gay "sauna club". That is, I do not know any sauna club at all. I am just in a telegram group, where a privately owned wellness place announces the next days when they are open for people (limited). And general talk around sauna/wellness. Nicer atmosphere, than in the big puplic ones, when you do not own your own sauna, which I would usually prefer.


Maybe the keywords matter? Googling "germany sauna club" gets explicit results.

>I am just in a telegram group, where a privately owned wellness place announces the next days when they are open for people (limited).

In the US, the equivalent are "country clubs."


That's just world-shrinking culture shock. In some countries, only (gay) swingers go to saunas; in that context, it makes sense that they could see an ostensibly sauna-focused group as really about sex.

See also: "oriental massage parlours".


I know that. It still anoys me, as all of this is pretty much out in the open here in germany. Which one would know with 5 minutes of searching.


Such sites cannot exist at this time, basic anthropology at work. They would require revolutionary new gender dynamics.


The gender dynamics would likely have to separate sex drive from reproduction sufficiently that libido is maladaptive and ultimately eliminated from our biology.


This seems to be nearly insurmountable if the primary objective of the site is only to meet people, particularly young single people that have no local social group or attachment.

One minor pivot that OP might consider is make the site about finding ways for travelers to integrate with the local community. Volunteering opportunities would be the primary idea that comes to mind, but if there's any mechanism to integrate with meetup that might be useful as well. Basically tie in systems that have already developed a survival mechanism to filter out creeps.


I suppose it is a completely predictable outcome: internet has been telling young men for years "stop looking for a gf, just get out there, find a hobby, meet up new people".

Besides, "finding a partner" is a much more common and pressing goal than "finding strangers who also like that niche thing I do".


I liked Cousurfing, and paid them money for the service, but then they locked me out asking for a subscription. I'd happily use another application now, especially since their application was rather buggy and servers slow.


I've found it to work great in cities that have reached a critical mass of users, e.g. in Taipei & Kuala Lumpur I often found diverse gender balanced groups meeting. In smaller cities it was 95% dudes looking for a hookup.


Thanks!

I've also used Couchsurfing for many years and had great experiences! Sadly it got paywalled during the pandemic to stay alive and the usage has plummeted. I also always thought it could be have been done better.

The harassment messages will be a challenge. I've just added a step now that first messages will be reviewed and approved by a moderator, but would have to come up with something more scalable long term.


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: