SuperTokens core threw an error for a POST request to path: /recipe/signup with status code: 500 and message: Internal Error

This error can be caused by attempting to create and manage user accounts while using MongoDB as the database for SuperTokens. Unfortunately, SuperTokens can only use MongoDB as the backend database for session management. To fix this error, you’ll have to use a different database like MySQL. I discovered this error while working on the … Read more

Proxmox: MongoDB 5.0+ requires a CPU with AVX support

This error is caused by running MongoDB 5.0+ on a VM using a KVM64 CPU type. The fix for this is to switch your CPU type to host (if your host CPU supports AVX), or use version 4.4.18 of MongoDB instead. I ran into this error when working on the SupeTokens example. If you want … Read more

Full-Stack Example: Secure your FastAPI / React app with SuperTokens

The code for this article is a template repository on GitHub, and can be found here: Feel free to use it as a starting point for your own apps. SuperTokens is an open source authentication solution for the apps you build. You might be interested in something like SuperTokens if: If any of that … Read more

Docker: failed to solve with frontend dockerfile.v0

This error is caused by docker-compose not being able to find a Dockerfile in your build context. Fix it by making sure your Dockerfile exists in that directory, and that there’s no typo in the name. It has to be named exactly “Dockerfile”. I came across this error when while working on a guide to … Read more

How to install the latest version of Docker on Ubuntu

You can install the latest version of Docker on Ubuntu with the following command: This will run the script described below, which is also hosted as a gist on GitHub. Why not use apt? The apt repository does not contain the latest version of Docker. As of this writing, the latest version of Docker is … Read more