Upload not working in Composer field

Environment

Discourse Version: latest-release +355

Plugin Commit: c9d76848

Steps to Reproduce

click the upload button in a composer field, select a file and nothing happens

Example

Not sure if this will work, seems to be freezing my browser

Logs

This is the only error that shows up in the logs (nothing in console), may be a conflict with the translation plugin:

Job exception: Failed to open TCP connection to 40.64.128.194:443 (Connection refused - connect(2) for “40.64.128.194” port 443)

net-http-0.4.1/lib/net/http.rb:1603:in initialize' net-http-0.4.1/lib/net/http.rb:1603:in open’
net-http-0.4.1/lib/net/http.rb:1603:in block in connect' timeout-0.4.1/lib/timeout.rb:186:in block in timeout’
timeout-0.4.1/lib/timeout.rb:193:in timeout' net-http-0.4.1/lib/net/http.rb:1601:in connect’
/var/www/discourse/lib/final_destination/http.rb:27:in block in connect' /var/www/discourse/lib/final_destination/http.rb:17:in each’
/var/www/discourse/lib/final_destination/http.rb:17:in each_with_index' /var/www/discourse/lib/final_destination/http.rb:17:in connect’
net-http-0.4.1/lib/net/http.rb:1580:in do_start' net-http-0.4.1/lib/net/http.rb:1569:in start’
faraday-net_http-3.3.0/lib/faraday/adapter/net_http.rb:111:in request_with_wrapped_block' faraday-net_http-3.3.0/lib/faraday/adapter/net_http.rb:101:in perform_request’
faraday-net_http-3.3.0/lib/faraday/adapter/net_http.rb:65:in block in call' faraday-2.12.0/lib/faraday/adapter.rb:45:in connection’
faraday-net_http-3.3.0/lib/faraday/adapter/net_http.rb:64:in call' faraday-2.12.0/lib/faraday/rack_builder.rb:152:in build_response’
faraday-2.12.0/lib/faraday/connection.rb:452:in run_request' faraday-2.12.0/lib/faraday/connection.rb:280:in post’
/var/www/discourse/plugins/discourse-translator/services/discourse_translator/microsoft.rb:171:in post' /var/www/discourse/plugins/discourse-translator/services/discourse_translator/microsoft.rb:175:in result’
/var/www/discourse/plugins/discourse-translator/services/discourse_translator/microsoft.rb:105:in detect' /var/www/discourse/plugins/discourse-translator/plugin.rb:126:in block in execute’
/var/www/discourse/lib/distributed_mutex.rb:53:in block in synchronize' /var/www/discourse/lib/distributed_mutex.rb:49:in synchronize’
/var/www/discourse/lib/distributed_mutex.rb:49:in synchronize' /var/www/discourse/lib/distributed_mutex.rb:34:in synchronize’
/var/www/discourse/plugins/discourse-translator/plugin.rb:124:in execute' /var/www/discourse/app/jobs/base.rb:322:in block (2 levels) in perform’
rails_multisite-6.1.0/lib/rails_multisite/connection_management/null_instance.rb:49:in with_connection' rails_multisite-6.1.0/lib/rails_multisite/connection_management.rb:21:in with_connection’
/var/www/discourse/app/jobs/base.rb:309:in block in perform' /var/www/discourse/app/jobs/base.rb:305:in each’
/var/www/discourse/app/jobs/base.rb:305:in perform' sidekiq-6.5.12/lib/sidekiq/processor.rb:202:in execute_job’
sidekiq-6.5.12/lib/sidekiq/processor.rb:170:in block (2 levels) in process' sidekiq-6.5.12/lib/sidekiq/middleware/chain.rb:177:in block in invoke’
/var/www/discourse/lib/sidekiq/pausable.rb:132:in call' sidekiq-6.5.12/lib/sidekiq/middleware/chain.rb:179:in block in invoke’
sidekiq-6.5.12/lib/sidekiq/middleware/chain.rb:182:in invoke' sidekiq-6.5.12/lib/sidekiq/processor.rb:169:in block in process’
sidekiq-6.5.12/lib/sidekiq/processor.rb:136:in block (6 levels) in dispatch' sidekiq-6.5.12/lib/sidekiq/job_retry.rb:113:in local’
sidekiq-6.5.12/lib/sidekiq/processor.rb:135:in block (5 levels) in dispatch' sidekiq-6.5.12/lib/sidekiq.rb:44:in block in module:Sidekiq
sidekiq-6.5.12/lib/sidekiq/processor.rb:131:in block (4 levels) in dispatch' sidekiq-6.5.12/lib/sidekiq/processor.rb:263:in stats’
sidekiq-6.5.12/lib/sidekiq/processor.rb:126:in block (3 levels) in dispatch' sidekiq-6.5.12/lib/sidekiq/job_logger.rb:13:in call’
sidekiq-6.5.12/lib/sidekiq/processor.rb:125:in block (2 levels) in dispatch' sidekiq-6.5.12/lib/sidekiq/job_retry.rb:80:in global’
sidekiq-6.5.12/lib/sidekiq/processor.rb:124:in block in dispatch' sidekiq-6.5.12/lib/sidekiq/job_logger.rb:39:in prepare’
sidekiq-6.5.12/lib/sidekiq/processor.rb:123:in dispatch' sidekiq-6.5.12/lib/sidekiq/processor.rb:168:in process’
sidekiq-6.5.12/lib/sidekiq/processor.rb:78:in process_one' sidekiq-6.5.12/lib/sidekiq/processor.rb:68:in run’
sidekiq-6.5.12/lib/sidekiq/component.rb:8:in watchdog' sidekiq-6.5.12/lib/sidekiq/component.rb:17:in block in safe_thread’

