When integrating external systems with DevRev, you might encounter a "Request failed with status code 400" error after filling out the connection form. This article will help you understand common reasons for this error and how to resolve them.
Incorrect Subdomain Format:
Some connections require both the subdomain and the full domain (e.g., <your-company-name>.atlassian.net), while others only need the subdomain (e.g., <your-company-name>) although in both cases the field will require only "subdomain".
Recommendation: If you receive a 400 error, try both formats for the subdomain field.
Example for Jira: Try <your-company-name>.atlassian.net or just <your-company-name>
Example for ServiceNow: Try <your-company-name>.service-now.com or just <your-company-name>
Note for GitHub Snapin: For GitHub, you need to provide your organization name in the subdomain field.
Typos, Leading/Trailing Spaces, or Incorrectly Copied PAT Token:
Even small errors can cause connection failures.
Recommendation:
Double-check all fields for typos.
Ensure there are no leading or trailing spaces in any of the input fields.
Verify that you have correctly copied and pasted your Personal Access Token (PAT).
Invalid or Insufficient Personal Access Token (PAT) Permissions:
Your PAT might not have the necessary permissions or privileges to establish the connection.
Recommendation:
Review the required permissions for the external system you are trying to connect to DevRev.
Generate a new PAT with the correct permissions, if necessary.
Consult the external system's documentation for details on PAT requirements.