I have added the scope “read:label:jira” which is required to access “GET /rest/api/3/label”. After I added the above scope my below 2 APIs are giving 400 errors:
POST /rest/api/3/search
POST /rest/api/3/webhook
Can anyone guide me to the right direction?
Thanks
Error response data is pretty generic with status code 400.
data: '<!doctype html><html lang="en"><head><title>HTTP Status 400 – Bad Request</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 400 – Bad Request</h1><hr class="line" /><p><b>Type</b> Exception Report</p><p><b>Message</b> Request header is too large</p><p><b>Description</b> The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).</p><p><b>Exception</b></p><pre>java.lang.IllegalArgumentException: Request header is too large\n' +
'\torg.apache.coyote.http11.Http11InputBuffer.fill(Http11InputBuffer.java:790)\n' +
'\torg.apache.coyote.http11.Http11InputBuffer.parseHeader(Http11InputBuffer.java:971)\n' +
'\torg.apache.coyote.http11.Http11InputBuffer.parseHeaders(Http11InputBuffer.java:604)\n' +
'\torg.apache.coyote.http11.Http11Processor.service(Http11Processor.java:292)\n' +
'\torg.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)\n' +
'\torg.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:895)\n' +
'\torg.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1732)\n' +
'\torg.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n' +
'\torg.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)\n' +
'\torg.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)\n' +
'\torg.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n' +
'\tjava.lang.Thread.run(Unknown Source)\n' +
'</pre><p><b>Note</b> The full stack trace of the root cause is available in the server logs.</p><hr class="line" /><h3>Apache Tomcat/9.0.56</h3></body></html>'
},
Thanks, it helped me a lot in my investigation.
It looks that it’s not a problem with ​read:label:jira scope, but with the number of scopes that you are using.
I have passed the results of my investigation to a team responsible for granular scopes, but do not expect any response today as it’s evening there.
There are some workarounds available there for you, please let us know if they are not an option right now.
In particular, we would like to know if reducing the number of scopes is not possible and all the ones in list provided are required for the app to function.
It was the problem with the number of scopes I have used. I didn’t need all the scopes BUT I added them anyway just to reduce my future scope of work. Once I only used the scopes which I need for now, it started working properly. Until today, I have realized that one particular API is not working(except everything else is working fine).
Here is the link to the problem which my colleague has raised on the community forum.
are added in the OAuth2 application BUT the error upon calling the transition API shows read:issue.transition:jira scope needs to be added. All the scopes are part of the auth URL as well.
I have tried removing all the scopes and added them again just to sync everything if it wasn’t before BUT no luck.
This is something where our entire integration is stuck due to this issue and we are at the final stage of it. Can any one please look into this and guide us in a direction where we can resolve this really quick.
As of a few hours ago, it had been rolled out to some staging environments and should be on its way to production. We’ll let you know as soon as we hear that it is in production.