Add your own cloud fails on macos

Mark Ts's Avatar

Mark Ts

13 Jan, 2020 09:12 PM

I'm trying to add my own cloud for building on local MacOS machine but it fails with the following error

Connect-AppVeyorToComputer -AppVeyorUrl https://ci.appveyor.com -ApiToken SomeToken                          

Checking AppVeyor API access...
WARNING: Unable to call AppVeyor REST API, please verify 'ApiToken' and ensure '-AppVeyorUrl' parameter is set if you are using on-premise AppVeyor Server.

here is output with -verbose option

Checking AppVeyor API access...
VERBOSE: GET https://ci.appveyor.com/ with 0-byte payload
VERBOSE: received 7917-byte response of content type text/html
VERBOSE: GET https://ci.appveyor.com/api/projects with 0-byte payload
VERBOSE: received 76-byte response of content type application/json
WARNING: Unable to call AppVeyor REST API, please verify 'ApiToken' and ensure '-AppVeyorUrl' parameter is set if you are using on-premise AppVeyor Server.
so question are
1) does this functionality works at all?
2) if so what could be a problem? All commands and Token are taken from https://ci.appveyor.com/build-clouds/wizard
3) Why payload is 0-byte
  1. Support Staff 1 Posted by Feodor Fitsner on 13 Jan, 2020 09:21 PM

    Feodor Fitsner's Avatar

    Hi Mark,

    Could you try running this script with your token and see what error you are getting:

        $apiToken = '<your-token>'
        $headers = @{
          "Authorization" = "Bearer $apiToken"
          "Content-type" = "application/json"
        }
        Invoke-RestMethod -Uri "https://ci.appveyor.com/api/projects" -Headers $headers -Method Get
    
  2. 2 Posted by Mark Ts on 18 Jan, 2020 11:37 AM

    Mark Ts's Avatar

    Thank you Feodor,

    You gave me a hint how to resolve this. I've tried snippet you suggested and saw that Auth method is not allowed so I've checked security settings and turned on
    API v1 & API v2 auth and after that was able to setup own build agent with pwsh cmdlet

  3. Support Staff 3 Posted by Feodor Fitsner on 19 Jan, 2020 02:53 AM

    Feodor Fitsner's Avatar

    Cool, thanks for the update!

  4. Feodor Fitsner closed this discussion on 03 Apr, 2020 06:47 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

07 Jul, 2020 06:21 PM
07 Jul, 2020 03:15 PM
05 Jul, 2020 02:33 AM
03 Jul, 2020 07:29 PM
03 Jul, 2020 03:53 AM

 

02 Jul, 2020 09:09 PM
02 Jul, 2020 03:24 PM
01 Jul, 2020 01:12 PM
30 Jun, 2020 04:26 PM
25 Jun, 2020 05:54 PM
24 Jun, 2020 08:11 AM