Testing the performance of artillery on Graph QL endpoints using a YML file without the ability to view debug logs or identify issues post-execution

Currently, I am utilizing the artillery node JS tool for performance testing using yml-based scenarios. All necessary plugin libraries have been successfully installed and I can execute artillery tests without an issue. However, I am encountering a problem where I cannot locate any logs detailing errors in my graph ql requests or responses. I attempted to set DEBUG=http,http:request,http:response, but to no avail.

I am operating on a Windows system and have tried running commands in both the command prompt and PowerShell.

Could someone kindly provide guidance on how to access debug logs or pinpoint any errors?

Highlighted below is a snippet of my yml code:

config:
  target: 'https:test.dev.demo.io'
  plugins:
    ensure: {}
    expect: {}
    metrics-by-endpoint:
      useOnlyRequestNames: true
      metricsNamespace: "latency_metrics"
  phases:
    - duration: 1
      arrivalRate: 1
scenarios:
- name: "Get Bill Status"
  flow:
    - log: "Get Bill Status GRAPH QL Test running"
    - get:
        url: "/graphql"
        headers: {
            Authorization: "bearer f32tb20190ac1abd0a24a6e27cf124f9f7308a65592b8a72a5115995edc32277"
            }
        expect:
            - statusCode: 200
        json:
            query: |
              query {
                getApiV1BillRequestIdStatus(requestId: "e9e5a487-4c55-48cc-853d-1bd9466db53d"}) {
                  code
                  data
                  message
                }
              }
        capture:
          - json: $.code
            as: status_code

In the Windows command prompt, I utilized the following command:

set DEBUG=http artillery run my-script.yml

As for the Windows PowerShell prompt, the command used was:

$Env:DEBUG = 'http' artillery run my-script.yml

The output displayed after executing these commands can be seen here.

Answer â„–1

For those who come across this in the future, you can find the solution discussed here: https://example.com/solution-discussion

To summarize, enabling the DEBUG setting with specific values is necessary for logging. However, there was a bug preventing error messages from being captured in logs directly. A fixed version can be found in the provided link, and it will also be included in the next Artillery release.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

The combination of Express 3.0, Everyauth, and HTTPS creates a powerful

Currently, I am working with nodejs and using express 3 along with everyauth for google oauth. The setup appears as follows: everyauth.google /* snip */ .callbackPath('/loggedin'); var app = express(); app.configure(function(){ /* snip */ ...

Performing Numerous Validations in Mysql Using ExpressJS and NodeJS

Hello, I am just starting out with NodeJS and currently working on an ExpressJS API to use with angular2. I am facing a problem where I need to perform database checks (MySQL) before inserting data and handle any errors that may occur. However, my code se ...

Navigating through relationships in BreezeMongo: Tips and tricks

In my current setup, I have defined two entities: Hospital and Patient with a one-to-many relationship. The metadata for these entities is created as follows: function addHospital() { addType({ name: 'Hospital', ...

I can't seem to catch my Zod error, even though 'express-async-errors' is already installed. What could be causing this issue?

I've been working on developing an API, but I'm facing issues with setting up a global error controller using Zod. It seems that the global error handler is not being called even though I'm using express-async-errors. Below is my error mana ...

Prevent the risk of revealing your LinkedIn API key within HTML code

For my website, I am looking to incorporate the Sign In With LinkedIn feature for user logins. The initial example snippet provided in the LinkedIn API docs is as follows: <script type="text/javascript" src="//platform.linkedin.com/in.js"> api_k ...

React pagination for categories

Recently, I encountered an issue while using NodeJS with React. I was unable to find any npm module or code snippet that could help me implement pagination for a list of job results. I have a variable named "jobs" which stores a list of job advertisements ...

Production pages encounter 'get' error when refreshed due to routing issues - Node.js, Express API with webpack and ReactJS frontend

I have set up my webpack configuration to compile my react app, and I am using Node.js as the server with Express middleware. Whenever I try to refresh a route on the production environment, for example /chefs, I receive an error. Below is my server.js s ...

Upon opening the terminal, Vim's Ex mode is activated

Recently, I stumbled upon an issue with Vim in my Mac terminal. While copy and pasting text the other day, I accidentally triggered something that now causes Vim to load in Ex mode every time I open the Terminal. I am aware of how to exit Ex mode once insi ...

npm indicates that it 'necessitates (one version)' but is set to utilize (a different version)

When installing Cordova using npm, I encountered warning messages for almost every npm operation stating "requires colors@'>=0.6.0' but will load .. color" D:\Workspaces\Enide-Studio-2014\OpenWith.js>npm i . -g C:\Users&bs ...

Error: A sudden termination of multipart data was encountered during a post request in a node.js application

Attempting to retrieve an image via busboy in a Node.js post call is resulting in the following error: Error: Unexpected end of multipart data thrown by ..\node_modules\dicer\lib\Dicer.js:61:28 This snippet shows the code being used: ...

The POST function is executed twice, with the first attempt resulting in a failed API call, but the second attempt is

I am experiencing issues with my subscribe dialog, as it seems to be running the API call twice. The first time it fails, but on the second attempt, it succeeds and inserts the email into the database. This double run is causing errors in my AJAX function, ...

What is the process of transferring JavaScript code to an HTML file using webpack?

I am looking to display an HTML file with embedded CSS, fonts, and JS (not linked but the content is inside). I have the CSS and fonts sorted out, but I am struggling to find a solution for the JavaScript. My project is based on Node.js. ...

Whoops! The input buffer seems to be containing an image format that is not supported while attempting to utilize Next JS next-opt

I initially used the default Image Optimization component in my Next JS app, only to realize that the site could only be hosted on Vercel and not on other web hosting platforms. This limitation prompted me to explore the next-optimized-images package, whic ...

Enhance the performance of node.js when processing data from a massive file

My dilemma lies in the challenge of reading and processing a large file with numerous rows. When dealing with small files under 50kb, everything runs smoothly. However, I am faced with a 15MB file for a programming competition, which serves as a hard input ...

Error occurred in the middle of processing, preventing the headers from being set

I created a custom authentication middleware, but encountered an error. I'm puzzled about what's going wrong because I expected the next() function to resolve the issue? app.use(function(req, res, next){ if(req.user){ res.local ...

What is the best way to filter out the output from the `mongo-express` node express middleware in the terminal?

Upon visiting my local installation of the Mongo-Express Web Interface in a browser, I am presented with a layout as depicted below: https://i.stack.imgur.com/PWcXO.png However, when inspecting the console, I notice that it displays all the resour ...

Troubleshooting Node.js: Fixing the "Error: ENOENT - File or directory not found" issue

Currently, I have successfully set up a Node.js web application on my production server. Now, I am trying to replicate the same setup on my development server. Node.js, NPM, and MongoDB are all installed on my development server just like in production. H ...

How can we effectively share code between server-side and client-side in Isomorphic ReactJS applications?

For a small test, I am using express.js and react.js. Below you can find my react code: views/Todo.jsx, var React = require('react'); var TodoApp = React.createClass({ getInitialState: function() { return { counter: 0 ...

What is the best way to include a pagination feature with numbered buttons at the bottom of my website for pages 1 through 4?

I am in the process of creating a website that allows users to access and download various files. My plan is to upload these files to the site, where they will be displayed on the homepage. However, I would like only the first 10 files to be visible on t ...

Step-by-step guide on deploying Angular Universal

Exploring Angular universal and working on understanding deployment strategies. Check out the Github repository at https://github.com/angular/universal-starter This project includes Angular 2 Universal, TypeScript 2, and Webpack 2. After running the comm ...