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

NoMethodError: undefined method `new_offset' for nil:NilClass #8

Closed
cbeer opened this issue Feb 9, 2016 · 2 comments · Fixed by #9
Closed

NoMethodError: undefined method `new_offset' for nil:NilClass #8

cbeer opened this issue Feb 9, 2016 · 2 comments · Fixed by #9

Comments

@cbeer
Copy link
Collaborator

cbeer commented Feb 9, 2016

$ curl -X PUT "http://localhost:4567/basic" -H "Link: <http://www.w3.org/ns/ldp#BasicContainer>;rel=\"type\"" -d "" -H "Content-Type: text/turtle"
$ curl -v "http://localhost:4567/basic"
...
< HTTP/1.1 200 OK
$ curl -v "http://localhost:4567/basic/"
...
< HTTP/1.1 500 Internal Server Error 
NoMethodError: undefined method `new_offset' for nil:NilClass
    /Users/cabeer/.gem/ruby/2.2.3/gems/rdf-ldp-0.4.0/lib/rdf/ldp/resource.rb:305:in `etag'
    /Users/cabeer/.gem/ruby/2.2.3/gems/rdf-ldp-0.4.0/lib/rdf/ldp/resource.rb:492:in `update_headers'
    /Users/cabeer/.gem/ruby/2.2.3/gems/rdf-ldp-0.4.0/lib/rdf/ldp/resource.rb:436:in `options'
    /Users/cabeer/.gem/ruby/2.2.3/gems/rdf-ldp-0.4.0/lib/rdf/ldp/resource.rb:410:in `request'

@no-reply
Copy link
Member

no-reply commented Feb 9, 2016

Thanks, I reported this to RDF::LDP, and will try to figure out why the resource doesn't get a #last_modified & how to better handle that case

@cbeer
Copy link
Collaborator Author

cbeer commented Feb 9, 2016

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants