💾 Archived View for wilw.capsule.town › log › 2019-08-20-go-now.gmi captured on 2023-07-10 at 14:06:20. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-04-19)

-=-=-=-=-=-=-

🏡 Home

Back to gemlog

Go backends on Now

Posted on 20 August 2019

ZEIT's Now [1] service is great for deploying apps and APIs that are able to make use of serverless execution models, and I use it for many of my projects (including this website, at the time of writing).

1

I recently needed to deploy a backend written in Go and kept running into problems when trying to read data from the HTTP request body. The client-side app I was developing to communicate with the backend is also written in Go and everything seemed to work fine when running the backend locally (using `now dev`), but the exact same requests failed when running it in production. The client's request body was available when in development, but returned empty strings when running in production.

It eventually boiled down to two things:

2

3

Reply via email

Back to gemlog