Skip to content
This repository was archived by the owner on Aug 17, 2023. It is now read-only.
This repository was archived by the owner on Aug 17, 2023. It is now read-only.

no implicit conversion of nil into String (TypeError) in reflect.rb #3

@jcohenho

Description

@jcohenho

If you use anything that requires architect/functions inside a Ruby lambda you get the following error:
vendor/bundle/ruby/2.7.0/gems/architect-functions-0.5.3/lib/architect/reflect.rb:10:in +': no implicit conversion of nil into String (TypeError)`

I'm assuming it's because there is no ENV['ARC_CLOUDFORMATION'] variable set from reflect.rb: https://github.com/architect/functions-ruby/blob/main/lib/architect/reflect.rb#L10

Is there documentation on how to use and set this env variable?

Update: The error disappears if I add ARC_CLOUDFORMATION '' to the testing block in preferences.arc, probably this line should be an interpolated string instead of a + operator.

Update 2: This env var is actually deprecated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions