Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cancel API not working #134

Closed
pavm035 opened this issue May 20, 2016 · 3 comments
Closed

Cancel API not working #134

pavm035 opened this issue May 20, 2016 · 3 comments

Comments

@pavm035
Copy link

pavm035 commented May 20, 2016

Hi,

Please refer to this link
http://stackoverflow.com/questions/37336446/xcode-server-cancel-api-the-network-connection-was-lost

Thanks in advance

@czechboy0
Copy link
Member

Hi @pavm035,

that's very strange, I use XcodeServerSDK in Buildasaur and cancelling seems to work just fine. Can you please try to manually calling the API, something like

curl -k -u XCSUSERNAME:XCSPASSWORD -X POST https://127.0.0.1:20343/api/integrations/INTEGRATION_ID/cancel

where the INTEGRATION_ID you can get by e.g. installing xcskarel and with it running xcskarel integrations --bot "My Bot Name" and supplying the bot name there? You'll get a list of integrations, just copy the hash of the one you want to cancel into the curl call above and try to run it.

Let me know if that works. Please make sure you're supplying correct username and password, because for reading, XCS usually allows anyone access, but for writing (e.g. canceling), you need to provide credentials. So please make sure you're using XcodeServerSDK properly with credentials.

@pavm035
Copy link
Author

pavm035 commented May 23, 2016

Hi @czechboy0 ,

Thanks for your quick response, I tried that CURL command but i'm getting
"curl: (56) SSLRead() return error -9806", looks like some SSL issue. I tried googling for self-signing or disabling the ssl certification with
curl -k -u XCSUSERNAME:XCSPASSWORD -X POST https://127.0.0.1:20343/api/integrations/INTEGRATION_ID/cancel --insecure, still giving same error

Thanks
Pavan

@czechboy0
Copy link
Member

Hi @pavm035, I once again tried it locally and the manual command you posted works just fine. The error you're getting looks like a curl/OpenSSL issue. Unfortunately there's nothing I can fix in XcodeServerSDK, sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants