Screenshots not appearing in ReportPortal
For some reason, screenshots aren't getting saved correctly in ReportPortal, even those the screenshots are saved locally using the Capybara.current_session.save_screenshot method and I can pull them up using Finder.

- after clicking the thumbnail

-
I even tried clicking the link for attachment and just a black screen comes up.
-
the code to generate screenshot in framework

Note: the text file gets saved correctly without any issue.
Here is code that is called from embed and that sends a file to Report Portal - https://github.com/reportportal/agent-ruby/blob/master/lib/reportportal.rb#L82
Embedding screenshots worked fine for me (though we use embed(base64_string, 'image/png;base64'). You can try to put breakpoints in the local copy of the gem to understand what's going on.
Here is code that is called from
embedand that sends a file to Report Portal - https://github.com/reportportal/agent-ruby/blob/master/lib/reportportal.rb#L82 Embedding screenshots worked fine for me (though we useembed(base64_string, 'image/png;base64'). You can try to put breakpoints in the local copy of the gem to understand what's going on.
Thank you for the quick response!!! I did try and debug it, everything appears to be fine, however, I'm just not familiar with the octet-stream that is in the payload that gets sent or multipart for that matter. Here is some more screenshots. Any additional help is welcomed :)
On the left is the file saved locally after Capybara saved it. Also, here is the object in the HTTP::FormData::File

Next, here is the send_file method with what appears to be all the correct values:

Also, the file that appears in the mini-io data folder is corrupt when I try and open it. Running everything locally in docker, not sure if that matters.