ndaversa / hubot-jira-bot

Lets you search for JIRA tickets, open them, transition them thru different states, comment on them, rank them up or down, start or stop watching them or change who is assigned to a ticket. Also, notifications for assignments, mentions and watched tickets.
https://www.npmjs.com/package/hubot-jira-bot
MIT License
61 stars 43 forks source link

SyntaxError: Unexpected token w in JSON at position 1 #28

Closed GregSharpe1 closed 7 years ago

GregSharpe1 commented 7 years ago

This is how my current command looks:

HUBOT_SLACK_TOKEN=xoxb-163461access_tokenYdVltrhwrbUl HUBOT_JIRA_GITHUB_DISABLED=true HUBOT_JIRA_PRIORITIES_MAP={"name":"Blocker","id":"1"} HUBOT_JIRA_PROJECTS_MAP={"web":"WEB","android":"AN","ios":"IOS","platform":"PLAT"} HUBOT_JIRA_TRANSITIONS_MAP={"name":"triage","jira":"Triage"} HUBOT_JIRA_TYPES_MAP={"story":"Story / Feature","bug":"Bug","task":"Task"} HUBOT_JIRA_URL=https://mycompany.atlassian.net:9090 HUBOT_JIRA_USERNAME=gregsharpe HUBOT_JIRA_PASSWORD=MY_PASSWORD ./bin/hubot --adapter slack

Has anyone got any ideas?

ndaversa commented 7 years ago

@GregSharpe1 likely its the way the strings (most importantly the ") are being interpreted by your shell. I would put single quotes around all the envvars to make sure you are sending in what you expect.

If you want to see what is actually making its way in, I recommend putting a console.log into the config.coffee and print out the value to see why it's breaking, It's almost surely not what you think and effectively bad json