Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xhr poll error and xhr post error #3401

Open
OwaisKodexo opened this issue Nov 8, 2024 · 1 comment
Open

xhr poll error and xhr post error #3401

OwaisKodexo opened this issue Nov 8, 2024 · 1 comment

Comments

@OwaisKodexo
Copy link

OwaisKodexo commented Nov 8, 2024

config:
  target: "https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  phases:
    - duration: 60
      arrivalRate: 1
      name: "Warm Up"

    - duration: 60
      arrivalRate: 50
      name: "Sustained Load"

  engines:
    socketio:
      transports: ["websocket"]

  headers:
    extraHeaders:
      Authorization: "Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

scenarios:
  - name: "Sending messages"
    engine: "socketio"
    flow:
      - emit:
          channel: "chat.message.text"
          data:
            user_query: "{{ randomMessage }}"
            session_id: "thread_xxxxxxxxxxxxxxxxxxxxxxx"
            is_audio: false
          count: 1  
    payload:
      randomMessage:
        - "How are you?"
        - "Hello there!"
        - "I need some advice."
        - "Can you help me?"
        - "What's the best way to handle stress?"
*********************************************************************************************************

errors.Error: xhr poll error: .................................................. 247
errors.Error: xhr post error: .................................................. 195
socketio.emit: ................................................................. 39
socketio.emit_rate: ............................................................ 7/sec
socketio.response_time:
  min: ......................................................................... 0.1
  max: ......................................................................... 1.5
  mean: ........................................................................ 0.7
  median: ...................................................................... 0.8
  p95: ......................................................................... 1.4
  p99: ......................................................................... 1.4
vusers.completed: .............................................................. 39
vusers.created: ................................................................ 500
vusers.created_by_name.Sending messages: ....................................... 500
vusers.failed: ................................................................. 442
vusers.session_length:
  min: ......................................................................... 617.2
  max: ......................................................................... 1516.8
  mean: ........................................................................ 831.1
  median: ...................................................................... 820.7
  p95: ......................................................................... 1130.2
  p99: ......................................................................... 1353.1
  
  
**********************************************************************************************************
Debug Report  
  
   2024-11-08T10:11:09.969Z socketio Error: xhr poll error
    at XHR.onError (/usr/local/lib/node_modules/artillery/node_modules/engine.io-client/build/cjs/transport.js:48:37)
    at Request.<anonymous> (/usr/local/lib/node_modules/artillery/node_modules/engine.io-client/build/cjs/transports/polling-xhr.js:64:18)
    at Emitter.emit (/usr/local/lib/node_modules/artillery/node_modules/@socket.io/component-emitter/lib/cjs/index.js:143:20)
    at Request._onError (/usr/local/lib/node_modules/artillery/node_modules/engine.io-client/build/cjs/transports/polling-xhr.js:173:14)
    at Timeout._onTimeout (/usr/local/lib/node_modules/artillery/node_modules/engine.io-client/build/cjs/transports/polling-xhr.js:146:30)
    at listOnTimeout (node:internal/timers:594:17)
@OwaisKodexo
Copy link
Author

OwaisKodexo commented Nov 8, 2024

My issue has been resolved
I remove the "engines"
and after target
socketio:
transports: ["websocket"]

now its look like this

config:
  target: "https://<your website>
  socketio:
    transports: ["websocket"]
  phases:
    - duration: 60
      arrivalRate: 10
      name: "<name>"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant