ServiceNow is not able to connect to GitLab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2023 08:32 PM
Hi All,
I am using REST message to connect to send the state update of change request from ServiceNow to GitLab.
But unable to connect to GitLab end point.
Receiving unknown host exception when tried to test in the http method.
Please let me know what could be the issue is and how ServiceNow can connect to GitLab.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2023 08:35 PM
Hi @Priyanka145 ,
Hope you are doing great.
The "unknown host" exception typically indicates that the hostname or IP address provided in the REST message URL is incorrect or cannot be resolved. Here are a few things you can try to resolve this issue:
Double-check the URL: Make sure that the hostname or IP address provided in the REST message URL is correct and can be resolved by your DNS. Also, ensure that the URL includes the correct protocol (HTTP or HTTPS) and the correct port number (if applicable).
Check the network connectivity: Ensure that the ServiceNow instance can reach the GitLab endpoint. You can try using the ping command or a network diagnostic tool to check the network connectivity.
Check the firewall settings: Check if there are any firewall rules that are blocking the connection between ServiceNow and GitLab. You may need to work with your IT department to configure the firewall to allow the connection.
Verify GitLab authentication: Ensure that GitLab is configured to allow incoming REST API requests from ServiceNow, and that you have provided the correct authentication credentials in your REST message configuration.
Test the REST message configuration: Once you have verified the above steps, you can test the REST message configuration again to check if the issue has been resolved.
Please Mark My Response as Correct/Helpful based on Impact
Regards,
Amit Gujarathi
Was this answer helpful?
Please consider marking it correct or helpful.
Your feedback helps us improve!
Thank you!
Regards,
Amit Gujrathi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2023 10:21 PM
Hi @Priyanka145 ,
Have you verified the logs in your ServiceNow instance. It will list what the error is. Furthermore, if you have setup gitlab with MFA, then it will not work .
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Best regards
Anders
If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.
Best regards
Anders
Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/