Git Product home page Git Product logo

Comments (3)

michael-patzer avatar michael-patzer commented on June 26, 2024

Hi @gbesler. Thanks for opening the issue and providing a code sample.

Case 4 in the APIError enum is apiError(response: APIErrorResponse). Could you print out the status, type, and detail of the APIErrorResponse?

        MailchimpSDK.createOrUpdate(contact: contact) { result in
            switch result {
            case .success:
                print("Successfully added or updated contact")
            case .failure(let error):
                print("Error: \(error.localizedDescription)")
                switch error {
                case .apiError(response: APIErrorResponse)
                    print("Status: \(response.status), Type: \(response.type), Detail: \(response.detail)")
                }
            }
        }

from mailchimp-sdk-ios.

gbesler avatar gbesler commented on June 26, 2024

Hi @michael-patzer
It seems somehow the SDK did not throw an error for "nil" SDK key. It was not entering catch phrase with a nil SDK key.
I guess this should be fixed. Thanks for your help.

from mailchimp-sdk-ios.

michael-patzer avatar michael-patzer commented on June 26, 2024

@gbesler Thank you. We'll take a look at this. You may also contribute a fix if you'd like. When you open a PR, the cla-bot will give instructions on how to sign our Contributor License Agreement.

from mailchimp-sdk-ios.

Related Issues (15)

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.