Relative Content

Tag Archive for swiftservervapor

Vapor Route Returns 404

I have a vapor server running on 127.0.0.1:8080. I added a new login route at residentusers/login. When I use Postman (or the client app) to access this route, I get a 404 error.

Vapor Server Freezes When Running

I’m wondering if anyone has experienced this? I am trying to deploy a vapor server on a Digital Ocean droplet. The server builds fine but when I run it, the screen stays stuck on: [ NOTICE ] Server starting on http://127.0.0.1:8080. I am using a barebones vapor project, so I can verify this is not due to some errant code I wrote.

Illegal Instruction Error when Building Vapor Project on Server

My vapor project runs fine on my local machine, but when I try to build it on the server (Ubuntu 22.04) I get an error. I installed Swift and Vapor on the server prior to building the project. The picture I’m attaching shows a backtrace; can anyone help me make sense of this or how to trace the problem?