Bom dia/noite a todos,
Recentemente configurei a versão docker do discourse e tentei incorporar meu primeiro post de blog usando Hugo com o fórum Discourse recém-configurado.
É notável que, se eu desmarcar “Truncar os posts incorporados” e “Tópicos importados não serão listados até que haja uma resposta”. As alterações não parecem ser salvas. Mas quaisquer outras alterações são salvas.
Isto é o que está registrado em production.log:
Started GET "/embed/comments?embed_url=https%3A%2F%2F(REDACTED).com%2Farticle%2Fwelcome%2F" for IP-Redacted at 2023-06-09 06:19:00 +0000
Processing by EmbedController#comments as HTML
Parameters: {"embed_url"=>"https://(REDACTED).com/article/welcome/"}
Completed 500 Internal Server Error in 40ms (ActiveRecord: 0.0ms | Allocations: 11449)
ActiveRecord::ConnectionAdapters::PostgreSQL::Quoting::IntegerOutOf64BitRange (Provided value outside of the range of a signed 64bit integer.
PostgreSQL will treat the column type in question as a numeric.
This may result in a slow sequential scan due to a comparison
being performed between an integer or bigint value and a numeric value.
To allow for this potentially unwanted behavior, set
ActiveRecord.raise_int_wider_than_64bit to false.
)
lib/freedom_patches/fast_pluck.rb:39:in `select_raw'
lib/freedom_patches/fast_pluck.rb:60:in `pluck'
lib/topic_view.rb:378:in `filter_posts_paged'
lib/topic_view.rb:317:in `filter_posts'
lib/topic_view.rb:133:in `initialize'
app/controllers/embed_controller.rb:97:in `new'
app/controllers/embed_controller.rb:97:in `comments'
app/controllers/application_controller.rb:418:in `block in with_resolved_locale'
app/controllers/application_controller.rb:418:in `with_resolved_locale'
lib/middleware/omniauth_bypass_middleware.rb:74:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:369:in `call'
config/initializers/100-quiet_logger.rb:20:in `call'
config/initializers/100-silence_logger.rb:29:in `call'
lib/middleware/enforce_hostname.rb:24:in `call'
lib/middleware/request_tracker.rb:228:in `call'
No lado do Discourse, o tópico é criado na categoria correta e, no geral, parece funcionar corretamente com título e autor, como visto abaixo. Mas chamar a página de incorporação resulta em um 500.
Qualquer ajuda seria apreciada.
