Error: username is required
See original GitHub issueNote: 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
- 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:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
@Shree2470 Please open a new issue as closed issues are not tracked as closely.