opsgenie / opsgenie-lamp

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

attachFile fails with 413 status #20

Closed jfouchard closed 3 years ago

jfouchard commented 4 years ago

Attempting to attach a file fails repeatedly for me, even with a file that is just 3 characters:

lamp attachFile --id 'pending_ansible_changes_test' --identifier alias --filePath '/Users/jeff/dev/ansible/toolboxglb.txt.zip' --apiKey 'REDACTED' --fileName ./t

INFO[2020-02-10T10:49:56.359621-05:00] Client is configured with ApiUrl: api.opsgenie.com, LogLevel: info, RetryMaxCount: 4
ERRO[2020-02-10T10:49:57.053807-05:00] Error occurred with Status code: 413, Message: The current request is not a multipart request, Took: 0.003000, RequestId: 05561fb5-c5bc-4da3-8e41-5b1525ab01ea
Error occurred with Status code: 413, Message: The current request is not a multipart request, Took: 0.003000, RequestId: 05561fb5-c5bc-4da3-8e41-5b1525ab01ea

This is with the latest OS X client from the docs and on Linux with the same.

cemkucuk commented 4 years ago

hey @jfouchard, can you confirm that the problem still exists?

cemkucuk commented 3 years ago

I'm closing this issue, if you have another problem feel free to create a new one.