Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Problem to attach file to an alert using lamp

Marcos Alano
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 19, 2024

Hello,

I'm trying to attach a report to an alert using a command similar to this one:

`./opsgenie-lamp_v3.1.4 attachFile --id "alias123" --identifier alias --fileName report.html --apiKey 123 --filePath .`

But I'm getting this message:

2024/04/19 16:30:42 INFO: Logging to file is disabled, To enable Logging to file Please specify logPath in configuration
INFO[2024-04-19T16:30:42.442047-03:00] Client is configured with ApiUrl: api.opsgenie.com, LogLevel: info, RetryMaxCount: 4
ERRO[2024-04-19T16:30:42.95022-03:00] Error occurred with Status code: 413, Message: Current request is not a multipart request, Took: 0.001000, RequestId: 867cd55a-75ac-4cc0-b59f-524757d80c22
2024/04/19 16:30:42 ERROR : Error occurred with Status code: 413, Message: Current request is not a multipart request, Took: 0.001000, RequestId: 867cd55a-75ac-4cc0-b59f-524757d80c22

Did I miss something or am I doing something wrong?

1 answer

1 accepted

0 votes
Answer accepted
John M
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 23, 2024

Hi @Marcos Alano ,

It looks like the attachment may exceed the file size limit of 2 MB. can you try again with a file that is under 2 MB?

https://support.atlassian.com/opsgenie/docs/add-a-note-or-attachment-to-an-alert/#Add-Attachments

Marcos Alano
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 23, 2024

I will accept your answer, but I found the problem. The file I was trying to upload had a typo, so virtually the file didn't exist. But thank you. Maybe improve the error message for edge cases, like missing file and file two big?

Like John M likes this
John M
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 23, 2024

Thanks for confirming and for posting your solution, @Marcos Alano 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events