Skip to content

[Bug] ThreeScale::Core::AlertLimit.load_all - undefined method `map' for nil:NilClass #14

@Martouta

Description

@Martouta

Same bug as #13 but with AlertLimit instead of ServiceError.

In development locally, it raises this error when it does ThreeScale::Core::AlertLimit.load_all(backend_id)

I can bypass it by changing this line:

results[:attributes].map { |attrs| new(attrs) }

for:

(results[:attributes] || []).map { |attrs| new(attrs) }

So it is not urgent, but it is a bug that should be fixed anyway 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions