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

Deactivations API: Temporary Redirect (307) Error #613

Closed
Saka7 opened this issue Sep 16, 2020 · 2 comments
Closed

Deactivations API: Temporary Redirect (307) Error #613

Saka7 opened this issue Sep 16, 2020 · 2 comments
Labels
type: bug bug in the library

Comments

@Saka7
Copy link
Contributor

Saka7 commented Sep 16, 2020

Issue Summary

Deactivations API throws an expection

Steps to Reproduce

  1. Follow the official documentation at deactivated-phone-numbers
  2. Set correct accountSid, authToken
  3. Run code snippet:

Code Snippet

const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.messaging.deactivations()
                .fetch({date: new Date(Date.UTC(2020, 8, 5))})
                .then(deactivations => console.log(deactivations.redirectTo));

Exception/Log

RestException [Error]
    at success (../node_modules/twilio/lib/base/Version.js:63:15)
    at Promise_then_fulfilled (../node_modules/q/q.js:766:44)
    at Promise_done_fulfilled (../node_modules/q/q.js:835:31)
    at Fulfilled_dispatch [as dispatch] (../node_modules/q/q.js:1229:9)
    at Pending_become_eachMessage_task (../node_modules/q/q.js:1369:30)
    at RawTask.call (../asap/asap.js:40:19)
    at flush (../node_modules/asap/raw.js:50:29)
    at processTicksAndRejections (internal/process/task_queues.js:79:11) {
  status: 307,
  code: undefined,
  moreInfo: undefined,
  details: undefined
}

Technical details:

  • twilio-node version: 3.49.1
  • node version: v12.18.4
@childish-sambino
Copy link
Contributor

Similar to twilio/twilio-csharp#534

This issue has been added to our internal backlog to be prioritized. Pull requests and +1s on the issue summary will help it move up the backlog.

@childish-sambino childish-sambino added status: work in progress Twilio or the community is in the process of implementing type: bug bug in the library labels Sep 16, 2020
@childish-sambino
Copy link
Contributor

Fixed by #614

@childish-sambino childish-sambino removed the status: work in progress Twilio or the community is in the process of implementing label Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug bug in the library
Projects
None yet
Development

No branches or pull requests

2 participants