GitHub teams

xvorsx's Avatar

xvorsx

08 Apr, 2015 10:05 PM

I'm trying to use github team integration to create a team: https://ci.appveyor.com/gitHubTeams
I got error message:

Cannot deserialize the current JSON object (e.g. {name into type 'Newtonsoft.Json.Linq.JObject[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object. Path 'message', line 1, position 11.

  1. Support Staff 1 Posted by Feodor Fitsner on 08 Apr, 2015 11:38 PM

    Feodor Fitsner's Avatar

    So, no GitHub teams listed on that page?

  2. 2 Posted by xvorsx on 09 Apr, 2015 12:01 AM

    xvorsx's Avatar

    No, only red error message, see attachment

  3. Support Staff 3 Posted by Feodor Fitsner on 09 Apr, 2015 12:11 AM

    Feodor Fitsner's Avatar

    Apparently, it's unable to read teams of one of the orgs you belong to.

    What scopes GitHub account is authorized for on https://ci.appveyor.com/account page?

  4. 4 Posted by xvorsx on 09 Apr, 2015 12:12 AM

    xvorsx's Avatar

    Public only

  5. Support Staff 5 Posted by Feodor Fitsner on 09 Apr, 2015 12:24 AM

    Feodor Fitsner's Avatar

    Re-authorize for public and private and give it another try.

  6. 6 Posted by xvorsx on 09 Apr, 2015 12:26 AM

    xvorsx's Avatar

    I could do it as a workaround, but it's not my intention: I want authorize it only for public.

  7. Support Staff 7 Posted by Feodor Fitsner on 09 Apr, 2015 12:27 AM

    Feodor Fitsner's Avatar

    Yes, workaround. We'll add try..catch to skip orgs that cannot be read.

  8. 8 Posted by xvorsx on 09 Apr, 2015 12:28 AM

    xvorsx's Avatar

    ok, cool

  9. 9 Posted by giacomo.tag on 11 May, 2015 06:02 PM

    giacomo.tag's Avatar

    I am unable to let my github team in. the authorization is for public and private repos. Which information you need to inspect it?
    Thank you :)

  10. 10 Posted by giacomo.tag on 11 May, 2015 06:07 PM

    giacomo.tag's Avatar

    I tried to revoke the permission and now I am unable to reinsert it (see attachment)

  11. Support Staff 11 Posted by Feodor Fitsner on 11 May, 2015 06:41 PM

    Feodor Fitsner's Avatar

    What's the name of that account? We can reset it from here.

  12. 12 Posted by giacomo.tag on 11 May, 2015 09:28 PM

    giacomo.tag's Avatar

    itajaja

  13. Support Staff 13 Posted by Feodor Fitsner on 11 May, 2015 09:40 PM

    Feodor Fitsner's Avatar

    Done. You can re-authorize again. What should I do to reproduce the issue?

  14. 14 Posted by giacomo.tag on 11 May, 2015 09:51 PM

    giacomo.tag's Avatar

    Yes it worked, thanks! what I did was to revoke the permission from the github page and not from the appveyor page.

    Still, I can't see the repos.

    Repos are under the user "hylasoft", that has given permission to the "Owners" team of the "hylasoft-usa" organization. I cannot login with user "itajaja", member of the "Owners" team

  15. Support Staff 15 Posted by Feodor Fitsner on 11 May, 2015 09:56 PM

    Feodor Fitsner's Avatar

    Do you login using "GitHub" sign in button? Do you see a dropdown with accounts when logging in to AppVeyor?

  16. 16 Posted by giacomo.tag on 12 May, 2015 06:59 AM

    giacomo.tag's Avatar

    yes and yes

  17. Support Staff 17 Posted by Feodor Fitsner on 12 May, 2015 04:39 PM

    Feodor Fitsner's Avatar

    Then you should choose right account on login to see its projects.

  18. 18 Posted by giacomo.tag on 12 May, 2015 05:42 PM

    giacomo.tag's Avatar

    Well, they should be visible to both. Here is the configuration.
    The two users are "hylasoft" and "itajaja". The project are under the account "hylasoft". The accoun hylasoft is set up so that everyone in the "Owners" team of the "hylasoft-usa" organization have admin access. Both "hylasoft" and "itajaja" are in this team.
    Of course, if I login with "hylasoft" I see the project, not because it is shared with the team, but because they are projects of that account.
    If I enter with "itajaja", I cannot see them. Same thing for my colleagues' account in the same github team. Maybe I am doing something wrong, but I cannot see what...

  19. Support Staff 19 Posted by Feodor Fitsner on 12 May, 2015 06:37 PM

    Feodor Fitsner's Avatar

    But this is how it's currently implemented in AppVeyor. Your GitHub username itajaja is associated with two AppVeyor accounts hylasoft and itajaja. When you login you choose what AppVeyor you want to manage. If you select hylasoft from dropdown you see projects of that account if you choose itajaja then your personal projects. You should re-login to see/manage projects under different AppVeyor accounts. The same for your colleagues (provided they see dropdown with accounts on Sign in page).

    I know it's counter-intuitive and this functionality will be revisited in the future.

  20. 20 Posted by giacomo.tag on 12 May, 2015 10:12 PM

    giacomo.tag's Avatar

    Ooooh... I feel stupid now. For some reason I thought I had both github credentials for my account in my broeser, that's why I thought I was seeing both, like Google multi-account selection.

    Now this might be a little OT, but since I revoked and regranted the permission, all the build on hylasoft are failing, Is there anything I can do beside deleting and readding the projects? I would like to avoid that.

    Thanks for your support.

  21. Support Staff 21 Posted by Feodor Fitsner on 12 May, 2015 10:19 PM

    Feodor Fitsner's Avatar

    You don't need recreating the projects. Re-login to AppVeyor and select "Hylasoft" from dropdown then go to https://ci.appveyor.com/account to see what GitHub account is authorized there. Re-authorize with GitHub account  that has permissions to access those repositories.

    - Feodor

  22. 22 Posted by giacomo.tag on 13 May, 2015 10:45 AM

    giacomo.tag's Avatar

    still nothing:

    Build started  
    git config --global core.autocrlf input  
    git clone -q --branch=master git@github.com:hylasoft-usa/fmc-spom.git C:\projects\fmc-spom  
    Permission denied (publickey).  
    fatal: Could not read from remote repository.  
    
    Please make sure you have the correct access rights  
    and the repository exists.  
    Command exited with code 128
    

    The repo exists. Should I open another issue?

  23. Support Staff 23 Posted by Feodor Fitsner on 13 May, 2015 01:45 PM

    Feodor Fitsner's Avatar

    Oh, it fails in this place. Did you delete AppVeyor's SSH public key from that repo?

    - Feodor

  24. 24 Posted by giacomo.tag on 13 May, 2015 02:11 PM

    giacomo.tag's Avatar

    It's not just one, but all of them. Could they have been revoked because I revoked the account permissions? How do I readd them?

  25. Support Staff 25 Posted by Feodor Fitsner on 13 May, 2015 02:14 PM

    Feodor Fitsner's Avatar

    No, revoking account permissions deletes OAuth token.

    You can see SSH key on General tab of each private project. Add that SSH key to "Deploy keys" of appropriate repo on GitHub.

    - Feodor

  26. 26 Posted by giacomo.tag on 13 May, 2015 02:50 PM

    giacomo.tag's Avatar

    Worked. Thanks for your awesome support as always, Feodor!

  27. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:56 AM.

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

22 Mar, 2019 07:18 PM
22 Mar, 2019 02:20 PM
22 Mar, 2019 11:00 AM
22 Mar, 2019 02:51 AM
22 Mar, 2019 12:46 AM

 

21 Mar, 2019 08:34 PM
21 Mar, 2019 05:38 PM
21 Mar, 2019 06:16 AM
20 Mar, 2019 11:39 PM
20 Mar, 2019 09:03 PM
20 Mar, 2019 08:55 PM