Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.
 

Plugin error after setting API token-based authentication

Hi,

I have setup API token-based authentication as instructed in the TestRail documentation. However, when clicking the ‘Push’ link in the Add Result window, I received the following error:

Plugin “Jira_Cloud_REST” returned an error: Invalid user or password or insufficient permissions for the integration user (HTTP code 401). Please check the Jira User value in the Integration and/or User Settings has been configured correctly.

The integration parameters under [connection] is:
address=https://xxxxxxxxxx.atlassian.net/
email=%jira_email%
token=%jira_token%

And in user > My Settings page, I have setup the Jira email address as my email and pasted the API token generated.

Please help. Our automated defect integration is on hold and we are raising defects in Jira manually right now.

Regards,

Hello ydlazkov,

Thank you for posting! When using the ‘Push’ dialog, TestRail submits an API request to Jira in order to retrieve details from Jira and display this on screen. If you are receiving a 401 error when performing this action, this would indicate the credentials saved in TestRail for your account are not correct, causing the API request to fail.

Please double-check the credentials entered in your account under ‘My Settings > Settings’ to ensure you have entered your Jira email address along with an API token for your account. We have also released a video walkthrough for updating these settings:

https://www.youtube.com/watch?v=y0rGFNKAgFI

I hope this helps!

Regards,
John

Thanks, John.

All good now. The issue was caused by my other temporary user account. After deleting the temp account and then revoking and re-generating the token; the issue was resolved.