question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: username is required

See original GitHub issue

Note: These issues are for bugs and feature requests for the helper libraries. If you need help or support, please email help@twilio.com and one of our experts will assist you!

Version: 3.24.0

Code Snippet

var twilio = new Twilio(SID,TOKEN);

Exception/Log

Error: username is required
    at new Twilio (/home/spaceboyross/OS.js-apps/twilio-client/node_modules/twilio/lib/rest/Twilio.js:137:11)
    at new initializer (/home/spaceboyross/OS.js-apps/twilio-client/node_modules/twilio/lib/index.js:9:10)
    at core.app.post (/home/spaceboyross/OS.js-apps/twilio-client/server.js:7:13)
    at Layer.handle [as handle_request] (/home/spaceboyross/OS.js/node_modules/express/lib/router/layer.js:95:5)
    at next (/home/spaceboyross/OS.js/node_modules/express/lib/router/route.js:137:13)
    at Route.dispatch (/home/spaceboyross/OS.js/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/home/spaceboyross/OS.js/node_modules/express/lib/router/layer.js:95:5)
    at /home/spaceboyross/OS.js/node_modules/express/lib/router/index.js:281:22
    at Function.process_params (/home/spaceboyross/OS.js/node_modules/express/lib/router/index.js:335:12)
    at next (/home/spaceboyross/OS.js/node_modules/express/lib/router/index.js:275:10)
    at serveStatic (/home/spaceboyross/OS.js/node_modules/serve-static/index.js:75:16)
    at Layer.handle [as handle_request] (/home/spaceboyross/OS.js/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/home/spaceboyross/OS.js/node_modules/express/lib/router/index.js:317:13)
    at /home/spaceboyross/OS.js/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/home/spaceboyross/OS.js/node_modules/express/lib/router/index.js:335:12)
    at next (/home/spaceboyross/OS.js/node_modules/express/lib/router/index.js:275:10)

Steps to Reproduce

  1. Attempt to login

Feature Request

If this is a feature request, make sure you search Issues for an existing request before creating a new one!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
imthepittscommented, Nov 27, 2018

Hi @SpaceboyRoss01,

Sorry you’re having trouble. Looks like your SID is either null or empty string. It’s just a simple validation check:

https://github.com/twilio/twilio-node/blob/6283ca3016be05e9355499cfb58b76abb827fe78/lib/rest/Twilio.js#L136-L138

Please verify the input and if you continue having trouble, post a complete code snippet that reproduces the issue.

Zack

0reactions
childish-sambinocommented, Aug 26, 2022

@Shree2470 Please open a new issue as closed issues are not tracked as closely.

Read more comments on GitHub >

github_iconTop Results From Across the Web

twilio error 'username required' - Stack Overflow
I am getting and error that says username is required. I am trying to use twilio. I followed a youtube video and i...
Read more >
Username is a required option - Common causes and ... - Opster
Username is a required option - Common causes and quick fixes. Prevent & resolve issues, cut down administration time & hardware costs. Block...
Read more >
I got this error "The username field is required." registration
I got this error "The username field is required." registration. This happened when I add a new "username " on a default Laravel...
Read more >
Error: "Username format should be [user@name]"
This error is caused when you attempt to enter a badly formatted username. All usernames for login use the format of 'user@name.' This...
Read more >
"Username is Already in Use" When Registering Teacher ...
Username for teacher accounts is automatically created from the email address added during registration (consists of all characters before @) and the error...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found