The issue with that wizard is that you’re using the Discourse AI plugin which has not added support for the Custom Wizard Plugin. I’ll add support for the AI plugin in the next few days.

2 Likes

David, I’ve made a few compatibility updates. Could you update your plugin to the latest commit and let me know if that fixes the issue for you.

Thanks Angus, I updated everything and unfortunately the issue persists. Nothing in the logs except this:

Summary

Custom Wizard field regisration no longer requires asset registration. Support will be removed in v2.1.0.

activesupport-7.1.4/lib/active_support/broadcast_logger.rb:130:in `block in warn’

activesupport-7.1.4/lib/active_support/broadcast_logger.rb:231:in `block in dispatch’

activesupport-7.1.4/lib/active_support/broadcast_logger.rb:231:in `each’

activesupport-7.1.4/lib/active_support/broadcast_logger.rb:231:in `dispatch’

activesupport-7.1.4/lib/active_support/broadcast_logger.rb:130:in `warn’

/var/www/discourse/plugins/discourse-custom-wizard/lib/custom_wizard/field.rb:148:in `require_assets’

/var/www/discourse/plugins/discourse-custom-wizard/lib/custom_wizard/field.rb:157:in `register’

/var/www/discourse/plugins/discourse-nationalflags/plugin.rb:69:in `block in activate!’

/var/www/discourse/lib/discourse_event.rb:12:in `block in trigger’

/usr/local/lib/ruby/3.3.0/set.rb:501:in `each_key’

/usr/local/lib/ruby/3.3.0/set.rb:501:in `each’

/var/www/discourse/lib/discourse_event.rb:12:in `trigger’

/var/www/discourse/plugins/discourse-custom-wizard/plugin.rb:246:in `block in activate!’

/var/www/discourse/lib/plugin/instance.rb:597:in `block in notify_after_initialize’

/var/www/discourse/lib/plugin/instance.rb:595:in `each’

/var/www/discourse/lib/plugin/instance.rb:595:in `notify_after_initialize’

/var/www/discourse/config/application.rb:244:in `each’

/var/www/discourse/config/application.rb:244:in `block (2 levels) in class:Application

/var/www/discourse/lib/plugin.rb:6:in `initialization_guard’

/var/www/discourse/config/application.rb:244:in `block in class:Application

activesupport-7.1.4/lib/active_support/lazy_load_hooks.rb:94:in `block in execute_hook’

activesupport-7.1.4/lib/active_support/lazy_load_hooks.rb:87:in `with_execution_control’

activesupport-7.1.4/lib/active_support/lazy_load_hooks.rb:92:in `execute_hook’

activesupport-7.1.4/lib/active_support/lazy_load_hooks.rb:78:in `block in run_load_hooks’

activesupport-7.1.4/lib/active_support/lazy_load_hooks.rb:77:in `each’

activesupport-7.1.4/lib/active_support/lazy_load_hooks.rb:77:in `run_load_hooks’

railties-7.1.4/lib/rails/application/finisher.rb:93:in `block in module:Finisher

railties-7.1.4/lib/rails/initializable.rb:32:in `instance_exec’

railties-7.1.4/lib/rails/initializable.rb:32:in `run’

railties-7.1.4/lib/rails/initializable.rb:61:in `block in run_initializers’

/usr/local/lib/ruby/3.3.0/tsort.rb:231:in `block in tsort_each’

/usr/local/lib/ruby/3.3.0/tsort.rb:353:in `block (2 levels) in each_strongly_connected_component’

