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

🐛 Bug Report: Kannel SMS gateway not working with SSL #4194

Open
2 tasks done
msalahat opened this issue Sep 23, 2023 · 0 comments
Open
2 tasks done

🐛 Bug Report: Kannel SMS gateway not working with SSL #4194

msalahat opened this issue Sep 23, 2023 · 0 comments
Labels

Comments

@msalahat
Copy link
Contributor

📜 Description

I have my kannel service over https, I added my configuration as below

  • Host: ******
  • Port: 443
  • Username: ***
  • Password: ****

But SMS fails to be delivered here is what I am getting with the log

{
  "message": "socket hang up",
  "name": "Error",
  "stack": "Error: socket hang up\n    at connResetException (node:internal/errors:705:14)\n    at Socket.socketOnEnd (node:_http_client:518:23)\n    at Socket.emit (node:events:525:35)\n    at Socket.emit (node:domain:489:12)\n    at endReadableNT (node:internal/streams/readable:1358:12)\n    at processTicksAndRejections (node:internal/process/task_queues:83:21)",
  "config": {
    "transitional": {
      "silentJSONParsing": true,
      "forcedJSONParsing": true,
      "clarifyTimeoutError": false
    },
    "transformRequest": [
      null
    ],
    "transformResponse": [
      null
    ],
    "timeout": 0,
    "xsrfCookieName": "XSRF-TOKEN",
    "xsrfHeaderName": "X-XSRF-TOKEN",
    "maxContentLength": -1,
    "maxBodyLength": -1,
    "env": {},
    "headers": {
      "Accept": "application/json, text/plain, */*",
      "User-Agent": "axios/0.27.2"
    },
    "params": {
      "username":  "*******",
      "password": "*******",
      "from": "+962795113153",
      "to": "+962795113135",
      "text": "test test"
    },
    "method": "get",
    "url": "http:// "*******",:443/cgi-bin/sendsms"
  },
  "code": "ECONNRESET",
  "status": null
}

I have masked Host, Username and the password.

👟 Reproduction steps

  • Enable Kannel SMS by adding host and port as 443
  • Trigger a workflow with SMS step

👍 Expected behavior

It should send the SMS probably

👎 Actual Behavior with Screenshots

{
  "message": "socket hang up",
  "name": "Error",
  "stack": "Error: socket hang up\n    at connResetException (node:internal/errors:705:14)\n    at Socket.socketOnEnd (node:_http_client:518:23)\n    at Socket.emit (node:events:525:35)\n    at Socket.emit (node:domain:489:12)\n    at endReadableNT (node:internal/streams/readable:1358:12)\n    at processTicksAndRejections (node:internal/process/task_queues:83:21)",
  "config": {
    "transitional": {
      "silentJSONParsing": true,
      "forcedJSONParsing": true,
      "clarifyTimeoutError": false
    },
    "transformRequest": [
      null
    ],
    "transformResponse": [
      null
    ],
    "timeout": 0,
    "xsrfCookieName": "XSRF-TOKEN",
    "xsrfHeaderName": "X-XSRF-TOKEN",
    "maxContentLength": -1,
    "maxBodyLength": -1,
    "env": {},
    "headers": {
      "Accept": "application/json, text/plain, */*",
      "User-Agent": "axios/0.27.2"
    },
    "params": {
      "username":  "*******",
      "password": "*******",
      "from": "+962795113153",
      "to": "+962795113135",
      "text": "test test"
    },
    "method": "get",
    "url": "http:// "*******",:443/cgi-bin/sendsms"
  },
  "code": "ECONNRESET",
  "status": null
}

Novu version

next

npm version

No response

node version

No response

📃 Provide any additional context for the Bug.

No response

👀 Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find a similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to submit PR?

Yes I am willing to submit a PR!

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

No branches or pull requests

1 participant