-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calls (like TwingleDonation.cancel) fails if contribution is not found #30
Comments
To me that seems to be an error-management issue for Twingle, not necessarily for the CiviCRM API, since how to handle that will highly depend on what your workflows are: activities, e-mails, ignore, ... Also, reporting by e-mail does not stop Twingle to re-send it again and again. Twingle users should really be checking those error messages regularly. Maybe this could be outlined in the API docs. |
I agree, but that's the way is currently implemented: if there is an error: re-submit with the next batch.
Yes ist does, if you don't return an error any more. |
Agreed. What happens in CiviCRM should be configurable then, because not throwing an error will make it vanish from CiviCRM logs as well. I see the following options:
|
Sorry, my bad, |
For Information from the twingle side: We released last week an update on the interface that we ignore this error on our side. Normally the handling is that if an error is given back vom CiviCRM we will send this request again. In this case, this makes no sense. |
@webworka Thanks for reporting back here, too! I think it would be reasonable, though, to clarify the error messages as a first step, because ignoring errors is not a good thing in general, and those come from the CiviCRM core API and are not necessarily bound to only those two events. Ultimately, we should not issue errors back to you (Twingle) in that case at all, but handle such inconsistencies within CiviCRM. We will be implementing the e-mail thing as a second step, so that admins can be notified and Twingle does not need to care about that anymore. |
If the contribution with the given Twingle-ID is not found, the API returns an error. That might sound like the proper response, but this behaviour causes Twingle to submit the same request over and over.
There might be a point in flagging this issue to a user (e.g. by E-Mail) and returning an "ok" in the API.
The text was updated successfully, but these errors were encountered: