PlatformConfig keeps a numeric YAML api_key as an int, so the .strip() this stack added to _standalone_send raised AttributeError where origin/main returned an error dict. Coerce through str(... or "") like the LINE reader, and pin both the int key and a whitespace-only key (which also gives the standalone strip a test that fails without it).