Error while uploading jtl file via curl #131
-
I am trying to upload the JMeter test results (.jtl file) to jtlReporter however getting error. Am using curl with the parameters as mentioned in the jtlReporter documentation to upload the jtl file however no success. Below is the curl command I am using.
Below is the tailed output of the jtl backend service (docker logs jtlreporter_be_1)
|
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 10 replies
-
Hello @abhayshankar, this morning I updated the curl: https://jtlreporter.site/docs/guides/api-data-upload
|
Beta Was this translation helpful? Give feedback.
-
Thanks @ludeknovy for the prompt reply. However, I see the same response with the updated command as well.
Docker logs
|
Beta Was this translation helpful? Give feedback.
-
Sharing a snippet from the jtl file
|
Beta Was this translation helpful? Give feedback.
-
Got it.
Will give it a try again.
Is there any constraint that jtlReporter and JMeter should be hosted on the
same machine?
Currently, my jtlReporter and JMeter are hosted on different servers.
Regards,
Abhay
…On Fri, Feb 11, 2022 at 8:16 PM Ludek Novy ***@***.***> wrote:
No, I run it locally in different port. See my answer here #131 (reply in
thread)
<#131 (reply in thread)>
—
Reply to this email directly, view it on GitHub
<#131 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACKUJ5ZBPX3OEZDSHCC6LMLU2UOKZANCNFSM5OEF44ZQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I tried again, but now getting the connection refused error.
Just to give a background, my JMeter is hosted on Gitlab SAAS and
jtlReporter on AWS EC2 instance.
Currently, I am running the below command from jtlReporter server (EC2
instance, have manually copied the jtl file from JMeter server to EC2
instance).
I believe since I am running the curl from the same server where
jtlReporter is hosted, connection refused error should not occur.
Not sure what I am doing wrong 🤔
```
curl -X POST 'http://<IP>:5000/api/projects/SAS/scenarios/test1/items' \
-H 'x-access-token: <auth_token>' \
-F 'kpi=@"/jtl/jtl-reporter/test.jtl"' \
-F 'environment="beta"' \
-F 'note="testnote"' \
-F 'hostname="testhostname"' \
-F 'status="10"'
```
`curl: (7) Failed to connect to <IP> port 80: Connection refused`
Docker logs
```
{"level":"info","message":"GET /api/projects/SAS/scenarios 304
33ms","meta":{}}
{"level":"info","message":"GET /api/projects 304 4ms","meta":{}}
{"level":"info","message":"GET /api/projects/SAS/scenarios/test2 200
2ms","meta":{}}
{"level":"info","message":"GET
/api/projects/SAS/scenarios/test2/notifications 200 4ms","meta":{}}
{"level":"info","message":"GET
/api/projects/SAS/scenarios/test2/items?limit=15&offset=0 200
5ms","meta":{}}
{"level":"info","message":"GET /api/projects/SAS/scenarios/test2/trends 200
4ms","meta":{}}
{"level":"info","message":"GET
/api/projects/SAS/scenarios/test2/processing-items 200 3ms","meta":{}}
{"level":"info","message":"GET /api/projects/SAS/scenarios/test2 304
2ms","meta":{}}
{"level":"info","message":"GET
/api/projects/SAS/scenarios/test2/processing-items 304 3ms","meta":{}}
{"level":"info","message":"GET
/api/projects/SAS/scenarios/test2/processing-items 304 3ms","meta":{}}
{"level":"info","message":"GET
/api/projects/SAS/scenarios/test2/processing-items 304 3ms","meta":{}}
{"level":"info","message":"GET /api/projects 304 4ms","meta":{}}
{"level":"info","message":"GET /api/projects/SAS/scenarios/test2 304
3ms","meta":{}}
{"level":"info","message":"GET
/api/projects/SAS/scenarios/test2/notifications 304 3ms","meta":{}}
{"level":"info","message":"GET
/api/projects/SAS/scenarios/test2/items?limit=15&offset=0 304
6ms","meta":{}}
{"level":"info","message":"GET
/api/projects/SAS/scenarios/test2/processing-items 304 6ms","meta":{}}
{"level":"info","message":"GET /api/projects/SAS/scenarios/test2/trends 304
28ms","meta":{}}
{"level":"info","message":"GET /api/projects/SAS/scenarios/test2 304
3ms","meta":{}}
{"level":"info","message":"GET /api/projects 304 3ms","meta":{}}
{"level":"info","message":"GET /api/projects/SAS/scenarios 304
7ms","meta":{}}
{"level":"info","message":"GET /api/projects/SAS 304 4ms","meta":{}}
{"level":"info","message":"GET /api/projects 304 5ms","meta":{}}
{"level":"info","message":"GET
/api/projects/SAS/scenarios/test2/notifications 304 2ms","meta":{}}
{"level":"info","message":"GET /api/projects/SAS/scenarios/test2 304
4ms","meta":{}}
{"level":"info","message":"GET /api/projects/SAS/scenarios/test2/trends 304
4ms","meta":{}}
{"level":"info","message":"GET
/api/projects/SAS/scenarios/test2/processing-items 304 3ms","meta":{}}
{"level":"info","message":"GET
/api/projects/SAS/scenarios/test2/items?limit=15&offset=0 304
10ms","meta":{}}
{"level":"info","message":"GET /api/projects/SAS/scenarios/test2 304
3ms","meta":{}}
{"level":"info","message":"GET /api/projects 304 3ms","meta":{}}
{"level":"info","message":"GET /api/projects/SAS 304 3ms","meta":{}}
{"level":"info","message":"GET /api/projects/SAS/scenarios 304
6ms","meta":{}}
```
Regards,
Abhay
…On Fri, Feb 11, 2022 at 8:30 PM Ludek Novy ***@***.***> wrote:
No, they do not have to be hosted on the same machine. But you need access
from the jmeter host to jtl reporter host of course.
Let me know if you made it work.
—
Reply to this email directly, view it on GitHub
<#131 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACKUJ56LK3QDR6HA3OYBQRTU2UQBXANCNFSM5OEF44ZQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Yes, you are right. Port 5000 seems to be blocked.
I will have to try on another machine.
Do we have a dockerized way of running jtlReporter? If so, can you please
share the instructions?
Regards,
Abhay
…On Fri, Feb 11, 2022 at 8:55 PM Ludek Novy ***@***.***> wrote:
are you sure that your EC2 / network settings have exposed port 5000?
What's weird is curl: (7) Failed to connect to <IP> port 80: Connection
refused why port 80? There is some network issue I guess.
—
Reply to this email directly, view it on GitHub
<#131 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACKUJ52DOEMNHJNGZEDSW23U2US6PANCNFSM5OEF44ZQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Thanks a lot. |
Beta Was this translation helpful? Give feedback.
-
Finally resolved. |
Beta Was this translation helpful? Give feedback.
Finally resolved.
Thanks @ludeknovy for all the help.