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

Getting Status: 400 error while running command through Hubot in HipChat #34

Open
jairaman12 opened this issue Aug 4, 2017 · 2 comments

Comments

@jairaman12
Copy link

Hello folks!
I needed some assistance on the error that I've been getting lately.
Whenever I run a command/chat in HipChat: @hubot gh info, I'm getting the below error in the debug logs. I've tried may a stuffs but couldn't figure out the exact reason. Any help will really be appreciated. I have a feeling that my GitHub API URL getting parsed is somehow wrong.


REQUEST: { host: 'ghe..com/api/v3',
port: 443,
path: '/orgs/
/teams?per_page=100&access_token=***********',
method: 'get',
headers:
{ host: 'ghe..com/api/v3',
'content-length': '0',
accept: 'application/vnd.github.moondragon+json',
'user-agent': 'NodeJS HTTP Client' },
ca: undefined,
agent:
HttpsProxyAgent {
domain: null,
_events: {},
_eventsCount: 0,
_maxListeners: undefined,
callback: [Function: connect],
secureProxy: true,
proxy:
{ protocol: 'https:',
slashes: true,
auth: null,
host: 'ghe..com/',
port: 443,
hostname: 'ghe..com/',
hash: null,
search: null,
query: null,
href: 'https://ghe.****.com/',
parse: [Function: parse],
format: [Function: format],
resolve: [Function: resolve],
resolveObject: [Function: resolveObject],
parseHost: [Function: parseHost] } } }
STATUS: 400
HEADERS: {"server":"GitHub.com","date":"Fri, 04 Aug 2017 20:38:08 GMT","content-type":"text/html","content-length":"161083","connection":"close","etag":""57ed0977-2753b""}
problem with request: read ECONNRESET
[error] read ECONNRESET { org: '
', per_page: 100 } null
[Fri Aug 04 2017 16:38:08 GMT-0400 (EDT)] DEBUG building message
[Fri Aug 04 2017 16:38:08 GMT-0400 (EDT)] DEBUG There was an error getting the details of the organization: ****


@contolini
Copy link
Member

Hey @jairaman12, thanks for reporting this. Just to confirm: are you using this script with github enterprise and not github.com?

@jairaman12
Copy link
Author

hey @contolini
that is correct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants