2
Solved

Clicking "Build Now" generates a "Error: Request failed with status code 500"

Currently have CatLight connected to Jenkins version 2.46.2. CatLight will give notification when builds start/finish but will give the above error when I try to start a build through CatLight. Proper credentials are provided for Jenkins login. 

4 replies

A

Hi Harman ,

what was the solution i am facing same issue .

What is your app version?

You can try to enable extended logging in edit/settings/advanced, and then check %appdata%\catlight\logs\networklog.txt 

It will contain HTTP response from jenkins that can provide more details about the root cause of the problem.

A

yes i have try to enable extended logging in edit/settings/advanced .

CatLight v2.26.2 is application version logs.

find the below logs :-

2019-06-06 14:31:24.5392 | TRACE | NetworkLog | 15 | =========================================
POST https://service.catlight.io/api/v2.0/clients/UpdateRegistration
X-Request-ID : 3063cc80b8e7
X-Client-Id : 402ea1bce4f24fbf8a3f6b3dff919761
User-Agent : Catlight/2.26.2
Accept : application/json
Authorization : *****
{"clientId":"402ea1bc-e4f2-4fbf-8a3f-6b3dff919761","deviceName":"LAPTOP-8LSLFD0O","deviceId":null,"clientSecret":"*****","appVersion":"2.26.2","osType":"windows","osVersion":"10.0.17763","isUsingProxy":false,"statistics":{"pollingPeriod":"00:01:00","totalNotificationsDelta":0,"shownNotificationsDelta":0,"trackableNotificationsDelta":0,"notificationAggregationPeriod":"00:01:00.7820131","statusSeverity":"Warning","statusNeedsAttention":true,"servers":[{"connectionInstanceId":"a718be11-e99b-47e6-bf93-81e5bcf26bf0","serverConnectionInfo":{"serverType":"jenkins","serverVersion":null,"authenticationType":"Password","reConnectForMoreFeatures":false,"url":"http://192.168.136.137:8080/jenkins","plan":null},"averageMetadataTime":"00:00:00","maxMetadataTime":"00:00:00","averagePollingTime":"00:00:00","maxPollingTime":"00:00:00","serverUri":null,"spaces":[]},{"connectionInstanceId":"1a6af4c3-5cc3-4722-9704-bbe380fe7cf6","serverConnectionInfo":{"serverType":"jenkins","serverVersion":null,"authenticationType":"Password","reConnectForMoreFeatures":false,"url":"http://192.168.136.137:8080/jenkins","plan":null},"averageMetadataTime":"00:00:00","maxMetadataTime":"00:00:00","averagePollingTime":"00:00:00","maxPollingTime":"00:00:00","serverUri":null,"spaces":[]},{"connectionInstanceId":"cc57d855-71b4-4078-a86b-e1b8307678f7","serverConnectionInfo":{"serverType":"jenkins","serverVersion":null,"authenticationType":"Password","reConnectForMoreFeatures":false,"url":"http://3.14.79.253:8080/jenkins","plan":null},"averageMetadataTime":"00:00:00","maxMetadataTime":"00:00:00","averagePollingTime":"00:00:00","maxPollingTime":"00:00:00","serverUri":null,"spaces":[]}]}}

200 OK
Date : Thu, 06 Jun 2019 14:31:24 GMT
Server : Kestrel
{"clientId":"402ea1bc-e4f2-4fbf-8a3f-6b3dff919761","user":null,"subscription":{"hasActiveSubscription":true,"trialLockOut":false,"notificationMessage":null,"actionText":null,"actionUrl":null,"statusDescription":"Your CatLight trial is active until June 19. You can continue using the Free edition after that."},"statistics":{"servers":[],"activeClientCount":0}}

This is a message about client registration. You can try clicking on "build now", and the logs should contain a request with POST to your jenkins url .The response status code should show 500, and possibly contain the explanation.

You can also attach full logs to a private ticket, and we'll investigate further - https://catlight.helprace.com/add-ticket

A

private ticket has been raised and full logs are share .

This should be fixed in 2.11 version. 

https://catlight.io/downloads 

TS

This is what I see:

TS

I have exactly the same problem. I can see status of a running build initiated from Jenkins web page, but I can't kick-off a build from CatLight. If I can't do this then there's little point in continuing to use CatLight.

I'm using CatLight v2.10.3 and Jenkins v2.46.3.

 

H

I submitted a private ticket yesterday. They said they were able to recreate the issue and will "provide an update when this problem is fixed"