rails: 5.0.0.beta4 / actionpack - undefined method `symbol' for nil:NilClass*
I cannot fully reproduce this issue but I am seeing some errors with the following details after upgrading to Rails 5:
Error
NoMethodError: undefined method `symbol' for nil:NilClass
Location
vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.0.beta4/lib/action_dispatch/http/parameters.rb:63 - parse_formatted_parameters
Request details (from bugsnag)
Headers
{
"Version": "HTTP/1.1",
"Host": "...",
"Connection": "close",
"User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0",
"Cookie": "[FILTERED]",
"X-Request-Id": "b883ebdb-95ac-4c81-89de-4885050fbd89",
"X-Forwarded-For": "...",
"X-Forwarded-Proto": "https",
"X-Forwarded-Port": "443",
"Via": "1.1 vegur",
"Connect-Time": "0",
"X-Request-Start": "1462260086212",
"Total-Route-Time": "0",
"Content-Length": "45"
}
Payload
{
"store_id": "a0d443bf-36ad-451d-8d9f-f7a5ef9b71fa"
}
Sorry, but I cannot provide you with more details.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 21 (12 by maintainers)
I have upgraded to Rails
5.0.1.rc1
and this issue is resolved! 🎉Thanks @Martijn, Rails
5.0.0.1
was released 10th August, #25950 was merged 26th July.Thus shouldn’t this have been fixed in
5.0.0.1
?Once I added a header of:
'Content-type': 'application/json'
It was able to get past the error.