-
Notifications
You must be signed in to change notification settings - Fork 341
Description
I think the title is correct in this case. On Windows 7 64bit, I am trying to run a script that runs the jira.exe multiple times to add watchers since I cannot specify multiple of them in a single execution. I've had hit or miss success with when I'm not authenticated go-jira will ask for a password when using a shell script. So, sometimes when I forget to login first, I get the following error without much "simple" detail on what the actual issue excpet for me assuming that Username anonymous means I didn't login.
{"errorMessages":["Internal server error"],"errors":{}}
2016-11-22T09:56:26.577-05:00 ERROR [main.go:532] Unexpected Response From POST
2016-11-22T09:56:26.753-05:00 ERROR [cli.go:222] response status: 500 Internal Server Error
2016-11-22T09:56:26.753-05:00 ERROR [commands.go:598] Unexpected Response From POST:
HTTP/1.1 500 Internal Server Error
Connection: close
Cache-Control: no-cache, no-store, no-transform
Content-Type: application/json;charset=UTF-8
Date: Tue, 22 Nov 2016 14:56:27 GMT
Server: Apache-Coyote/1.1
X-Arequestid: 536x14049182x10
X-Asen: SEN-2245595
X-Ausername: anonymous
X-Content-Type-Options: nosniff
This happens on both the Linux version and Windows version. However, when I run the same thing again after logging in on Windows, I still receive the above error. On Linux the script then works without problem.
Windows Error output:
{"errorMessages":["Internal server error"],"errors":{}}
2016-11-22T08:45:21.744-06:00 ERROR [main.go:523] Unexpected Response From POST
2016-11-22T08:45:21.872-06:00 ERROR [cli.go:222] response status: 500 Internal Server Error
2016-11-22T08:45:21.872-06:00 ERROR [commands.go:598] Unexpected Response From POST:
HTTP/1.1 500 Internal Server Error
Connection: close
Cache-Control: no-cache, no-store, no-transform
Content-Type: application/json;charset=UTF-8
Date: Tue, 22 Nov 2016 14:45:21 GMT
Server: Apache-Coyote/1.1
X-Arequestid: 525x14028133x8
X-Asen: SEN-2245595
X-Ausername: anonymous
X-Content-Type-Options: nosniff
{"errorMessages":["Internal server error"],"errors":{}}
2016-11-22T08:45:21.873-06:00 ERROR [main.go:523] Unexpected Response From POST
The script being used to call the jira executable.
@echo off
set JIRA_ISSUE=%1
set USERNAME=user01
jira watch %JIRA_ISSUE% --watcher=%USERNAME%
and Linux Bash
JIRA_ISSUE=$1
USERNAME=user01
jira watch $JIRA_ISSUE --watcher=$USERNAME