opsgenie / opsgenie-lamp

OpsGenie Lamp with Go SDK
Apache License 2.0
34 stars 18 forks source link

Key format is not valid #50

Closed ghost closed 2 years ago

ghost commented 2 years ago

Hi,

opsgenie-lamp --version
lamp version 3.2.0

https://docs.opsgenie.com/docs/lamp-command-line-interface-for-opsgenie#configuration

  1. If none of the methods given above works, Lamp uses the default {{USER_HOME}}/.config/lamp.conf file as configuration

Your sample configuration is here https://github.com/opsgenie/opsgenie-lamp/blob/master/conf/lamp.conf.

I simply put created token into that file {{USER_HOME}}/.config/lamp.conf and this is result:


opsgenie-lamp listServices
2022/05/18 19:44:20 INFO: Logging to file is disabled, To enable Logging to file Please specify logPath in configuration
INFO[2022-05-18T19:44:20.963764+02:00] Client is configured with ApiUrl: api.opsgenie.com, LogLevel: info, RetryMaxCount: 4
ERRO[2022-05-18T19:44:21.665032+02:00] Error occurred with Status code: 422, Message: Key format is not valid!, Took: 0.000000, RequestId: 
2022/05/18 19:44:21 ERROR : Error occurred with Status code: 422, Message: Key format is not valid!, Took: 0.000000, RequestId: ```
ghost commented 2 years ago

Settings > API key management and not via profile!