jira-cli: Unexpected response '404 Not Found' from jira.
Hey. I am really looking forward to use your program but got stuck on the init phase. Is it because of the oldness of my company’s jira version or something else?
JiraCLI Version:
# jira version
(Version="1.1.0", GitCommit="3b93e147eac468ad985bdece27469153b4bb2814", CommitDate="2022-08-14T08:10:40+00:00", GoVersion="go1.18.3", Compiler="gc", Platform="linux/amd64")
Are you using Jira cloud or on-premise jira server? Also mention the version for on-premise installation.
JIRA Service Desk 4.5.7
Jira Core 8.5.7
What operating system are you using? Also mention version.
# cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
What terminal are you using? Also mention version.
# bash --version
GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
To Reproduce
Steps to reproduce the behavior:
# jira init --insecure
You are using --insecure option. In this mode, the client will NOT verify
server's certificate chain and host name in requests to the jira server.
? Installation type: Local
? Link to Jira server: https://jira.prod
? Login username: test
? Default project: SR
✗ Received unexpected response '404 ' from jira. Please try again.
The related issue is: https://github.com/ankitpokhrel/jira-cli/issues/225
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 25 (12 by maintainers)
Commits related to this issue
- fix: Make board selection optional Fixes #464 — committed to ankitpokhrel/jira-cli by ankitpokhrel 2 years ago
- fix: Make board selection optional Fixes #464 — committed to ankitpokhrel/jira-cli by ankitpokhrel 2 years ago
- fix: Make board selection optional Fixes #464 — committed to ankitpokhrel/jira-cli by ankitpokhrel 2 years ago
@ankitpokhrel The new error without the --debug flag is as below
I think the
--insecure
is not work which is like https://github.com/ankitpokhrel/jira-cli/discussions/271 , Please help to add the--insecure
flag.Hi @xuanyuanaosheng, just checked in Jira v8.5.7 (same as yours) and the API is available and working as expected. This seems to be something related with your installation.