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

Cannot login #12

Open
AyalaMan-Main opened this issue Feb 2, 2023 · 0 comments
Open

Cannot login #12

AyalaMan-Main opened this issue Feb 2, 2023 · 0 comments

Comments

@AyalaMan-Main
Copy link

AyalaMan-Main commented Feb 2, 2023

Hi, I am trying to start the project but I keep getting login errors and there is almost no documentation.

`de.cronn.jira.sync.JiraSyncException: [https://project.atlassian.net] Unauthorized: {"errorMessages":["Login failed"],"errors":{}}
at de.cronn.jira.sync.service.JiraRestResponseErrorHandler.handleError(JiraRestResponseErrorHandler.java:31) ~[main/:na]
at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:709) ~[spring-web-4.3.25.RELEASE.jar:4.3.25.RELEASE]
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:662) ~[spring-web-4.3.25.RELEASE.jar:4.3.25.RELEASE]
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:622) ~[spring-web-4.3.25.RELEASE.jar:4.3.25.RELEASE]
at org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:389) ~[spring-web-4.3.25.RELEASE.jar:4.3.25.RELEASE]
at de.cronn.jira.sync.service.JiraServiceRestClient.login(JiraServiceRestClient.java:166) ~[main/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_362]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_362]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_362]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_362]
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333) ~[spring-aop-4.3.25.RELEASE.jar:4.3.25.RELEASE]
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) ~[spring-aop-4.3.25.RELEASE.jar:4.3.25.RELEASE]
at com.sun.proxy.$Proxy57.login(Unknown Source) ~[na:na]
at de.cronn.jira.sync.JiraSyncTask.sync(JiraSyncTask.java:69) [main/:na]
at de.cronn.jira.sync.JiraSyncTask.run(JiraSyncTask.java:57) [main/:na]
at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:704) [spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE]
at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:688) [spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE]
at org.springframework.boot.SpringApplication.afterRefresh(SpringApplication.java:675) [spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:301) [spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1082) [spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1071) [spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE]
at de.cronn.jira.sync.JiraSyncApplication.main(JiraSyncApplication.java:43) [main/:na]

2023-02-02 15:31:00.109 INFO 107428 --- [ main] utoConfigurationReportLoggingInitializer :

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2023-02-02 15:31:00.112 ERROR 107428 --- [ main] o.s.boot.SpringApplication : Application startup failed

java.lang.IllegalStateException: Failed to execute CommandLineRunner
at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:707) [spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE]
at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:688) [spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE]
at org.springframework.boot.SpringApplication.afterRefresh(SpringApplication.java:675) [spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:301) [spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1082) [spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1071) [spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE]
at de.cronn.jira.sync.JiraSyncApplication.main(JiraSyncApplication.java:43) [main/:na]
Caused by: de.cronn.jira.sync.JiraSyncException: [https://project.atlassian.net] Unauthorized: {"errorMessages":["You are not authenticated. Authentication required to perform this operation."],"errors":{}}
at de.cronn.jira.sync.service.JiraRestResponseErrorHandler.handleError(JiraRestResponseErrorHandler.java:31) ~[main/:na]
at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:709) ~[spring-web-4.3.25.RELEASE.jar:4.3.25.RELEASE]
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:662) ~[spring-web-4.3.25.RELEASE.jar:4.3.25.RELEASE]
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:622) ~[spring-web-4.3.25.RELEASE.jar:4.3.25.RELEASE]
at org.springframework.web.client.RestTemplate.delete(RestTemplate.java:494) ~[spring-web-4.3.25.RELEASE.jar:4.3.25.RELEASE]
at de.cronn.jira.sync.service.JiraServiceRestClient.logout(JiraServiceRestClient.java:172) ~[main/:na]
at de.cronn.jira.sync.service.JiraServiceRestClient.close(JiraServiceRestClient.java:187) ~[main/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_362]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_362]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_362]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_362]
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333) ~[spring-aop-4.3.25.RELEASE.jar:4.3.25.RELEASE]
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) ~[spring-aop-4.3.25.RELEASE.jar:4.3.25.RELEASE]
at com.sun.proxy.$Proxy57.close(Unknown Source) ~[na:na]
at de.cronn.jira.sync.JiraSyncTask.sync(JiraSyncTask.java:86) ~[main/:na]
at de.cronn.jira.sync.JiraSyncTask.run(JiraSyncTask.java:57) ~[main/:na]
at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:704) [spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE]
... 6 common frames omitted`

I have already tried following but does not work:

de.cronn.jira.sync.source: url: https://project.atlassian.net
 username: email
 password: password

de.cronn.jira.sync.source:
 url: https://project.atlassian.net
 username: email
 password: api-token

de.cronn.jira.sync.source:
 url: https://project.atlassian.net
 username: email
 password: password
 basicAuth:
  username: email
  password: api-token

de.cronn.jira.sync.source:
 url: https://project.atlassian.net
 username: email
 password: api-token
 basicAuth:
  username: email
  password: api-token

Nothing works.

Could you help me? Thanks

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

No branches or pull requests

1 participant