Skip to content
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

Getting 404 Not Found trying to get all issues by project #334

Open
giadainterlicchia opened this issue Jan 9, 2020 · 1 comment
Open

Comments

@giadainterlicchia
Copy link

I want to get all issues and display them in a web page but everytime I run my application with these instructions:

  RedmineManager mgr = RedmineManagerFactory.createWithApiKey(uri, apiAccessKey);
  IssueManager issueManager = mgr.getIssueManager();
  List<Issue> issues = issueManager.getIssues(projectKey, queryId);
        for (Issue issue : issues) {
            System.out.println(issue.toString());
        }

I have this error:

Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is com.taskadapter.redmineapi.NotFoundException: Server returned '404 not found'

WHY?

The url, and token parameters are correct because I made a test with curl command and with it, i saw in my terminal the correct result.

@alexeyOnGitHub
Copy link
Member

is your REST API enabled? does the user you use for this call have access to the requested queryId? I suggest debugging this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants