Git Product home page Git Product logo

go-jira-cli's People

Contributors

comradin avatar dependabot[bot] avatar rsteube avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

go-jira-cli's Issues

Invalid memory address

When I try to get the project list gj fails with a segmentation violation using the current 1.11 release:

❯ gj project --host mycompany.atlassian.net/jira
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x754645]

goroutine 1 [running]:
github.com/rsteube/go-jira-cli/internal/api.ListProjects({0x7ffc29591126, 0xbee71c}, {0x21c1f60, 0x0, 0x6000106})
        /home/runner/work/go-jira-cli/go-jira-cli/internal/api/project.go:30 +0x85
github.com/rsteube/go-jira-cli/cmd/gj/cmd.glob..func15(0xc00081fdb8, {0x21c1f60, 0x0, 0x0})
        /home/runner/work/go-jira-cli/go-jira-cli/cmd/gj/cmd/project_view.go:29 +0xb9
github.com/rsteube/go-jira-cli/cmd/gj/cmd.glob..func14(0x21745a0, {0xbf0026, 0x2, 0x2})
        /home/runner/work/go-jira-cli/go-jira-cli/cmd/gj/cmd/project.go:18 +0x33
github.com/spf13/cobra.(*Command).execute(0x21745a0, {0xc000320f60, 0x2, 0x2})
        /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:856 +0x60e
github.com/spf13/cobra.(*Command).ExecuteC(0x2174820)
        /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:974 +0x3bc
github.com/spf13/cobra.(*Command).Execute(...)
        /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:902
github.com/rsteube/go-jira-cli/cmd/gj/cmd.Execute()
        /home/runner/work/go-jira-cli/go-jira-cli/cmd/gj/cmd/root.go:22 +0x25
main.main()
        /home/runner/work/go-jira-cli/go-jira-cli/cmd/gj/main.go:6 +0x17

Maybe my auth token or host configuration isn't correct? As the issue view fails as well but with a different error message:

 gj issue view --host mycompany.atlassian.net/jira
Error: 404 Not Found: <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible"
 content="IE=edge"><title>Oops, you&#39;ve found a dead link. - JIRA</title><link type='text/css' rel='stylesheet' href='/static-
assets/metal-all.css' media='all'><script src='/static-assets/metal-all.js'></script><!--[if lt IE 9]><link type='text/css' rel='stylesheet' 
href='/static-assets/metal-all-ie.css' media='all'><script src='/static-assets/metal-all-ie.js'></script><![endif]--><!--[if IE 9]><link
 type='text/css' rel='stylesheet' href='/static-assets/metal-all-ie9.css' media='all'><![endif]--><meta name="decorator" content="none"
 /></head><body class=" error-page error404"><script type="text/javascript">document.body.className += " js-enabled";</script>
<div id="page"><header id="header" role="banner"></header><!-- #header --><section id="content" role="main"><div class="aui-
page-panel"><div class="aui-page-panel-inner"><section class="aui-page-panel-content lowerContent"><div id="error-state">
<span class="error-type"></span><h1>Oops, you&#39;ve found a dead link.</h1><ul><li>Go back to the <a
 href="javascript:window.history.back()">previous page</a></li><li>Go to the <a href="/secure/MyJiraHome.jspa">Home Page</a>
</li></ul></div></section><!-- .aui-page-panel-content --></div><!-- .aui-page-panel-inner --></div><!-- .aui-page-panel --></section>
<!-- #content --><footer id="footer" role="contentinfo"><section class="footer-body">

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.