# issues

**URL:** https://discourse.hanakai.org/c/issues/7.md

[Latest](https://discourse.hanakai.org/latest.md) · [Categories](https://discourse.hanakai.org/categories.md)

---

## [About the issues category](https://discourse.hanakai.org/t/about-the-issues-category/31)

<div class="topic-metadata">

**Author:** [@trung\_le](https://discourse.hanakai.org/u/trung_le)\
**Replies:** 0

</div>

If you run into any issues using Hanami, please report in this category.

---

## [Try not capturing an Net:HTTP#post error](https://discourse.hanakai.org/t/try-not-capturing-an-net-http-post-error/1550)

<div class="topic-metadata">

**Author:** [@esparta](https://discourse.hanakai.org/u/esparta)\
**Replies:** 2\
**Last updated:** [September 26, 2026, 12:07am UTC](https://discourse.hanakai.org/t/try-not-capturing-an-net-http-post-error/1550 "2026-09-26T00:07:12Z")

</div>

Hi I have a very tiny wrapper around a internal tool, communicating via HTTP def post(url:) payload = { url: url }.to\_json …

---

## [False positive spam detection on Dry forum for post about dry-cli.tools](https://discourse.hanakai.org/t/false-positive-spam-detection-on-dry-forum-for-post-about-dry-cli-tools/1536)

<div class="topic-metadata">

**Author:** [@kigster](https://discourse.hanakai.org/u/kigster)\
**Replies:** 5\
**Last updated:** [September 19, 2026, 1:10am UTC](https://discourse.hanakai.org/t/false-positive-spam-detection-on-dry-forum-for-post-about-dry-cli-tools/1536 "2026-09-19T01:10:48Z")

</div>

Any idea why? I think there are many ways to participate in a community, and extending an existing gem is perhaps one of the best forms of flattery and respect. Being silenced for merely announcing gem, which provides …

---

## [Namespace issue when generating actions that match the app name](https://discourse.hanakai.org/t/namespace-issue-when-generating-actions-that-match-the-app-name/1501)

<div class="topic-metadata">

**Author:** [@mddelk](https://discourse.hanakai.org/u/mddelk)\
**Replies:** 5\
**Last updated:** [July 18, 2026, 12:58pm UTC](https://discourse.hanakai.org/t/namespace-issue-when-generating-actions-that-match-the-app-name/1501 "2026-07-18T12:58:30Z")

</div>

If you generate an action with the same resource name as the app, you end up having to manually modify the generated files to prevent namespace issues. e.g, % hanami new books % cd books % bundle exec rspec Then gener…

---

## [Customize 'schema\_migrations' table name on a gateway.](https://discourse.hanakai.org/t/customize-schema-migrations-table-name-on-a-gateway/1463)

<div class="topic-metadata">

**Author:** [@FranckP](https://discourse.hanakai.org/u/FranckP)\
**Replies:** 7\
**Last updated:** [June 12, 2026, 7:46am UTC](https://discourse.hanakai.org/t/customize-schema-migrations-table-name-on-a-gateway/1463 "2026-06-12T07:46:14Z")

</div>

Hello there, I try to have rodauth working with my Hanami2.3 web app. One of rodauth nice feature is delegating password hash checking to a dedicated db user (the ‘password’ user). The app user can’t read these hashes. …

---

## [Trying to add custom type to schema with Types.define(..) raises no method error](https://discourse.hanakai.org/t/trying-to-add-custom-type-to-schema-with-types-define-raises-no-method-error/1414)

<div class="topic-metadata">

**Author:** [@FranckP](https://discourse.hanakai.org/u/FranckP)\
**Replies:** 8\
**Last updated:** [April 23, 2026, 7:22pm UTC](https://discourse.hanakai.org/t/trying-to-add-custom-type-to-schema-with-types-define-raises-no-method-error/1414 "2026-04-23T19:22:02Z")

</div>

Hello there, My app actually needs to handle money amounts. Following @alassek advice, I store these amounts as integer in my postgres database and want to use Money gem instances everywhere else in my app. When readin…

---

## [rspec causes issues when using action generator](https://discourse.hanakai.org/t/rspec-causes-issues-when-using-action-generator/1397)

<div class="topic-metadata">

**Author:** [@sebastjan\_hribar](https://discourse.hanakai.org/u/sebastjan_hribar)\
**Replies:** 7\
**Last updated:** [January 22, 2026, 11:12pm UTC](https://discourse.hanakai.org/t/rspec-causes-issues-when-using-action-generator/1397 "2026-01-22T23:12:19Z")

</div>

Hi, I’m running into strange issue when using the action generator with Hanami 2.3. I’ve searched on the github issues for hanami-rspec and here as well, but can’t find nothing similar. I’m guessing it’s again something…

---

## [dry-types incompatible with later version of chamber gem](https://discourse.hanakai.org/t/dry-types-incompatible-with-later-version-of-chamber-gem/1384)

<div class="topic-metadata">

**Author:** [@totus](https://discourse.hanakai.org/u/totus)\
**Replies:** 1\
**Last updated:** [January 9, 2026, 1:01am UTC](https://discourse.hanakai.org/t/dry-types-incompatible-with-later-version-of-chamber-gem/1384 "2026-01-09T01:01:43Z")

</div>

Hello, team! With the most recent update of the chamber gem, it now has bigdecimal of version 4 as a dependency, while dry-types requires a 3.x version. Is there a plan to loosen the bigdecimal dependency version range…

---

## [dry-logger crashes fatally](https://discourse.hanakai.org/t/dry-logger-crashes-fatally/979)

<div class="topic-metadata">

**Author:** [@wuarmin](https://discourse.hanakai.org/u/wuarmin)\
**Replies:** 11\
**Last updated:** [December 16, 2025, 7:42am UTC](https://discourse.hanakai.org/t/dry-logger-crashes-fatally/979 "2025-12-16T07:42:07Z")

</div>

Hey :wave:, I keep seeing this fatal error in my logs and can’t figure out what the problem is: \[my\_app\] \[FATAL\] \[2024-06-12 15:20:20 +0200\] Logging crashed (0.000555s) SELECT "order\_states"."id", "order\_states"."nam…

---

## [Memory leak on repositories](https://discourse.hanakai.org/t/memory-leak-on-repositories/1188)

<div class="topic-metadata">

**Author:** [@rubyistdotjs](https://discourse.hanakai.org/u/rubyistdotjs)\
**Replies:** 6\
**Last updated:** [November 21, 2025, 12:59pm UTC](https://discourse.hanakai.org/t/memory-leak-on-repositories/1188 "2025-11-21T12:59:43Z")

</div>

I’ve been running Hanami in production with a custom ROM integration (with ROM SQL, PostgreSQL) without any issues for more than a year now but ever since upgrading to Hanami 2.2, ROM 5.4 and replacing my custom integrat…

---

## [Using wrap and combine in one relation fails.](https://discourse.hanakai.org/t/using-wrap-and-combine-in-one-relation-fails/1290)

<div class="topic-metadata">

**Author:** [@wuarmin](https://discourse.hanakai.org/u/wuarmin)\
**Replies:** 2\
**Last updated:** [August 18, 2025, 6:37am UTC](https://discourse.hanakai.org/t/using-wrap-and-combine-in-one-relation-fails/1290 "2025-08-18T06:37:18Z")

</div>

Hey :waving\_hand: , please checkout following use-case: following usage of wrap works perfectly app\["relations.documents"\].wrap(:document\_state).to\_a following usage of combine works perfectly: app\[“relations.docume…

---

## [DI not available in Repos](https://discourse.hanakai.org/t/di-not-available-in-repos/1224)

<div class="topic-metadata">

**Author:** [@wuarmin](https://discourse.hanakai.org/u/wuarmin)\
**Replies:** 5\
**Last updated:** [June 4, 2025, 8:20am UTC](https://discourse.hanakai.org/t/di-not-available-in-repos/1224 "2025-06-04T08:20:36Z")

</div>

Hey :waving\_hand: the great dependency injection feature is not available in Repos out of the box. Following does not work: module Documents module Repos class DocumentRepo \< Documents::DB::Repo include De…

---

## [Slices don't take db config from parent by default](https://discourse.hanakai.org/t/slices-dont-take-db-config-from-parent-by-default/1072)

<div class="topic-metadata">

**Author:** [@svoop](https://discourse.hanakai.org/u/svoop)\
**Replies:** 7\
**Last updated:** [December 20, 2024, 8:12pm UTC](https://discourse.hanakai.org/t/slices-dont-take-db-config-from-parent-by-default/1072 "2024-12-20T20:12:37Z")

</div>

Hiya! There’s either a bug in Hanami or an inconsistency in the guides on the subject of slices inheriting the db config from the parent. The guides claim this is the default and can be disabled in the slice config: H…

---

## [Can't run migration for separate slice](https://discourse.hanakai.org/t/cant-run-migration-for-separate-slice/1066)

<div class="topic-metadata">

**Author:** [@vladimirtcats](https://discourse.hanakai.org/u/vladimirtcats)\
**Replies:** 4\
**Last updated:** [December 1, 2024, 12:21am UTC](https://discourse.hanakai.org/t/cant-run-migration-for-separate-slice/1066 "2024-12-01T00:21:28Z")

</div>

Hi everyone! I have 3 separate migration in my app: 20241114121339\_users, 20241118133344\_books.rb, 20241122114836\_apps.rb I decided to create separate slice for api and put migration into slices/api/config/db/migrate…

---

## [Can't spin up \`hanami dev\` on 2.2.0.beta1](https://discourse.hanakai.org/t/cant-spin-up-hanami-dev-on-2-2-0-beta1/1030)

<div class="topic-metadata">

**Author:** [@Aratinga](https://discourse.hanakai.org/u/Aratinga)\
**Replies:** 4\
**Last updated:** [September 16, 2024, 11:18pm UTC](https://discourse.hanakai.org/t/cant-spin-up-hanami-dev-on-2-2-0-beta1/1030 "2024-09-16T23:18:13Z")

</div>

Just some system info and a console log dump. Not sure what the exact problem is here, but hanami dev SIGTERM’s outright on my system. ❯ ruby -v ruby 3.3.5 (2024-09-03 revision ef084cc8f4) \[arm64-darwin23\] I run hanami…

---

## [No db logging in test suite](https://discourse.hanakai.org/t/no-db-logging-in-test-suite/1023)

<div class="topic-metadata">

**Author:** [@wuarmin](https://discourse.hanakai.org/u/wuarmin)\
**Replies:** 3\
**Last updated:** [August 29, 2024, 11:10pm UTC](https://discourse.hanakai.org/t/no-db-logging-in-test-suite/1023 "2024-08-29T23:10:15Z")

</div>

Hey :wave:, I can’t get the DB logging to work in the test suite. Here’s what I tried: RSpec.configure do |config| config.before :suite do Hanami.app.start :db\_logging Hanami.app.start :db end end Do you …

---

## [Hanami 2.1.1 form\_for helper not generating expected markup](https://discourse.hanakai.org/t/hanami-2-1-1-form-for-helper-not-generating-expected-markup/1006)

<div class="topic-metadata">

**Author:** [@jignesh](https://discourse.hanakai.org/u/jignesh)\
**Replies:** 5\
**Last updated:** [July 29, 2024, 1:57pm UTC](https://discourse.hanakai.org/t/hanami-2-1-1-form-for-helper-not-generating-expected-markup/1006 "2024-07-29T13:57:24Z")

</div>

Ruby: 3.3.3 Hanami: 2.1.1 Following is a method I have in my view scope def update\_form form\_for('update-form', '/update\_data', method: :patch) do |f| tag.div(class: 'form-control') do tag.label('Update Fo…

---

## [Error finding relation in Hanami 2.1 app with custom ROM provider](https://discourse.hanakai.org/t/error-finding-relation-in-hanami-2-1-app-with-custom-rom-provider/997)

<div class="topic-metadata">

**Author:** [@alectrico-pro](https://discourse.hanakai.org/u/alectrico-pro)\
**Replies:** 2\
**Last updated:** [July 17, 2024, 12:37am UTC](https://discourse.hanakai.org/t/error-finding-relation-in-hanami-2-1-app-with-custom-rom-provider/997 "2024-07-17T00:37:17Z")

</div>

We are using Dockerfile and docker compose on github repo git@github.com:alectrico-pro/bookshelf.git Steps to reproduce issue: Fork the repository at git@github.com:alectrico-pro/bookshelf.git Clone on your environmen…

---

## [Hanami 2.1 settings.txt](https://discourse.hanakai.org/t/hanami-2-1-settings-txt/964)

<div class="topic-metadata">

**Author:** [@dsisnero](https://discourse.hanakai.org/u/dsisnero)\
**Replies:** 1\
**Last updated:** [May 3, 2024, 1:07am UTC](https://discourse.hanakai.org/t/hanami-2-1-settings-txt/964 "2024-05-03T01:07:51Z")

</div>

when I run hanami new bookshelf After showing Hanami install… It opens up notepad and a dialog comes up saying Cannot find the c:\\settings.txt file Do you want to create a new file? If I say yes or no and close notep…

---

## [HTTP MethodOverride not taking effect](https://discourse.hanakai.org/t/http-methodoverride-not-taking-effect/955)

<div class="topic-metadata">

**Author:** [@krzykamil](https://discourse.hanakai.org/u/krzykamil)\
**Replies:** 6\
**Last updated:** [April 24, 2024, 6:48am UTC](https://discourse.hanakai.org/t/http-methodoverride-not-taking-effect/955 "2024-04-24T06:48:36Z")

</div>

libus\[development\]\> Hanami.app.config.middleware =\> #\<Hanami::Slice::Routing::Middleware::Stack:0x00007f7d85c940f0 @namespaces=\[Hanami::Middleware\], @stack= {"/"=\> \[\[Warden::Manager, \[\], {}, #\<Proc:0x00007f7d85a6…

---

## [Import Slice Component into \`App\`](https://discourse.hanakai.org/t/import-slice-component-into-app/954)

<div class="topic-metadata">

**Author:** [@dcr8898](https://discourse.hanakai.org/u/dcr8898)\
**Replies:** 4\
**Last updated:** [April 23, 2024, 2:22pm UTC](https://discourse.hanakai.org/t/import-slice-component-into-app/954 "2024-04-23T14:22:38Z")

</div>

This issue was previously raised by @aaricpittman here, but no solution was ever posted. I am now facing the same issue myself. I would like inject components from one or more slices into actions that live in app. I can…

---

## [Incorrect paths after asset compile](https://discourse.hanakai.org/t/incorrect-paths-after-asset-compile/920)

<div class="topic-metadata">

**Author:** [@svoop](https://discourse.hanakai.org/u/svoop)\
**Replies:** 16\
**Last updated:** [March 31, 2024, 11:43pm UTC](https://discourse.hanakai.org/t/incorrect-paths-after-asset-compile/920 "2024-03-31T23:43:58Z")

</div>

Hiya :wave: From the guides, it’s a feature that e.g. /app/assets/fonts/hack/hack-regular.woff2 is copied to /public/assets/hack/hack-regular.woff2 during asset compile obviously dropping the first hierarchy fonts/. Ho…

---

## [Hanami-assets not seeming to work](https://discourse.hanakai.org/t/hanami-assets-not-seeming-to-work/889)

<div class="topic-metadata">

**Author:** [@raelik](https://discourse.hanakai.org/u/raelik)\
**Replies:** 6\
**Last updated:** [March 13, 2024, 9:33am UTC](https://discourse.hanakai.org/t/hanami-assets-not-seeming-to-work/889 "2024-03-13T09:33:10Z")

</div>

Maybe I’m missing a configuration or something, but I’ve been playing with hanami 2.1rc2 and I can’t seem to get assets working, neither with hanami dev running the asset watcher, or manually running hanami assets compil…

---

## [How can I avoid 40x error from logging as ERROR?](https://discourse.hanakai.org/t/how-can-i-avoid-40x-error-from-logging-as-error/853)

<div class="topic-metadata">

**Author:** [@MasanoriOnishi](https://discourse.hanakai.org/u/MasanoriOnishi)\
**Replies:** 5\
**Last updated:** [October 7, 2023, 1:01am UTC](https://discourse.hanakai.org/t/how-can-i-avoid-40x-error-from-logging-as-error/853 "2023-10-07T01:01:24Z")

</div>

module Bookshelf module Actions module Books class Index \< Bookshelf::Action handle\_exception RecordNotFound =\> :handle\_not\_found\_error def handle(\*, response) raise RecordNotFound …

---

## [Prompt for select not shown, but it is listed](https://discourse.hanakai.org/t/prompt-for-select-not-shown-but-it-is-listed/781)

<div class="topic-metadata">

**Author:** [@sebastjan\_hribar](https://discourse.hanakai.org/u/sebastjan_hribar)\
**Replies:** 5\
**Last updated:** [April 7, 2023, 5:58am UTC](https://discourse.hanakai.org/t/prompt-for-select-not-shown-but-it-is-listed/781 "2023-04-07T05:58:13Z")

</div>

Hi, I have a few selects with the same problem for prompt (Hanami 1.3). The code in the template is as follows: select :client\_id, clients\_for\_select, options: {prompt: (I18n.t :gm\_contact\_new\_prompt\_select\_client)}. T…

---

## [Should reverse migrations work?](https://discourse.hanakai.org/t/should-reverse-migrations-work/785)

<div class="topic-metadata">

**Author:** [@bkuhlmann](https://discourse.hanakai.org/u/bkuhlmann)\
**Replies:** 2\
**Last updated:** [January 23, 2023, 3:38pm UTC](https://discourse.hanakai.org/t/should-reverse-migrations-work/785 "2023-01-23T15:38:45Z")

</div>

Hello. :wave: I’m not sure if this is a bug or if I’m doing something wrong but I discovered the following migrations can’t be reversed: ROM::SQL.migration do change do create\_table :users do primary\_key :id…

---

## [Standalone testing of actions in rc1](https://discourse.hanakai.org/t/standalone-testing-of-actions-in-rc1/716)

<div class="topic-metadata">

**Author:** [@dimaboyko](https://discourse.hanakai.org/u/dimaboyko)\
**Replies:** 5\
**Last updated:** [November 15, 2022, 5:33pm UTC](https://discourse.hanakai.org/t/standalone-testing-of-actions-in-rc1/716 "2022-11-15T17:33:02Z")

</div>

Hi fellow rubyists, I have somewhat simple hanami action, smth like: class MyAction extend Dry::Initializer option :repo, default: -\> { Repos::MyRepo } params do .... end def handle(req, res) res.bo…

---

## [When I upload a XML file, I get Rack::QueryParser::InvalidParameterError](https://discourse.hanakai.org/t/when-i-upload-a-xml-file-i-get-rack-invalidparametererror/719)

<div class="topic-metadata">

**Author:** [@wuarmin](https://discourse.hanakai.org/u/wuarmin)\
**Replies:** 6\
**Last updated:** [November 15, 2022, 10:45am UTC](https://discourse.hanakai.org/t/when-i-upload-a-xml-file-i-get-rack-invalidparametererror/719 "2022-11-15T10:45:51Z")

</div>

Hey, this works in Hanami 1.3, but if I try to upload a XML file to a hanami 2 app, I get a Rack::QueryParser::InvalidParameterError \<!--/tmp/test/test.xml--\> \<root\> \<name\>100 % Meijer\</name\> \</root\> curl -F 'file=…

---

## [How to fix incompatible dry-core dependency issue?](https://discourse.hanakai.org/t/how-to-fix-incompatible-dry-core-dependency-issue/714)

<div class="topic-metadata">

**Author:** [@wuarmin](https://discourse.hanakai.org/u/wuarmin)\
**Replies:** 4\
**Last updated:** [November 14, 2022, 7:37am UTC](https://discourse.hanakai.org/t/how-to-fix-incompatible-dry-core-dependency-issue/714 "2022-11-14T07:37:26Z")

</div>

Hey, I want to set up rom and rom-sql beside hanami 2.0.0.rc and stumbled over following compatibility-issue: Bundler could not find compatible versions for gem "dry-core": In Gemfile: hanami (~\> 2.0.0.rc) was re…

---

## [Hanami.app\["logger"\] does not work as expected](https://discourse.hanakai.org/t/hanami-app-logger-does-not-work-as-expected/717)

<div class="topic-metadata">

**Author:** [@wuarmin](https://discourse.hanakai.org/u/wuarmin)\
**Replies:** 3\
**Last updated:** [November 10, 2022, 11:02am UTC](https://discourse.hanakai.org/t/hanami-app-logger-does-not-work-as-expected/717 "2022-11-10T11:02:04Z")

</div>

Hey, I tried to use the Hanami.app\["logger"\] and wanted to set it at a Sequel Connection, but the logs look like this: # Logfile created on 2022-11-10 11:05:57 +0100 by logger.rb/v1.5.0 \[services\] \[DEBUG\] \[2022-11-10 1…

[Next page](https://discourse.hanakai.org/c/issues/7.md?page=1)
