Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Error status 530 in sending notification

Roberto Gusmeroli September 20, 2019

Hi

I'm trying to send notification with following code but

def htmlMessage = writer.toString()
def textMessage = new XmlSlurper().parseText(htmlMessage).text()

resp = post("/rest/api/2/issue/${claim.key}/notify")
.header("Content-Type", "application/json")
.body([
subject: "Ticket " +claim.key + " was opened",
textBody: textMessage,
htmlBody: htmlMessage,
to: [
groups: myissue["customfield_101776"]
]
]
)
.asString()

return resp;

 

but resp return me

 

 { "delegate": {
    "headers": {
      "Transfer-Encoding": [
        "chunked"
      ],
      "server": [
        "AtlassianProxy/1.15.8.1"
      ],
      "Connection": [
        "keep-alive"
      ],
      "strict-transport-security": [
        "max-age=315360000; includeSubDomains; preload"
      ],
      "Date": [
        "Fri, 20 Sep 2019 14:53:17 GMT"
      ],
      "atl-traceid": [
        "023236438442e060"
      ],
      "x-xss-protection": [
        "1; mode=block"
      ],
      "x-content-type-options": [
        "nosniff"
      ],
      "x-arequestid": [
        "f9f91337-7218-4977-9315-b435aa11312d"
      ],
      "x-aaccountid": [
        "557058%3Adaaabbe0-31e1-4ff8-b6cf-bf8128eca836"
      ],
      "correlationId": [
        "22373a72-750e-4f18-adb0-f989a0702a03"
      ],
      "timing-allow-origin": [
        "*"
      ],
      "cache-control": [
        "no-cache, no-store, no-transform"
      ],
      "Content-Type": [
        "application/json;charset=UTF-8"
      ]
    },
    "statusText": "Server Error (530)",
    "parsingError": {
      "present": false
    },
    "body": "{\"errorMessages\":[\"Internal server error\"],\"errors\":{}}",
    "status": 530
  },
  "headers": {
    "Transfer-Encoding": [
      "chunked"
    ],
    "server": [
      "AtlassianProxy/1.15.8.1"
    ],
    "Connection": [
      "keep-alive"
    ],
    "strict-transport-security": [
      "max-age=315360000; includeSubDomains; preload"
    ],
    "Date": [
      "Fri, 20 Sep 2019 14:53:17 GMT"
    ],
    "atl-traceid": [
      "023236438442e060"
    ],
    "x-xss-protection": [
      "1; mode=block"
    ],
    "x-content-type-options": [
      "nosniff"
    ],
    "x-arequestid": [
      "f9f91337-7218-4977-9315-b435aa11312d"
    ],
    "x-aaccountid": [
      "557058%3Adaaabbe0-31e1-4ff8-b6cf-bf8128eca836"
    ],
    "correlationId": [
      "22373a72-750e-4f18-adb0-f989a0702a03"
    ],
    "timing-allow-origin": [
      "*"
    ],
    "cache-control": [
      "no-cache, no-store, no-transform"
    ],
    "Content-Type": [
      "application/json;charset=UTF-8"
    ]
  },
  "status": 500,
  "statusText": "Server Error (530)",
  "parsingError": {
    "present": false
  },
  "body": "{\"errorMessages\":[\"Internal server error\"],\"errors\":{}}"
}

 

Error 530, any suggestion for the reason?

1 answer

0 votes
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 26, 2019

Ciao @Roberto Gusmeroli ,

Is this actually working if you try to send the same body to the same endpoint using Curl?

In case it is working, then the problem might be with your code.

In case it won't work with Curl as well, then please copy paste the curl request and output in your reply making sure to hide/remove the sensitive data (e.g. instance url, credentials to authenticate, etc).

 

 

Cheers,
Dario

Suggest an answer

Log in or Sign up to answer