Closed cmcclenaghan closed 4 months ago
Hi. Thanks for the response
The attachment is only ~6MB, and I've tried with a nearly-empty file as well.
The file is located at the root of C:\
, which is mapped by WSL as /c
. Again, I've tried various locations and with absolute and relative paths in the JUnit file.
As I say, Postman (on Windows) is also giving me the same error response when I browse directly to the file.
thanks @cmcclenaghan , if you get the same error if you try to upload it directly to TR using the API, then the problem is on the API somehow. In this case, I would advise you to reach out TR support team providing an example of the API call you're doing and the error you're obtaining
Fair enough. I have raised this as an API support request
TestRail CLI Version
v1.7.0
CLI Environment
Windows 10, WSL Ubuntu 22.04, Python 3.10.12
TestRail Version
v7.0.2.1016
TestRail Instance Type
Professional Cloud
Current behavior
I have been trying to add an attachment to a TestRail result using
trcli
, the test run and test results are all created correctly in TestRail, but when trying to upload attachments I am receiving the following error.My invocation of
trcli
is as followsThis is a snippet of my junit file
Running the
trcli
tool with--verbose
shows me all the API calls including the failing attachment API call.If I confirm this last call in Postman, I get the same error.
Desired behavior
The API response would be
OK
and the attachment would appear in the test resultMore Details
No response