{"action":"closed","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-js/issues/823","labels_url":"https://api.github.com/repos/aws/aws-sdk-js/issues/823/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-js/issues/823/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-js/issues/823/events","html_url":"https://github.com/aws/aws-sdk-js/issues/823","id":120004550,"number":823,"title":"Cannot send message to SQS queue","user":{"login":"Alaneor","id":3058150,"avatar_url":"https://avatars.githubusercontent.com/u/3058150?v=3","gravatar_id":"","url":"https://api.github.com/users/Alaneor","html_url":"https://github.com/Alaneor","followers_url":"https://api.github.com/users/Alaneor/followers","following_url":"https://api.github.com/users/Alaneor/following{/other_user}","gists_url":"https://api.github.com/users/Alaneor/gists{/gist_id}","starred_url":"https://api.github.com/users/Alaneor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alaneor/subscriptions","organizations_url":"https://api.github.com/users/Alaneor/orgs","repos_url":"https://api.github.com/users/Alaneor/repos","events_url":"https://api.github.com/users/Alaneor/events{/privacy}","received_events_url":"https://api.github.com/users/Alaneor/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-02T18:18:46Z","updated_at":"2015-12-02T19:17:21Z","closed_at":"2015-12-02T19:17:21Z","body":"Hello,\r\n\r\nI am receiving the following error while trying to send a message to an SQS queue:\r\n\r\n```\r\nTypeError: Cannot read property 'match' of null\r\n    at Request.buildEndpoint (node_modules/aws-sdk/lib/services/sqs.js:127:54)\r\n    at Request.callListeners (node_modules/aws-sdk/lib/sequential_executor.js:105:20)\r\n    at Request.emit (node_modules/aws-sdk/lib/sequential_executor.js:77:10)\r\n    at Request.emit (node_modules/aws-sdk/lib/request.js:595:14)\r\n    at Request.transition (node_modules/aws-sdk/lib/request.js:21:10)\r\n    at AcceptorStateMachine.runTo (node_modules/aws-sdk/lib/state_machine.js:14:12)\r\n    at node_modules/aws-sdk/lib/state_machine.js:26:10\r\n    at Request.<anonymous> (node_modules/aws-sdk/lib/request.js:37:9)\r\n    at Request.<anonymous> (node_modules/aws-sdk/lib/request.js:597:12)\r\n    at Request.callListeners (node_modules/aws-sdk/lib/sequential_executor.js:115:18)\r\n    at callNextListener (node_modules/aws-sdk/lib/sequential_executor.js:95:12)\r\n    at node_modules/aws-sdk/lib/event_listeners.js:75:9\r\n    at finish (node_modules/aws-sdk/lib/config.js:244:7)\r\n    at node_modules/aws-sdk/lib/config.js:260:9\r\n    at Credentials.get (node_modules/aws-sdk/lib/credentials.js:126:7)\r\n    at getAsyncCredentials (node_modules/aws-sdk/lib/config.js:254:24)\r\n```\r\n\r\nI am building my SQS instance using the following code:\r\n\r\n```js\r\nconst AWS = require('aws-sdk')\r\nconst config =\r\n      { accessKeyId: 'my-key'\r\n      , secretAccessKey: 'my-secret'\r\n      , apiVersions:\r\n        { sqs: '2012-11-05'\r\n        }\r\n      , region: 'us-east-1'\r\n      }\r\n\r\nAWS.config.update(config)\r\n\r\nconst sqs = new AWS.SQS()\r\n\r\n// Send the message\r\nconst params =\r\n      { MessageBody: 'some-payload'\r\n      , QueueUrl: 'https://sqs.us-east-1.amazonaws.com/123456/messages'\r\n      }\r\n\r\nsqs.sendMessage(params, (err, data) => {\r\n  // err is the above-described error\r\n})\r\n```\r\n\r\nNot sure if I need to provide additional configuration for the SQS service, this looks like all that the docs say is required.\r\n\r\nThanks for any help!\r\n\r\n> aws-sdk version used: `2.2.20`"}}