Skip to content
This repository was archived by the owner on Feb 11, 2022. It is now read-only.
This repository was archived by the owner on Feb 11, 2022. It is now read-only.

assign to undeclared variable 'str' in strict mode #3

Closed
@RepentantGopher

Description

@RepentantGopher

Hi, i got error when tried to get access to metrics via http.

Unhandled error: /usr/local/share/lua/5.1/tarantool-prometheus.lua:322: assign to undeclared variable 'str' stack traceback: /usr/local/share/lua/5.1/http/server.lua:675: in function 'process_client' /usr/local/share/lua/5.1/http/server.lua:1113: in function </usr/local/share/lua/5.1/http/server.lua:1113> [C]: in function 'pcall' builtin/socket.lua:984: in function <builtin/socket.lua:982>

Lua was running in strict mode. When i turned off strict mode everything works fine.
I think root of this error is here https://github.com/tarantool/prometheus/blob/master/tarantool-prometheus.lua#L321

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions