-
Notifications
You must be signed in to change notification settings - Fork 6
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
TypeError being thrown #12
Comments
Where are you seeing this error and what did you do to get it? |
When I type
in a Slack channel the bot is added to, that is what the bot says back. To get the URL, I'm clicking on a line of code in the web UI and copying the resulting URL:
I've tried clicking on the line number instead, so it appends
to the end of the URL - but I get the same result. This is based on what the bot responds with when I asked it for 'help':
Am I just using the wrong URLs? (if so - maybe the bot could check for that, and tell me what I should be doing instead?) |
I was able to fix the issue but may I know the URL you're using instead of |
The bug fix should be up and running. Can you please check if it solves it? |
All I get now is "We had an issue getting the snippet from Beanstalk. Please make sure that you entered the correct username and authorization token." instead of the error output. Just to confirm a few things. In the Beep Boop config screen, it asks for Beanstalk username and "Auth Token" - but I'm using API Access tokens, that I'm creating in my account; is that not correct? Does the app not verify these credentials before first trying to use them? (i.e. on save?) The other part that is somewhat strange is that Beanstalk usernames are only unique within account subdomains(?); does the token mean there is need to account for this? Can you give an example of the file URL format the app is expecting? And has this been tested with Subversion as well as Git repositories, btw? |
|
Ok - figured it out: I don't get the credentials error when I try and reference a file in a Git repository - only Subversion repositories. Beanstalk still offer both (I prefer Git, but still have to work with Subversion ones sometimes). If it needs special attention to work with Subversion (and it's not something you want to look into, because you don't use Subversion repositories any more), it might be worth highlighting it's Git repositories only in the README.md file / help docs (saves other Subversion users the time figuring that out / pestering you with duplicate issues). You might be able to detect if it's not a Git repo and give a Subversion unsupported warning? My Git repo file URLs seem to start with this:
(my project doesn't have a 'git' directory at root level! - so I presume this is something generic on Beanstalk's side) …whereas, my Subversion URLs start like like this:
(I don't think you could rely on solely on 'trunk', 'tags' or 'branches' being the only ones that might be present for a Subversion repository - since I believe they are just directories, so you could add your own at the root level [although it's not the standard approach]; however, maybe the 3rd [index 2] path component not being 'git' would be a good indicator that it's a Subversion repo - and the bot can give a specific response about not reporting Subversion repositories?) |
Oh, and I know it's minor; but on your item 1 - it is possible to amend the label from "Auth token" to "API Access token" in the Beep Boop config screen? I'd assumed that was what it meant - but the terminology is different enough (especially if you've worked with OAuth before) to make one wonder if you are using the right kind of credential ;) (especially if the bot is responding saying "Please make sure that you entered the correct username and authorization token"; I did review the Beanstalk API docs, to make sure I wasn't missing something about different credential types...) |
TypeError: Cannot match against 'undefined' or 'null'.<br> at getFileContents (/usr/src/app/src/utils.js:101:65)<br> at storage.forEach (/usr/src/app/src/server.js:63:21)<br> at Object.<anonymous> (/usr/src/app/node_modules/node-persist/src/local-storage.js:178:13)<br> at Array.forEach (native)<br> at Object.LocalStorage.forEach (/usr/src/app/node_modules/node-persist/src/local-storage.js:177:28)<br> at Object.nodePersist.forEach (/usr/src/app/node_modules/node-persist/src/node-persist.js:73:29)<br> at app.route.get.post (/usr/src/app/src/server.js:57:21)<br> at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)<br> at next (/usr/src/app/node_modules/express/lib/router/route.js:131:13)<br> at /usr/src/app/node_modules/body-parser/lib/read.js:129:5
(the bot is being hosted on beepboop)
The text was updated successfully, but these errors were encountered: