I am sorry to bother. I have been performing calls from my Connect App to the Service Desk API without issues, but this morning I realized one call is failing in one of my environments.
Hi @veloti It fixed itself eventually, but now I installed the app in a fresh instance and I am seeing the error again. Were you able to figure it out? Thank you! (I am the OP, but with a different account)
@veloti Than you! I completely missed your response and yesterday I found myself encountering this error again in a fresh instance. In this new instance, the code you shared raised the same error. Turned out it was because JSM wasn´t installed in that new instance, and this endpoint only works when you have installed Jira Service Management.
I am leaving this note here in case someone else encounters this problem.
Thank you my friend!