@config = default.dup.update(config)
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
Research direction
Start at src/main.rb:57, where the WEBrick server is constructed, and compare the argument passed into initialization with the configuration shown in the stack trace. Reproduce the failure with Ruby 3.3.2 on FreeBSD 14, then verify that the server initializes without the TypeError and handles the intended configuration.
Written by the indexing model from the issue text.
Description
/usr/home/zennix/.local/share/gem/ruby/3.3/gems/webrick-1.8.2/lib/webrick/server.rb:89:in `update': no implicit conversion of String into Hash (TypeError)
@config = default.dup.update(config)
^^^^^^
from /usr/home/zennix/.local/share/gem/ruby/3.3/gems/webrick-1.8.2/lib/webrick/server.rb:89:in `initialize'
from /usr/home/zennix/.local/share/gem/ruby/3.3/gems/webrick-1.8.2/lib/webrick/httpserver.rb:47:in `initialize'
from src/main.rb:57:in `new'
from src/main.rb:57:in `<main>'
[zennix@s12]:<~/y0d9>$
ruby version and host information:
[zennix@s12]:<~/y0d9>$ ruby -v
ruby 3.3.2 (2024-05-30 revision e5a195edf6) [amd64-freebsd14]
What did I do wrong? ;c
- Dominant language
- Ruby
- Stars
- 327
- Forks
- 113
- Avg merge
- 4h 2m
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ruby/webrick
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
palladius/rails8-app-on-gcp#145 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
rubocop/rubocop-rspec#2236 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
riscv/riscv-unified-db#2624 · 1 reaction ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100