Git Product home page Git Product logo

Comments (8)

czechboy0 avatar czechboy0 commented on August 17, 2024

The first one is a Bot, the second one is an Integration payload. I haven't seen any reports of the API changing. Is something failing for you?

from xcodeserversdk.

kdawgwilk avatar kdawgwilk commented on August 17, 2024

Thats wierd the top response is from the bot endpoint because this the request I am sending https://server.example.com:20343/api/integrations/d527eca6aaac9f039f79924d5400cfc2

from xcodeserversdk.

kdawgwilk avatar kdawgwilk commented on August 17, 2024

I am running OS X Server 5.0.15 with Xcode 7.1.1

XcodeServerSDK would crash when calling the server.getIntegrations call

from xcodeserversdk.

czechboy0 avatar czechboy0 commented on August 17, 2024

I tried it and for some reason, when you pass a bot id into the path, you do get a bot back even with the /integrations endpoint, that shouldn't be the case, definitely should fail (if you radar this I'll dup it). However, that id above that you have in your url must be a bot id, not an integration id. If you actually supply an integration id (which it's expecting), you get an integration back.

from xcodeserversdk.

kdawgwilk avatar kdawgwilk commented on August 17, 2024

Do I list the radar under OS X server? or Xcode?

from xcodeserversdk.

kdawgwilk avatar kdawgwilk commented on August 17, 2024

Also if I try to make this call

server.getIntegrations { integrations, error in
                if let firstIntegration = integrations?.first {
                    print(firstIntegration.buildResultSummary!.testsCount)
                } else {
                    print("Error: \(error?.description)")
                }
            }

I get this in the console:

Error: Optional("Error Domain=com.honzadvorsky.Buildasaur Code=0 \"Wrong body Optional({\n    message = \"unable to parse the query string\";\n    status = 400;\n})\" UserInfo={NSLocalizedDescription=Wrong body Optional({\n    message = \"unable to parse the query string\";\n    status = 400;\n})}")

from xcodeserversdk.

czechboy0 avatar czechboy0 commented on August 17, 2024

That looks like a genuine bug in XcodeServerSDK, can you please open a new ticket for that? Thanks!

from xcodeserversdk.

czechboy0 avatar czechboy0 commented on August 17, 2024

Tracked in #127

from xcodeserversdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.