Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Documents the tracking endpoint's status codes and error handling as changed in matomo-org/matomo#25727 (Matomo 6.1).
Tracking HTTP API reference (
docs/6.x/tracking-api.md)200and anError:body).status,tracked,invalid,invalid_indices), when a whole bulk request fails, and that since 6.1 a single request rejected with a 4xx other than 408/429 is counted as invalid.send_image: a failed request is still answered with its error code.[log] log_writers. With the defaultscreenwriter they aren't logged anywhere, so admins need to addfile,errorlogorsyslog. Since 6.1 there is no extra write to PHP's error log, and the query string is no longer included in log records.Plugin guide "Tracking Requests" (
docs/6.x/tracking-requests.md)HttpCodeException(egBadRequestException) to answer with its 4xx/5xx code. 4xx is only debug-logged and only that request is counted invalid in a bulk request. Any other exception is a logged 500. Use 408/429 for errors worth retrying.Should be merged once matomo-org/matomo#25727 is merged, and only be published with Matomo 6.1.