Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error occurs when loading and using deadfinder in Ruby code. #18

Closed
hahwul opened this issue Sep 26, 2024 · 1 comment · Fixed by #21
Closed

An error occurs when loading and using deadfinder in Ruby code. #18

hahwul opened this issue Sep 26, 2024 · 1 comment · Fixed by #21
Assignees
Labels
bug Something isn't working

Comments

@hahwul
Copy link
Owner

hahwul commented Sep 26, 2024

3.0.4 :001 > require 'deadfinder'
3.0.4 :002 >
3.0.4 :003 > app = DeadFinderRunner.new
3.0.4 :004 > options = {}
3.0.4 :005 > options['concurrency'] = 30
3.0.4 :006 >
3.0.4 :007 > app.run('https://www.hahwul.com/2022/09/30/deadfinder/', options)
3.0.4 :008 > puts Output
⚠︎ [undefined method `each_with_object' for nil:NilClass] https://www.hahwul.com/2022/09/30/deadfinder/
#<Concurrent::Map:0x000000013a3ee640>
 => nil

headers = options['headers'].each_with_object({}) do |header, hash|

@hahwul hahwul added the bug Something isn't working label Sep 26, 2024
@hahwul hahwul self-assigned this Sep 26, 2024
@hahwul
Copy link
Owner Author

hahwul commented Sep 26, 2024

3.0.4 :012 > options['headers'] = ['1']
 => ["1"]
3.0.4 :013 > app.run('https://www.hahwul.com', options)
  ● Found 45 URLs. [anchor:29 / script:5 / link:11]
  ● Checking
  ✓ Done
 => nil

@hahwul hahwul mentioned this issue Sep 26, 2024
@hahwul hahwul linked a pull request Sep 26, 2024 that will close this issue
@hahwul hahwul reopened this Sep 26, 2024
@hahwul hahwul closed this as completed Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant