Closed tommyli123 closed 2 years ago
Are you able to get the response body from this request? Otherwise I could deliver a new version of the plugin that some additional debug information in the console so you can help me understand the issue
I cleared the console and retry adding JIRA: as well as code block. Both failed with 403, and console doesn't show any exceptions. I am not able to get the response body from the request.
I created a new release 1.21.1 that prints the response payload when there is an error. Can you update the plugin and check the response in the console? You can open the console with Ctrl+Shift+i
Installed 1.21.1
[Exception: SyntaxError: Unexpected token < in JSON at position 11 at JSON.parse (
So the api is returning an HTML page. I will have to add another log so you can tell me what is the content of this page. I will let you know when you can do another test
In my case, the REST api to get the json payload by jira key is "myjiradomain"/rest/api/latest/issue And, for search it is "myjiradomain"/rest/api/2/search? If your plugin can allow specifying that in settings (to override your defaults) that will work.
The plugin uses the same api you described
I delivered version 1.21.2 that logs the content of every request and response that this plugin does. Please update your plugin and let me know if you find something wrong in the API call or if you see something useful in the error response.
It would be really helpful to share the request and response, but I understand that they contain confidential information. So I cannot help you more than this.
installed 1.21.2. With the full response, I find out there is an internal authentication issue. Working with our support, the issue is resolved.
Your plugin works like magic now! (have to restart obsidian though, i suspect there is is some caching linger on).
Thanks for your help. We can resolve this issue.
Basic authentication seems working. I verified with a wrong password that it is returning 401 as expected. However, with correct credential. it returns 403 when using inline JIRA: or with code block ```jira-issue
I verified the link generated by the plugin is correct. ie. JIRA:XXX-123 it is generated as "myjiradomain"/browse/XXX-123