Comments (3)
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.
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.
@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)
- Failed to load module 'MailchimpSDK'
- No change in my Audience list HOT 4
- Can not archive my app with Mailchimp framework HOT 4
- test issue, ignore
- Unable to add/Update contact with SWIFT SDK in iOS HOT 2
- [QUESTION] How to add interest group(s) to contact? HOT 6
- Mailchimp SDK not integrating HOT 5
- [BUG] This person is only eligible for transactional emails HOT 2
- [BUG] Minimum deployment target is iOS 12, not iOS 11 as per sdk description. HOT 1
- [BUG] not relevant APIErrorResponse and strange behaviour HOT 3
- [Feature] Ability to send the device language to Mailchimp HOT 1
- [Question] Double opt-in via SDK HOT 3
- [Question] What is the max length of Event Property String value? HOT 5
- SDK won't work, unexpected response API ERROR 2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mailchimp-sdk-ios.