/usr/local/lib/ruby/3.3.0/tsort.rb:434:in `each_strongly_connected_component_from’

/usr/local/lib/ruby/3.3.0/tsort.rb:352:in `block in each_strongly_connected_component’

/usr/local/lib/ruby/3.3.0/tsort.rb:350:in `each’

/usr/local/lib/ruby/3.3.0/tsort.rb:350:in `call’

/usr/local/lib/ruby/3.3.0/tsort.rb:350:in `each_strongly_connected_component’

/usr/local/lib/ruby/3.3.0/tsort.rb:229:in `tsort_each’

/usr/local/lib/ruby/3.3.0/tsort.rb:208:in `tsort_each’

railties-7.1.4/lib/rails/initializable.rb:60:in `run_initializers’

railties-7.1.4/lib/rails/application.rb:426:in `initialize!’

/var/www/discourse/config/environment.rb:7:in `’

/usr/local/lib/ruby/3.3.0/bundled_gems.rb:74:in `require’

/usr/local/lib/ruby/3.3.0/bundled_gems.rb:74:in `block (2 levels) in replace_require’

bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require’

zeitwerk-2.6.18/lib/zeitwerk/kernel.rb:34:in `require’

railties-7.1.4/lib/rails/application.rb:402:in `require_environment!’

railties-7.1.4/lib/rails/application.rb:591:in `block in run_tasks_blocks’

rake-13.2.1/lib/rake/task.rb:281:in `block in execute’

rake-13.2.1/lib/rake/task.rb:281:in `each’

rake-13.2.1/lib/rake/task.rb:281:in `execute’

rake-13.2.1/lib/rake/task.rb:219:in `block in invoke_with_call_chain’

rake-13.2.1/lib/rake/task.rb:199:in `synchronize’

rake-13.2.1/lib/rake/task.rb:199:in `invoke_with_call_chain’

rake-13.2.1/lib/rake/task.rb:243:in `block in invoke_prerequisites’

rake-13.2.1/lib/rake/task.rb:241:in `each’

rake-13.2.1/lib/rake/task.rb:241:in `invoke_prerequisites’

rake-13.2.1/lib/rake/task.rb:218:in `block in invoke_with_call_chain’

rake-13.2.1/lib/rake/task.rb:199:in `synchronize’

rake-13.2.1/lib/rake/task.rb:199:in `invoke_with_call_chain’

rake-13.2.1/lib/rake/task.rb:243:in `block in invoke_prerequisites’

rake-13.2.1/lib/rake/task.rb:241:in `each’

rake-13.2.1/lib/rake/task.rb:241:in `invoke_prerequisites’

rake-13.2.1/lib/rake/task.rb:218:in `block in invoke_with_call_chain’

rake-13.2.1/lib/rake/task.rb:199:in `synchronize’

rake-13.2.1/lib/rake/task.rb:199:in `invoke_with_call_chain’

rake-13.2.1/lib/rake/task.rb:188:in `invoke’

rake-13.2.1/lib/rake/application.rb:188:in `invoke_task’

rake-13.2.1/lib/rake/application.rb:138:in `block (2 levels) in top_level’

rake-13.2.1/lib/rake/application.rb:138:in `each’

rake-13.2.1/lib/rake/application.rb:138:in `block in top_level’

rake-13.2.1/lib/rake/application.rb:147:in `run_with_threads’

rake-13.2.1/lib/rake/application.rb:132:in `top_level’

rake-13.2.1/lib/rake/application.rb:83:in `block in run’

rake-13.2.1/lib/rake/application.rb:214:in `standard_exception_handling’

rake-13.2.1/lib/rake/application.rb:80:in `run’

bin/rake:13:in `<top (required)>’

/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/cli/exec.rb:58:in `load’

/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/cli/exec.rb:58:in `kernel_load’

/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/cli/exec.rb:23:in `run’

/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/cli.rb:455:in `exec’

/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/vendor/thor/lib/thor/command.rb:28:in `run’

/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command’

/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/vendor/thor/lib/thor.rb:527:in `dispatch’

/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/cli.rb:35:in `dispatch’

/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/vendor/thor/lib/thor/base.rb:584:in `start’

/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/cli.rb:29:in `start’

/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/exe/bundle:28:in `block in <top (required)>’

/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors’

/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/exe/bundle:20:in `<top (required)>’

/usr/local/bin/bundle:25:in `load’

/usr/local/bin/bundle:25:in `’

Thanks for your patience David, this additional update should do it.

2 Likes

That did it, thank you so much Angus!

Sorry, one more thing…drag and drop to upload does not work anymore.

Ah thanks for the update, that is also addressed.

1 Like

Thanks again, I think we’re officially done now!

1 Like