a month ago

When sending multiple messages, the Pushullet API reports an error 500.

As part of my work for a company, I am using the pushbullet API to automate the sending of SMS messages. However, when I attempt to send multiple messages, I encounter an error in the browser console:

POST 500

If I only send a few messages at a time, everything seems to be running well, but when I try to send more, this error often appears. I'm not sure if the issue is that I'm sending too many messages at once or if there is another solution to this. Can you help me understand?

Below is the code I am using to send the messages to the API:

sendSms: async function (iden, numero, smsBody) {
  let authHeaders = new Headers();
  var body = {"data":{}};
  if ((iden.length === 0) || (numero.length === 0) || (smsBody.length === 0)) {
    console.warn("SMS SEND NOT VALID " + iden + ' ' + numero + ' ' + smsBody)
  authHeaders.append('Content-Type', 'application/json');
  authHeaders.append('Access-Token', APIkey); = iden; = [];; = smsBody;
  let response = await fetch('', {
    method: 'POST',
    headers: authHeaders,
    body: JSON.stringify(body)
a month ago
Verified Answer
The error message you are seeing is a server error, not a client error. Generally speaking, 5xx response codes indicate non-programmatic failures, such as a database connection failure, or some other system/library dependency failure. In many cases, it is expected that the client can re-submit the same request in the future and expect it to be successful. It is possible that you are sending too many messages at once. According to Android Police, free accounts will be limited to 500 API pushes per month starting August 1st, 2016. However, this only applies to custom apps and services that use the Pushbullet public API. It won't affect Channels, IFTTT, manual pushes, and so on. I hope this helps! Let me know if you have any other questions.


REST API error code 500 handling - Stack OverflowPushbullet will limit API-based pushes to 500 per month on free ...Pushullet API: error 500 when sending multiple messagesPushbullet APIPushbullet API
a month ago
The POST 500 error indicates that there was a problem on the server-side of the Pushbullet API. It is not caused by the number of messages you are sending. To solve this issue, you could try to send smaller batches of messages at a time or contact the Pushbullet support team for assistance. Regarding the code you provided, it appears to be correctly formatting the request and sending it to the Pushbullet API. However, you might want to add some error handling in case the API returns an error status code. You could also consider using a JavaScript library like Axios or Fetch to simplify the AJAX request.