Skip to content

/usr/lib/ruby/3.2.0/tempfile.rb:229:in unlink': undefined method path' for nil:NilClass (NoMethodError) #2

Description

@Oneboy1979

Hi,

i found an issue in the versions above 1.0.6:

riddl-1.0.9/examples/client$ ruby test1.rb

/usr/lib/ruby/3.2.0/tempfile.rb:229:in unlink': undefined method path' for nil:NilClass (NoMethodError)

  File.unlink(@tmpfile.path)
                      ^^^^^
    from /var/lib/gems/3.2.0/gems/riddl-1.0.9/lib/ruby/riddl/protocols/http/parser.rb:62:in `parse_content'
    from /var/lib/gems/3.2.0/gems/riddl-1.0.9/lib/ruby/riddl/protocols/http/parser.rb:189:in `initialize'
    from /var/lib/gems/3.2.0/gems/riddl-1.0.9/lib/ruby/riddl/client.rb:394:in `new'
    from /var/lib/gems/3.2.0/gems/riddl-1.0.9/lib/ruby/riddl/client.rb:394:in `make_request'
    from /var/lib/gems/3.2.0/gems/riddl-1.0.9/lib/ruby/riddl/client.rb:293:in `exec_request'
    from /var/lib/gems/3.2.0/gems/riddl-1.0.9/lib/ruby/riddl/client.rb:177:in `post'
    from /var/lib/gems/3.2.0/gems/riddl-1.0.9/lib/ruby/riddl/client.rb:124:in `post'
    from test1.rb:6:in `<main>'

Could you please fix this.

regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions