# Vapor

**URL:** https://forums.swift.org/c/related-projects/vapor/30.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [About the Vapor category](https://forums.swift.org/t/about-the-vapor-category/12499)

<div class="topic-metadata">

**Author:** [@Nicole\_Jacque](https://forums.swift.org/u/Nicole_Jacque)\
**Replies:** 0

</div>

---

## [Vapor 5 Beta 1 Released](https://forums.swift.org/t/vapor-5-beta-1-released/89572)

<div class="topic-metadata">

**Author:** [@0xTim](https://forums.swift.org/u/0xTim)\
**Replies:** 4\
**Last updated:** [September 21, 2026, 2:12pm UTC](https://forums.swift.org/t/vapor-5-beta-1-released/89572 "2026-09-21T14:12:40Z")

</div>

I'm super excited to announce the first Vapor 5 beta, released today on the 10th anniversary of Vapor 1.0! It's a complete rewrite of the framework, built on top of the latest ecosystem libraries and real support for str…

---

## [SecurityKit: Production-Ready RBAC & Token Management, Now Open Source](https://forums.swift.org/t/securitykit-production-ready-rbac-token-management-now-open-source/86988)

<div class="topic-metadata">

**Author:** [@cabrerasiel](https://forums.swift.org/u/cabrerasiel)\
**Replies:** 5\
**Last updated:** [September 14, 2026, 8:52pm UTC](https://forums.swift.org/t/securitykit-production-ready-rbac-token-management-now-open-source/86988 "2026-09-14T20:52:38Z")

</div>

SecurityKit: Production-Ready RBAC & Token Management, Now Open Source A modular Swift package that gives Vapor 4 applications a complete authentication and authorization stack — one that you'd actually want to ship. I…

---

## [Vapor 4 and MacPorts](https://forums.swift.org/t/vapor-4-and-macports/34365)

<div class="topic-metadata">

**Author:** [@IOOI](https://forums.swift.org/u/IOOI)\
**Replies:** 19\
**Last updated:** [August 21, 2026, 6:56pm UTC](https://forums.swift.org/t/vapor-4-and-macports/34365 "2026-08-21T18:56:02Z")

</div>

Hi everybody, I was going to try out Vapor 4 and followed the instructions here: Vapor: Install → macOS . However, it seems that Homebrew is required when installing Vapor 4 on the Mac. Since I am a long time MacPorts …

---

## [What is the smallest Docker container to run a Vapor app?](https://forums.swift.org/t/what-is-the-smallest-docker-container-to-run-a-vapor-app/88507)

<div class="topic-metadata">

**Author:** [@IOOI](https://forums.swift.org/u/IOOI)\
**Replies:** 2\
**Last updated:** [July 24, 2026, 11:08pm UTC](https://forums.swift.org/t/what-is-the-smallest-docker-container-to-run-a-vapor-app/88507 "2026-07-24T23:08:08Z")

</div>

Hi there, I asked a similar question years ago but don't want to exhume this thread now. From what is installed when creating a new vapor app it seems ubuntu-latest is required. But my boss told me this is too large, he…

---

## [Multiple language Vapor package](https://forums.swift.org/t/multiple-language-vapor-package/86221)

<div class="topic-metadata">

**Author:** [@simon68](https://forums.swift.org/u/simon68)\
**Replies:** 4\
**Last updated:** [April 28, 2026, 3:21pm UTC](https://forums.swift.org/t/multiple-language-vapor-package/86221 "2026-04-28T15:21:20Z")

</div>

Hi all, I am at early stage of the development of a Swift package using Fluent database and I am trying to think ahead what I should do to allow easy multiple language support. In my db, a few tables have a String type…

---

## [Optional parameter path component](https://forums.swift.org/t/optional-parameter-path-component/86271)

<div class="topic-metadata">

**Author:** [@simon68](https://forums.swift.org/u/simon68)\
**Replies:** 2\
**Last updated:** [April 27, 2026, 8:32am UTC](https://forums.swift.org/t/optional-parameter-path-component/86271 "2026-04-27T08:32:36Z")

</div>

Hi all, I am trying to apply the tip given at docs.vapor.codes/basics/routing \> Parameters namely to handle the possibility of nil for a parameter path component. However if my route is : wastes.get(":scan",…

---

## [Model.update gives neither result nor error](https://forums.swift.org/t/model-update-gives-neither-result-nor-error/86175)

<div class="topic-metadata">

**Author:** [@simon68](https://forums.swift.org/u/simon68)\
**Replies:** 1\
**Last updated:** [April 22, 2026, 12:34pm UTC](https://forums.swift.org/t/model-update-gives-neither-result-nor-error/86175 "2026-04-22T12:34:03Z")

</div>

In one of my route (update function) I am trying to: look for a model in the database if found, update one of its parent field update the model on the database. Here is the snippet: @Sendable func update(req:…

---

## [.env files are not found when running unit tests using Xcode 26.4](https://forums.swift.org/t/env-files-are-not-found-when-running-unit-tests-using-xcode-26-4/86043)

<div class="topic-metadata">

**Author:** [@marco.masser](https://forums.swift.org/u/marco.masser)\
**Replies:** 4\
**Last updated:** [April 17, 2026, 11:41am UTC](https://forums.swift.org/t/env-files-are-not-found-when-running-unit-tests-using-xcode-26-4/86043 "2026-04-17T11:41:45Z")

</div>

This isn’t directly related to Vapor and certainly not Vapor’s fault, but I’ve run into this issue in a Vapor project and I assume other people who follow Vapor’s documentation are affected by this, too: According to th…

---

## [Vapor fetching single values from the query string using subscripts](https://forums.swift.org/t/vapor-fetching-single-values-from-the-query-string-using-subscripts/86015)

<div class="topic-metadata">

**Author:** [@simon68](https://forums.swift.org/u/simon68)\
**Replies:** 3\
**Last updated:** [April 14, 2026, 4:33pm UTC](https://forums.swift.org/t/vapor-fetching-single-values-from-the-query-string-using-subscripts/86015 "2026-04-14T16:33:50Z")

</div>

Hi guys, in one of my Vapor routes I am using the following snippet: let barcode = try req.content.get(String.self, at: "barcode") if let code = try await Barcode.find(barcode, on: req.db) { ... } whi…

---

## [Include a css file in a style tag in Elementary](https://forums.swift.org/t/include-a-css-file-in-a-style-tag-in-elementary/85793)

<div class="topic-metadata">

**Author:** [@thePianoKid](https://forums.swift.org/u/thePianoKid)\
**Replies:** 2\
**Last updated:** [April 3, 2026, 9:53pm UTC](https://forums.swift.org/t/include-a-css-file-in-a-style-tag-in-elementary/85793 "2026-04-03T21:53:14Z")

</div>

I have a css file that I want to include in an Elementary style tag. Right now, I'm doing it like this: if let fileURL = Bundle.module.url(forResource: "theme", withExtension: "css"), let css = try? String(contents…

---

## [Type 'User' does not conform to protocol 'ModelAuthenticatable'](https://forums.swift.org/t/type-user-does-not-conform-to-protocol-modelauthenticatable/84977)

<div class="topic-metadata">

**Author:** [@simon68](https://forums.swift.org/u/simon68)\
**Replies:** 21\
**Last updated:** [March 18, 2026, 3:46pm UTC](https://forums.swift.org/t/type-user-does-not-conform-to-protocol-modelauthenticatable/84977 "2026-03-18T15:46:10Z")

</div>

Trying to apply Vapor Doc Security -\> Authentication when adding the snippet: extension User: ModelAuthenticatable { static let usernameKey = \\User.$email static let passwordHashKey = \\User.$passwordHash fu…

---

## [Fail to create children instance in SQLite database](https://forums.swift.org/t/fail-to-create-children-instance-in-sqlite-database/84944)

<div class="topic-metadata">

**Author:** [@simon68](https://forums.swift.org/u/simon68)\
**Replies:** 3\
**Last updated:** [February 24, 2026, 1:29pm UTC](https://forums.swift.org/t/fail-to-create-children-instance-in-sqlite-database/84944 "2026-02-24T13:29:29Z")

</div>

I am (desperately) trying to build a simple database example with a one-to-many relationship. But at the end, when I try to create a children entity I receive the following error, which I am unable to understand. \[ WAR…

---

## [Handling File Uploads with Multipart Form Data](https://forums.swift.org/t/handling-file-uploads-with-multipart-form-data/84808)

<div class="topic-metadata">

**Author:** [@simon68](https://forums.swift.org/u/simon68)\
**Replies:** 13\
**Last updated:** [February 23, 2026, 10:55am UTC](https://forums.swift.org/t/handling-file-uploads-with-multipart-form-data/84808 "2026-02-23T10:55:15Z")

</div>

Hi, I am trying to create a route to upload a file in the Public/uploads directory of my App. For this purpose I added the multipart-kit to my package. Here is my route: app.post("upload") { req async throws -\> St…

---

## [Build failure from \`HOTP\` and \`TOTP\` checking \`Sendable\`](https://forums.swift.org/t/build-failure-from-hotp-and-totp-checking-sendable/83027)

<div class="topic-metadata">

**Author:** [@vanvoorden](https://forums.swift.org/u/vanvoorden)\
**Replies:** 1\
**Last updated:** [November 7, 2025, 12:03am UTC](https://forums.swift.org/t/build-failure-from-hotp-and-totp-checking-sendable/83027 "2025-11-07T00:03:30Z")

</div>

I just now started seeing these build failure errors related to a Sendable requirement: error: stored property 'key' of 'Sendable'-conforming struct 'HOTP' has non-sendable type 'SymmetricKey' 2025-11-04T19:55:45.992902…

---

## [Creating a server using vapor and having issues](https://forums.swift.org/t/creating-a-server-using-vapor-and-having-issues/82752)

<div class="topic-metadata">

**Author:** [@Murray2007](https://forums.swift.org/u/Murray2007)\
**Replies:** 13\
**Last updated:** [October 25, 2025, 8:40am UTC](https://forums.swift.org/t/creating-a-server-using-vapor-and-having-issues/82752 "2025-10-25T08:40:52Z")

</div>

ok I am clueless! I have been trying to create a server for an app im building using vapor, I have been using chat GPT to help build it. I keep coming up against signer errors. that being said I have discovered you can d…

---

## [How to define a Vapor route to retrieve MySQL table columns names](https://forums.swift.org/t/how-to-define-a-vapor-route-to-retrieve-mysql-table-columns-names/82257)

<div class="topic-metadata">

**Author:** [@JPM](https://forums.swift.org/u/JPM)\
**Replies:** 0\
**Last updated:** [September 20, 2025, 4:18pm UTC](https://forums.swift.org/t/how-to-define-a-vapor-route-to-retrieve-mysql-table-columns-names/82257 "2025-09-20T16:18:53Z")

</div>

I want to define a route to retrieve my table columns names. This code (embedded in app.get("table-columns") ): let tableName = Vocabulario.schema let query = SQLQueryString("SELECT COLUMN\_NAME FROM INFORMATION\_SCHEM…

---

## [Fluent db migration fails](https://forums.swift.org/t/fluent-db-migration-fails/75626)

<div class="topic-metadata">

**Author:** [@Will](https://forums.swift.org/u/Will)\
**Replies:** 8\
**Last updated:** [July 29, 2025, 9:48am UTC](https://forums.swift.org/t/fluent-db-migration-fails/75626 "2025-07-29T09:48:59Z")

</div>

I'm trying to connect to mysql db on clever cloud dev account. I'm able to query the db in my vapor app fine. However, I cannot run migrate to create tables. I get the following error: \[ ERROR \] Opening new connection f…

---

## [Leaf template extension issues](https://forums.swift.org/t/leaf-template-extension-issues/70923)

<div class="topic-metadata">

**Author:** [@Nebue](https://forums.swift.org/u/Nebue)\
**Replies:** 8\
**Last updated:** [July 25, 2025, 6:16pm UTC](https://forums.swift.org/t/leaf-template-extension-issues/70923 "2025-07-25T18:16:45Z")

</div>

Hi there! I am just starting my first project with vapor and leaf. All sound nice but I am running into some early issues when rendering embedded templates. It just does not load the content of my child templates, tell…

---

## [How to obtain error from postgres-nio?](https://forums.swift.org/t/how-to-obtain-error-from-postgres-nio/81084)

<div class="topic-metadata">

**Author:** [@Q-Bert](https://forums.swift.org/u/Q-Bert)\
**Replies:** 0\
**Last updated:** [July 13, 2025, 11:24pm UTC](https://forums.swift.org/t/how-to-obtain-error-from-postgres-nio/81084 "2025-07-13T23:24:05Z")

</div>

This is a follow up to an earlier post. I don't know the proper etiquette to follow in these cases but thought I'd post in the Vapor category this time around considering the package/module involved. I've read and re-r…

---

## [Transaction aborted after catched error](https://forums.swift.org/t/transaction-aborted-after-catched-error/79520)

<div class="topic-metadata">

**Author:** [@LarsIverKruse](https://forums.swift.org/u/LarsIverKruse)\
**Replies:** 3\
**Last updated:** [April 26, 2025, 3:50pm UTC](https://forums.swift.org/t/transaction-aborted-after-catched-error/79520 "2025-04-26T15:50:42Z")

</div>

Hi all, I'm trying to import a csv-based textfile into a PostgreSQL database with Swift, Vapor and Fluent. While importing data, several distinct errors might occur, some of them are acceptable, others aren't. Because …

---

## [SwiftWebUI - is there an opportunity for Leaf to support SwiftUI for the Web](https://forums.swift.org/t/swiftwebui-is-there-an-opportunity-for-leaf-to-support-swiftui-for-the-web/79259)

<div class="topic-metadata">

**Author:** [@powwow](https://forums.swift.org/u/powwow)\
**Replies:** 2\
**Last updated:** [April 24, 2025, 12:28pm UTC](https://forums.swift.org/t/swiftwebui-is-there-an-opportunity-for-leaf-to-support-swiftui-for-the-web/79259 "2025-04-24T12:28:38Z")

</div>

I have been reviewing the following initiative \[GitHub - SwiftWebUI/SwiftWebUI: A demo implementation of SwiftUI for the Web\] as its an initial implementation of SwiftWebUI and is self declared as a "Toy Project" I was…

---

## [Leaf #extend leads to indentation issues in final HTML](https://forums.swift.org/t/leaf-extend-leads-to-indentation-issues-in-final-html/78952)

<div class="topic-metadata">

**Author:** [@mottzi](https://forums.swift.org/u/mottzi)\
**Replies:** 2\
**Last updated:** [April 1, 2025, 4:47pm UTC](https://forums.swift.org/t/leaf-extend-leads-to-indentation-issues-in-final-html/78952 "2025-04-01T16:47:05Z")

</div>

Hey guys, I have two templates: InitialDummies.leaf: \<!DOCTYPE html\> \<html\> \<head\> \<style\> th, td { padding: 0 15px; } \</style\> \</head\> \<body\> \<table\> \<thead\> \<tr\> …

---

## [Mist: Real-time Server Components for Swift Vapor](https://forums.swift.org/t/mist-real-time-server-components-for-swift-vapor/78950)

<div class="topic-metadata">

**Author:** [@mottzi](https://forums.swift.org/u/mottzi)\
**Replies:** 0\
**Last updated:** [March 30, 2025, 8:13pm UTC](https://forums.swift.org/t/mist-real-time-server-components-for-swift-vapor/78950 "2025-03-30T20:13:18Z")

</div>

TLDR: I've been working on a new Swift library that brings real-time server components to Vapor applications. Meet Mist - a lightweight extension that enables reactive UI updates through type-safe WebSocket communication…

---

## [How do you debug the javascript of a vapor project on Visual Studio Code?](https://forums.swift.org/t/how-do-you-debug-the-javascript-of-a-vapor-project-on-visual-studio-code/76725)

<div class="topic-metadata">

**Author:** [@Nebue](https://forums.swift.org/u/Nebue)\
**Replies:** 2\
**Last updated:** [March 7, 2025, 7:13pm UTC](https://forums.swift.org/t/how-do-you-debug-the-javascript-of-a-vapor-project-on-visual-studio-code/76725 "2025-03-07T19:13:45Z")

</div>

Hi there! I started the development of a website with swift and vapor some time ago, after some time I started introducing more javascript and found a bit annoying that I have to debug it always on the browser dev tools…

---

## [How to use "Postgres Error: duplicate key value violates unique constraint" in Fluent](https://forums.swift.org/t/how-to-use-postgres-error-duplicate-key-value-violates-unique-constraint-in-fluent/78223)

<div class="topic-metadata">

**Author:** [@LarsIverKruse](https://forums.swift.org/u/LarsIverKruse)\
**Replies:** 2\
**Last updated:** [March 2, 2025, 5:26pm UTC](https://forums.swift.org/t/how-to-use-postgres-error-duplicate-key-value-violates-unique-constraint-in-fluent/78223 "2025-03-02T17:26:39Z")

</div>

Hi all, I use Vapor/Fluent to import product data into a Postgres database. The import files often contain data which already had been imported before, which causes unique constraint violations. My first thought was to…

---

## [How to filter a nested relationship with Vapor Fluent](https://forums.swift.org/t/how-to-filter-a-nested-relationship-with-vapor-fluent/77973)

<div class="topic-metadata">

**Author:** [@AndrewBoryk](https://forums.swift.org/u/AndrewBoryk)\
**Replies:** 3\
**Last updated:** [February 25, 2025, 1:57pm UTC](https://forums.swift.org/t/how-to-filter-a-nested-relationship-with-vapor-fluent/77973 "2025-02-25T13:57:28Z")

</div>

I have a relationship that is structured like: Book { id: UUID author: Author } Author { id: UUID genre: Genre } Genre { id: UUID name: String } I want to be able to query for books that have author…

---

## [PostgresKit: No way to set transaction Isolation level?](https://forums.swift.org/t/postgreskit-no-way-to-set-transaction-isolation-level/78033)

<div class="topic-metadata">

**Author:** [@kwiky](https://forums.swift.org/u/kwiky)\
**Replies:** 0\
**Last updated:** [February 22, 2025, 3:31pm UTC](https://forums.swift.org/t/postgreskit-no-way-to-set-transaction-isolation-level/78033 "2025-02-22T15:31:35Z")

</div>

I’ve browsed the PostgresKit documentation and haven’t found any built-in API that lets you directly set the transaction isolation level. I’ve looked for a transaction method with an isolation parameter—something like tr…

---

## [Vapor 5?](https://forums.swift.org/t/vapor-5/60311)

<div class="topic-metadata">

**Author:** [@karamba](https://forums.swift.org/u/karamba)\
**Replies:** 2\
**Last updated:** [January 5, 2025, 5:17pm UTC](https://forums.swift.org/t/vapor-5/60311 "2025-01-05T17:17:18Z")

</div>

Judging by the previous version releases it is about time we see Vapor 5 but it has been pretty quiet. Are there any updates on the release calendar or everything is kept secret until we get the release celebration with …

---

## [Reusable parametric components (custom tag?)](https://forums.swift.org/t/reusable-parametric-components-custom-tag/76891)

<div class="topic-metadata">

**Author:** [@pelatho](https://forums.swift.org/u/pelatho)\
**Replies:** 1\
**Last updated:** [January 1, 2025, 9:43pm UTC](https://forums.swift.org/t/reusable-parametric-components-custom-tag/76891 "2025-01-01T21:43:16Z")

</div>

I'm completely new to swift and vapor, so excuse my ignorance, but.... So we've got the extend tag in Leaf which can be used to include a reusable component. However, it's a bit tedious to have to use extend with import…

[Next page](https://forums.swift.org/c/related-projects/vapor/30.md?page=1)
