Exception: HTTP Response 400 
 Response was: 'HTTP/1.1 400 Bad Request
cache-control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0
content-disposition: attachment; filename=json.json
content-length: 62
content-type: application/json; charset=utf-8
date: Wed, 24 Oct 2018 03:15:24 GMT
expires: Tue, 31 Mar 1981 05:00:00 GMT
last-modified: Wed, 24 Oct 2018 03:15:24 GMT
pragma: no-cache
server: tsa_b
set-cookie: personalization_id="v1_Gf4RUJwIxqDQTN1ZUQngHA=="; Expires=Fri, 23 Oct 2020 03:15:24 GMT; Path=/; Domain=.twitter.com
set-cookie: guest_id=v1%3A154035092435052840; Expires=Fri, 23 Oct 2020 03:15:24 GMT; Path=/; Domain=.twitter.com
status: 400 Bad Request
strict-transport-security: max-age=631138519
x-connection-hash: 97d393fd6c9b7ab139039acca95392dc
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-response-time: 6
x-transaction: 009c7b3d003df4d0
x-twitter-response-tags: BouncerCompliant
x-xss-protection: 1; mode=block; report=https://twitter.com/i/xss_report

{"errors":[{"code":215,"message":"Bad Authentication data."}]}'

Location: /var/www/singtel-dev-8.7/channels/twitter/classes/TwitterAPI.php line: 374.
Server info: Linux dev4 3.13.0-139-generic #188-Ubuntu SMP Tue Jan 9 14:43:09 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Stack Trace:
#0 /var/www/singtel-dev-8.7/channels/twitter/classes/TwitterAPI.php(720): TwitterAPI->request('POST', 'https://api.twi...', Array, Array, Array)
#1 /var/www/singtel-dev-8.7/channels/app/classes/TwitterLoginHandler.php(20): TwitterAPI->getRequestToken('http://singtel....')
#2 /var/www/singtel-dev-8.7/channels/app/classes/OAuthLoginHandler.php(47): TwitterLoginHandler->getLoginURL()
#3 /var/www/singtel-dev-8.7/channels/app/classes/TwitterLoginHandler.php(31): OAuthLoginHandler->checkCredentials()
#4 /var/www/singtel-dev-8.7/channels/app/callbacks/logingw.php(43): TwitterLoginHandler->checkCredentials()
#5 [internal function]: logingw()
#6 /var/www/singtel-dev-8.7/channels/app/classes/CallbackRenderer.php(29): call_user_func_array('logingw', Array)
#7 /var/www/singtel-dev-8.7/channels/app/classes/PageLoader.php(250): CallbackRenderer::render(Array, Object(stdClass), 'main')
#8 /var/www/singtel-dev-8.7/channels/app/classes/PageLoader.php(327): PageLoader->renderPageRegion(Array, Object(stdClass), 'main')
#9 /var/www/singtel-dev-8.7/index.php(186): PageLoader->renderPage('logingw/twitter')
#10 {main}

 == $_GET ==
q:  logingw/twitter


 == UDB Log ==
0: readShardFile:180: Parsed shard file '/var/www/singtel-dev-8.7/config/shard.ini'. 
1: udb_config::readAliasFile: reading aliases file /var/www/singtel-dev-8.7/config/aliases.ini
2: Searching resource system.arbiter_ips as system.arbiter_ips
3: load:636: Attempting to connect to DB 'rds0': Host is 'rds0.simplycast.com' with username 'development'
4: udb_handle::exec:505: exec Query 'SET NAMES 'utf8', 
      character_set_database='utf8',
      character_set_client='utf8',
      character_set_connection='utf8'
    ' on handle rds0
5: Got handle named rds0
6: udb_handle::query:325: query() Query 'SELECT DISTINCT app_url,franchise_cluster FROM `system`.`arbiter_ips`' on handle rds0
7: Searching resource system.subdomain_masker as system.subdomain_masker
8: Got handle named rds0
9: udb_handle::query:325: query() Query 'SELECT DISTINCT subdomain, client_id, reseller FROM `system`.`subdomain_masker`' on handle rds0
10: Searching resource franchise.resellers as franchise.resellers
11: Got handle named rds0
12: udb_handle::query:325: query() Query 'SELECT * FROM `franchise`.`resellers` WHERE `id`='singtel-dev'' on handle rds0
13: udb_config::readAliasFile: reading aliases file /var/www/singtel-dev-8.7/config/singtel-dev/udb/aliases.ini
14: Adding alias crm => _crm of type database
15: udb_config::readAliasFile: reading aliases file /var/www/singtel-dev-8.7/config/singtel-dev/udb/aliases.ini
16: Adding alias crm => _crm of type database
17: Searching resource franchise.resellers as franchise.resellers
18: Got handle named rds0
19: Examining db alias crm => _crm in `franchise`.`resellers`
20: udb_handle::query:325: query() Query 'SELECT * FROM `franchise`.`resellers` WHERE `id`='singtel-dev'' on handle rds0
21: udb_config::readAliasFile: reading aliases file /var/www/singtel-dev-8.7/config/singtel-dev/udb/aliases.ini
22: Adding alias crm => _crm of type database
23: Searching resource cache.cache as cache.cache
24: Got handle named rds0
25: Examining db alias crm => _crm in `cache`.`cache`
26: udb_handle::query:325: query() Query 'SELECT data,expiry,type FROM `cache`.`cache` WHERE `key` = 'twitter-https://api.twitter.com/oauth/request_token--Array'' on handle rds0
27: udb_handle::exec:505: exec Query 'UNLOCK TABLES' on handle rds0


This is exception #gwnk306spe0i

 == Exception Handlers Called ==
#0: core_exception_email( -100 ) : 1
#1: api_exception_handler_print_trace( 0 ) : 
#2: exception_handler_check_connections( 100 ) : 0
#3: udb_exception_Handler( -50 ) :