You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems that PR #20 breaks calling end points that have no parameters.
When doing so I get a NoMethodError: undefined method 'reduce' for nil:NilClass originating from operation_builder.rb:61:in strip_headers!
It seems that in that case operation_parameters == nil is not handled. Made a quick fix for myself to get things working again, setting operation_parameters to [] when nil
Although this patch makes thins work for me now, probably not the best method? After having a quick look at the code, I presume that strip_headers! may just return nil when operation_parameters == nil.
@telekid As the author of the PR, maybe you can have a look at this? Very much appreciated!
Seems that PR #20 breaks calling end points that have no parameters.
When doing so I get a
NoMethodError: undefined method 'reduce' for nil:NilClass
originating fromoperation_builder.rb:61:in strip_headers!
It seems that in that case
operation_parameters == nil
is not handled. Made a quick fix for myself to get things working again, settingoperation_parameters
to[]
whennil
Although this patch makes thins work for me now, probably not the best method? After having a quick look at the code, I presume that
strip_headers!
may just returnnil
whenoperation_parameters == nil
.@telekid As the author of the PR, maybe you can have a look at this? Very much appreciated!
The text was updated successfully, but these errors were encountered: